This file contains hidden or 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
@@ -79,8 +79,8 @@ | |
}, | |
'gcc': { | |
'all': { | |
- 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | |
- 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], | |
+ 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv6'], | |
+ 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions', '-march=armv6'], | |
}, | |
'visibility:hidden': { |
This file contains hidden or 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
{ "jshint_options": | |
{ "browser": true | |
, "curly": true | |
, "devel": true | |
, "eqeqeq": true | |
, "eqnull": true | |
, "es5": false | |
, "evil": false | |
, "immed": false | |
, "jquery": true |
This file contains hidden or 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 | |
NAME=$1 | |
# node ../../PersonalSite/app.js & | |
pid=$! | |
bench() { | |
ab -n 6000 -c 40 -g out-$NAME.graph -H "Accept-Encoding: gzip" "http://127.0.0.1:3021/main/js/lib/v0.1.0/jquery-1.7.2.min.js" | |
} | |
sleep 2 |
This file contains hidden or 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
void | |
HMAC_SHA1_Init(HMAC_SHA1_CTX *ctx, const u_int8_t *key, u_int key_len) | |
{ | |
u_int8_t k_ipad[SHA1_BLOCK_LENGTH]; | |
int i; | |
if (key_len > SHA1_BLOCK_LENGTH) { | |
SHA1Init(&ctx->ctx); | |
SHA1Update(&ctx->ctx, key, key_len); | |
SHA1Final(ctx->key, &ctx->ctx); |
This file contains hidden or 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
WEEKDATE=`date -f "%Y-%m-%d 13:37" -d '1 week ago'` git checkout `git rev-list -n 1 --before=$WEEKDATE develop` |
This file contains hidden or 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
[email protected] /private/tmp/terminal-codelearn | |
├── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ └── [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] |
This file contains hidden or 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 v8 = require('strong-cpu-profiler') | |
, fs = require('fs') | |
v8.startProfiling('a') | |
console.log('a') | |
var profile = v8.stopProfiling('a') | |
fs.writeFileSync('a.nom', JSON.stringify({ | |
title: profile.title, | |
uid: profile.uid, |
BSONNative.BSON:
====================== 700 :: 0.07
BSONPure.BSON:
====================== 1991 :: 0.1991
Make sure git knows your name and email address:
$ git config --global user.name "J. Random User"
$ git config --global user.email "[email protected]"
Writing good commit logs is important. A commit log should describe what