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 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
#setup some basic python script to get params from the command line | |
import sys | |
Param1 = sys.argv[0] #make the first param map to variable Param1 | |
Param2 = sys.argv[1] #make the first param map to variable Param2 | |
# now the google example | |
# from google api https://developers.google.com/drive/web/manage-downloads#examples | |
from apiclient import errors | |
# ... |
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
{ | |
init: function(elevators, floors) { | |
var elevator = elevators[0]; // Let's use the first elevator | |
function go(num) { | |
// set a listener for up button pressed | |
floors[num].on("up_button_pressed", function() { | |
console.log ("floor button up pressed, going to floor: " + num); | |
elevator.goToFloor(num); | |
}) | |
// set a listener for up down button pressed |
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
ls | awk 'm = /[aeiou]/ { print $0 ": has a vowel"} !m { print $0 ": does not have a vowel" }' |
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
export epoch=$(($(date -j -f "%d-%B-%y" 01-JAN-15 +%s) - $(date +%s))); | |
printf "\n\nTime from now to new year! \n\n months: %s\n weeks: %s\n days: %s\n hours: %s\n minutes: %s\n" $(($epoch / 2629743)) $(($epoch / 604800)) $(expr $epoch / 86400) $(expr $epoch / 3600) $(($epoch / 60)); | |
unset epoch; |
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
ls | tr "\n" "," | sed 's/,$//' | sed 's/^/files=/' > files.txt; cat files.txt |
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
# import sys library so we can do system level stuff like args and exits | |
import sys | |
# check for incoming file params...must have 2, 0 = script itself | |
if len(sys.argv) != 3: | |
sys.exit("usage: python path/to/csv-dd.py input.csv output.csv") | |
# get the command line arguments and stuff them into variables | |
thisFile, inFile, outFile = sys.argv | |
print "Thanks for running", thisFile,"!!" |
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
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
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
<script type="text/javascript" charset="utf-8"> | |
function Car (carMake,carModel,carYear) { | |
this.make = carMake; | |
this.model = carModel; | |
this.year = carYear; | |
}; | |
Car.prototype = { | |
startEngine : function(){console.log("engine started")}, | |
stopEngine : function(){console.log("engine stopped")}, | |
sayMake : function(){console.log(this.make)}, |
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
<!DOCTYPE html> | |
<ol style="float: left;"> | |
<li>thing <div style="display: none;">content my cool content</div></li> | |
<li>thing <div style="display: none;">content my cool content 2</div></li> | |
</ol> | |
<div class="content" style="float: right; border: 1px solid black"> | |
nothing here yet | |
</div> |
NewerOlder