Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| /** | |
| * Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
| * https://gist.github.com/faisalman | |
| * | |
| * Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
| * Licensed under The MIT License | |
| * http://www.opensource.org/licenses/mit-license | |
| */ | |
| (function(){ |
| """making a dataframe""" | |
| df = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB')) | |
| """quick way to create an interesting data frame to try things out""" | |
| df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd']) | |
| """convert a dictionary into a DataFrame""" | |
| """make the keys into columns""" | |
| df = pd.DataFrame(dic, index=[0]) |
| var restify = require('restify') | |
| , port = process.env.PORT || 3000 | |
| , Phantom = require('phantom') | |
| , tmpdir = require('os').tmpdir() | |
| , fs = require('fs'); | |
| var server = restify.createServer(); | |
| function setResponseHeaders(res, filename) { | |
| res.header('Content-disposition', 'inline; filename=' + filename); |
| ############################## | |
| ## Java | |
| ############################## | |
| .mtj.tmp/ | |
| *.class | |
| *.jar | |
| *.war | |
| *.ear | |
| *.nar | |
| hs_err_pid* |
| #!/usr/bin/node | |
| const Promise = require('bluebird') | |
| const config = require('./config.json') | |
| const knex = require('./lib/knex')(config.database).connection() | |
| const mock = () => ({ user_id: Math.floor(Math.random() * 999) + 1, payload_type: 'foo', attributes: JSON.stringify({}) }) | |
| const before = (t) => { |