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
<?php | |
print PHP_EOL; | |
if ( count($argv) < 2 ) { | |
exit( | |
'Convert all files in a directory from UTF-8 to ANSI' . | |
PHP_EOL . 'USAGE: ' . $argv[0] . ' <path>' . PHP_EOL | |
); | |
} |
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
javascript:var keys=$('input[type="text"].keyvalueeditor-key'),vals=$('input[type="text"].keyvalueeditor-value');done="";for(var i=0;i<keys.length;i++){var key,val;try{key=$(keys[i]).val()}catch(e){key="[UNKNOWN]"}try{val=$(vals[i]).val()}catch(e){val="[UNKNOWN]"}done+=key+"\n"+val+"\n\n"}console.log(done); |
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
<?php | |
/********************************** | |
* CONFIG | |
*********************************/ | |
// Config (change these if you want) | |
define( 'DISABLE_TIME_LIMIT', true ); | |
define( 'DISABLE_OUTPUT_BUFFERING', true ); | |
define( 'CUSTOM_ERROR_HANDLING', false ); |
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
1) 1st Group class is free. 1st month trail is $80 for 8 classes. | |
2) 1st private lesson is $40.00, for 1 person for 2 its $60. You can buy up to 8 personal training sessions | |
at special reduce rate of $40 each. ($320 total) Expires in 6 weeks. | |
GROUP CLASSES: | |
Classes are on average $15 per session. |
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 Person = function() { | |
this.helloMessage = 'Hello'; | |
}; | |
Person.prototype.sayHello = function() { | |
console.log( this.helloMessage ); | |
}; | |
var Nihonjin = function() { |
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 lua | |
print("") | |
local showUsage = function() | |
print([[ | |
Force update all submodules when update/recursive/foreach doesn't work. | |
USAGE | |
]] .. arg[0] .. [[ (within the parent repository's home directory) |
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 | |
echo | |
echo "Basic UFW Configuration Setup" | |
echo "=============================" | |
echo | |
echo | |
read -r -p "#1. Do you need IPv6 support?" response | |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then |
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 | |
echo | |
if [ -z "$1" ]; then | |
echo "Merge all branches matching a pattern (e.g. sprint number) into the current branch." | |
echo | |
echo "USAGE" | |
echo "$0 <pattern>" | |
exit 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 | |
# | |
# A more intelligent branch listing. | |
# | |
# [ Sprint Detection ] | |
# If a current sprint is detected, only corresponding branches | |
# will be listed. The pattern is "sprint/X/" where X could be any string. | |
# | |
# [ Automatic Pattern Matching ] |
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 | |
echo | |
path="." | |
counter=0 | |
remainder=0 | |
if [ ! -z "$1" ]; then | |
path="$1" | |
fi |