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 x = require("./x"); | |
exports.x = x; |
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
#!/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 |
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
#!/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 |
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
ssh -tt amazon "sudo ls" |
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 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", |
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
> "" + [] | |
'' | |
> "" - [] | |
0 | |
> "" - {} | |
NaN |
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 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"); |
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 express = require("express"), | |
nonAuthRouter = express.Router(), | |
authRouter = express.Router(), | |
app = express(); | |
authRouter.use(function (req, res, next) { | |
console.log("This is a routers"); | |
next(); | |
}); |
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
reader.pipe(through(function (line) { | |
console.log(line.toString()); | |
this.push(line); | |
})).pipe(outputFile); | |
outputFile.on("close", function (err) { | |
done(err, tmpFile); | |
}); |
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
# | |
# 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 |
OlderNewer