[2]: this is only a test: test [4]: "{"blah": "blah", "foo": [0,1,2,3]}" [yahoo]: http://search.yahoo.com [3]: http://search.msn.com
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
//Storify -- Khuram Malik | |
// Required Modules | |
var app = require('express').createServer() | |
, io = require('socket.io').listen(app) | |
, express = require('express') | |
, mongoose = require ('mongoose') | |
, Schema = mongoose.Schema; | |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
SSD random read 150,000 ns | |
Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
Round trip within same datacenter 500,000 ns 0.5 ms |
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
// search box behavior text behavior | |
$('.searchField').focus(function(){ | |
$('#searchsubmit,.searchWrapper').addClass('active'); | |
$('.searchField').val(''); | |
}); | |
$('.searchField').blur(function(){ | |
$('#searchsubmit,.searchWrapper').removeClass('active'); | |
if($('.searchField').val() == '') | |
$('.searchField').val('Search...'); | |
}); |
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
#!/usr/bin/env bash | |
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
mkdir vim && tar xzvf vim.tar.gz -C vim | |
export PATH=$PATH:/app/vim/bin |
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
cat: meow | |
dog: bark |
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
function getPublicSuffix(domain) { | |
/* | |
* Copyright GoInstant, Inc. and other contributors. All rights reserved. | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
* sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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
* 8995d17 - Merge branch 'f' | |
|\ | |
| * 4c849d8 - (f) Merge branch 'd' into f | |
| |\ | |
| | * cd74de4 - (d) d3 | |
| | * ecf6caf - d2 | |
| | * b48beec - d1 | |
* | | dce8c66 - h1 | |
* | | dbd467a - g1 | |
|/ / |
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
/*! | |
angular-xeditable - 0.1.9 | |
Edit-in-place for angular.js | |
Build date: 2015-03-26 | |
*/ | |
/** | |
* Angular-xeditable module | |
* | |
*/ | |
angular.module('xeditable', []) |
OlderNewer