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
/*csslint box-model: false, box-sizing: false, universal-selector: false */ | |
/* | |
All projects | |
should have nice | |
ASCII ART! | |
http://patorjk.com/software/taag/ |
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 results = 'hi bob123'; | |
results = results.replace(/bob\d+/, 'cooper'); |
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
netstat -rn |
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
/*jslint browser: true, indent: 4 */ | |
/* | |
Example use of ScrollGuard: a simple, unobtrusive lazy loader. | |
Each time the user scrolled to the bottom of the page: | |
1. Look if there is content to load (lookForNextPage) | |
2. If new content, get content using Ajax (getNextPage) | |
3. Append the new content and do some polish (appencContent) |
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
<a href="javascript:(function(){(function(){var%20doc,reload,keepAlive,saveButton,title;title=window.bajsa;doc=document.querySelectorAll("frame")[1].contentWindow;reload=function(){if(window.bajsa!==undefined){console.log("who%20is%20gabriel");doc.location.reload();keepAlive=setTimeout(reload,5*1000);}};if(title!==undefined){clearTimeout(keepAlive);delete%20window.bajsa;console.log("CANCELLED")}else{window.bajsa="who%20is%20gabriel";reload();}}());})();">Keep Agresso Alive</a> |
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
/* | |
The Following folder structure is required: | |
./ | |
./dist | |
app.js | |
app.min.js | |
app.min.zipped.js | |
design.css | |
design.min.css |
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 ಠ_ಠ = eval, | |
ლ_ಠ益ಠ_ლ = 42, | |
λ = function() {}, | |
oneQuarter = "¼", | |
oneHalf = "½", | |
threeQuarters = "¾"; | |
// ☺ | |
// ¯\_(ツ)_/¯ | |
// ಠ~ಠ |
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
require "rubygems" | |
require 'living-validator' | |
require 'uri' | |
url = ARGV.first | |
files = ARGV.slice(1, 9999) | |
stop_at = files.length | |
i = 1 | |
def colorize(text, color_code) |
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
require "rubygems" | |
require 'net/ftp' | |
require 'stringio' | |
ftp = "" | |
username = "" | |
passwd = "" | |
root_dir = "../../../../" | |
current_rev_file = root_dir + "__CURRENT_VERSION__" |
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 | |
# | |
# usage: ./adp-new-vhost <name> | |
# | |
mampdir=/Applications/MAMP | |
confdir=$mampdir/conf/apache/extra/vhosts | |
codedir=~/Code | |
mampport=80 | |
cat <<end > $confdir/$1.conf |