Skip to content

Instantly share code, notes, and snippets.

#!/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))
; 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
/** @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');
var React = require('react/addons');
Form = React.createClass({
getInitialState: function () {
return {display: false, name: "", text: ""};
},
send: function (e) {
this.setState({display: true})
},
render: function () {
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();
{
"name": "x0",
"version": "1.0.0",
"description": "Reactjs NPM tools and so on",
"main": "index.js",
"dependencies": {
"react": "*",
"react-tools": "*"
},
"jest": {
var ReactTools = require('react-tools');
module.exports = {
process: function(src) {
return ReactTools.transform(src);
}
};
<!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">
{
"name": "x0",
"version": "0.0.0",
"authors": [
"Maksym Klymyshyn <[email protected]>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
import sys
import networkx as nx
import matplotlib.pyplot as plt
from arango import create
from arango.aql import F, V