Skip to content

Instantly share code, notes, and snippets.

var x = require("./x");
exports.x = x;
#!/bin/bash -e
# Create a git feature branch according to Mobiquity standards
if [ -z $1 ]; then
echo -e "\e[0;31mYou must specify the jira number\e[0m"
exit
fi
branch_type=${2:-feature}
current_branch=$(git symbolic-ref -q --short HEAD)
new_branch=$branch_type/$USER/$(date +%y%m%d)-$1
#!/bin/bash -e
#
# Installation of `hub` is required
#
# Create a pull request for the same user with the specified branches
if [ -z $1 ]; then
read -n1 -p "Will use current branch. (Ctrl+c to cancel)"
branch=$(git rev-parse --abbrev-ref HEAD)
else
ssh -tt amazon "sudo ls"
var GitHubApi = require("github"),
git = require("nodegit"),
fs = require("fs");
var github = new GitHubApi({
version: "3.0.0",
debug: true,
protocot: "https",
host: "api.github.com",
// pathPrefix: "/api/v3",
> "" + []
''
> "" - []
0
> "" - {}
NaN
var arr = new Array(100000);
for (var x = 0; x < arr.length; x++) {
arr[x] = 1;
}
console.time("for");
for (var x = 0; x < arr.length; x++) {
console.error(arr[x]);
}
console.timeEnd("for");
var express = require("express"),
nonAuthRouter = express.Router(),
authRouter = express.Router(),
app = express();
authRouter.use(function (req, res, next) {
console.log("This is a routers");
next();
});
reader.pipe(through(function (line) {
console.log(line.toString());
this.push(line);
})).pipe(outputFile);
outputFile.on("close", function (err) {
done(err, tmpFile);
});
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure