This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var acorn = require('acorn-jsx'); | |
let fs = require('fs'); | |
function getAllStrings(fileName) { | |
let file = fs.readFileSync(fileName); | |
const options = { | |
sourceType: 'module', | |
ecmaVersion: 9, | |
plugins: { | |
jsx: { allowNamespacedObjects: true }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knime.exe -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile="PathToYourWorkflow.zip" -destFile="OutputPathToYourWorkflow.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g.V("The Shawshank Redemption").In("name").Out(null, "your_favorite_tag_name").All() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
l = {{5, 6, 7}, {5, 4, 7}} | |
Cases[l, {_, x_ /; x > 5, _}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Scaffold = React.createClass({ | |
render: function () { | |
return ( | |
<div> | |
<nav className="navbar navbar-inverse navbar-fixed-top" role="navigation"> | |
<div className="container"> | |
<div className="navbar-header"> | |
<button type="button" className="navbar-toggle collapsed" data-toggle="collapse" | |
data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
<span className="sr-only">Toggle navigation</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="menu"> | |
<div class="accordion"> | |
<div class="accordion-group"> | |
<div class="accordion-heading country"> | |
<img src="http://placehold.it/100x30" alt="country flag" style="float:left; margin: 3px 10px 0 3px; text-align:center;"/> | |
<a class="accordion-toggle" data-toggle="collapse" href="#country1">Country</a> | |
</div> | |
<div id="country1" class="accordion-body collapse"> | |
<div class="accordion-inner"> | |
<table class="table table-striped table-condensed"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rope.base.project import Project | |
from rope.contrib.codeassist import code_assist | |
project = Project('.') | |
mod1 = project.get_file('mod1.py') | |
pos = 20 | |
codeCompletions = code_assist(project,mod1.read(),pos+4,resource=None,maxfixes=10) | |
for cc in codeCompletions: | |
print cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from inspect import * | |
def testFunction(unusedParameter): | |
"""Test introspection in python. | |
:param unusedParameter: A unused parameter | |
""" | |
a = 'test' | |
b = a | |
c = b | |
return c |