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
#!/usr/bin/python2.7 | |
import cProfile | |
import pstats | |
import StringIO | |
import logging | |
import os | |
import time | |
PROFILE_LIMIT = int(os.environ.get("PROFILE_LIMIT", 30)) |
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
; change js3 indentation based on comment | |
(add-hook | |
'js3-mode-hook | |
(lambda() | |
(interactive) | |
(lexical-let | |
((buff (buffer-substring 1 512))) | |
(if | |
(string-match "\*\*[Ee][Mm][Aa][Cc][Ss]\*\.*\*\/" buff) | |
(mapcar |
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
/** @jsx React.DOM */ | |
// __tests__/form-test.js | |
jest.dontMock('../form.jsx'); | |
describe('contact form', function() { | |
it('have name and text fields', function() { | |
var React = require('react/addons'); | |
var utils = React.addons.TestUtils; | |
var Form = require('../form.jsx'); |
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 React = require('react/addons'); | |
Form = React.createClass({ | |
getInitialState: function () { | |
return {display: false, name: "", text: ""}; | |
}, | |
send: function (e) { | |
this.setState({display: true}) | |
}, | |
render: function () { |
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 http = require('http'), | |
browserify = require('browserify'), | |
literalify = require('literalify'), | |
path = require("path"), | |
url = require("url"), | |
fs = require("fs") | |
React = require('react'); | |
require('node-jsx').install(); |
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
{ | |
"name": "x0", | |
"version": "1.0.0", | |
"description": "Reactjs NPM tools and so on", | |
"main": "index.js", | |
"dependencies": { | |
"react": "*", | |
"react-tools": "*" | |
}, | |
"jest": { |
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 ReactTools = require('react-tools'); | |
module.exports = { | |
process: function(src) { | |
return ReactTools.transform(src); | |
} | |
}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="bower_components/react/react-with-addons.js"></script> | |
<script src="bower_components/react/JSXTransformer.js"></script> | |
</head> | |
<body> | |
<div id="example"></div> | |
<script type="text/jsx"> |
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
{ | |
"name": "x0", | |
"version": "0.0.0", | |
"authors": [ | |
"Maksym Klymyshyn <[email protected]>" | |
], | |
"license": "MIT", | |
"private": true, | |
"ignore": [ | |
"**/.*", |
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
import sys | |
import networkx as nx | |
import matplotlib.pyplot as plt | |
from arango import create | |
from arango.aql import F, V | |
NewerOlder