Easily show case your work, just add a background-image to .content and change the url.
A Pen by Paul Serraino on CodePen.
Easily show case your work, just add a background-image to .content and change the url.
A Pen by Paul Serraino on CodePen.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Violations</title> | |
<style> | |
body { | |
padding: 20px; | |
font-family: "helvetica neue", helvetica; | |
} |
//returns an array of methods | |
Object.prototype.methods = function () { | |
var m = [], k; | |
for (k in this) | |
if (typeof this[k] === "function") m.push(k); | |
return m; | |
}; | |
Object.prototype.hasMethod = function (m) { | |
return m in this && typeof this[m] === "function"; |
~~function (a) { | |
return a ^ function () { // 1 ^ 2 | |
return a << 1 | function () { // 2 | 0 | |
return a << 1 & function () { // 2 & 1 | |
return a; // 1 | |
}() | |
}() | |
}() | |
}(1) | |
// 3 |
var assert = require('assert') | |
var request = require('request') | |
describe('My API', function () { | |
// initialize request cookie jar | |
request = request.defaults({ jar: request.jar() }) | |
var cred = { | |
username: 'foo' |
var repl = require('repl'); | |
var debug = require('debuglog'); | |
var vm = require('vm'); | |
// copy pasta from node source | |
// lib/repl.js | |
function defaultEval(code, context, file, cb) { | |
var err, result; | |
// first, create the Script object to check the syntax | |
try { |
var repl = require('repl'); | |
var path = require('path'); | |
var r = repl.start(); | |
require('repl.history')(r, path.join(process.env.HOME, '.node_history'); | |
var caterDir = '../cater-api-server' || process.argv[2]; | |
r.context.models = require(path.join(caterDir, 'models'); |
var React = require('react'); | |
/** | |
* Input | |
*/ | |
var Input = React.createClass({ | |
getInitialState: function () { | |
return { name: this.props.name || '' } | |
}, |
#!/usr/bin/env bash | |
# ./review.sh [branch id] | |
#example. | |
# ./review.sh 1947 | |
if [ "$GITHUB_TOKEN" == "" ] ; then | |
echo "Error! You need to set GITHUB_TOKEN environment variable!" | |
exit 1 |