- Students are simultaneously expected to:
- listen to teacher talk
- read code
- copy down code
- make suggestions
- (maybe poorly defined expectations????)
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 prepEsLinter() { | |
if [ -f "package.json" ]; then | |
echo "PackJSON alright there!!!" | |
else | |
echo "Creating a default package.json... might want to edit this!" | |
npm init -f | |
fi | |
( | |
export PKG=eslint-config-airbnb; | |
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG" |
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
# prompt colors | |
# "username@hostname:" | |
PS1="\e[34;01m\u\e[0m@\e[31;01m\h\e[0m:" | |
# "path/to/where/you/are" | |
PS1="$PS1\e[32;01m\w\e[0m" | |
# "(gitbranch)" |
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 today = new Date(); | |
if (today.getDate() == 31 && today.getMonth()== 9){ | |
setTimeout(function(){ | |
document.body.innerHTML = "<img src='http://www.paulbunyantrail.com/images/pbcover.jpg' >" | |
}, Math.random()*10000+1000); | |
}; |
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
# Andrew Madden | |
# Converts files into a base64 text representation. | |
# An example html document, with those representations, is created. | |
require "base64" | |
# Converts an audio wavefile's binary data into base64 | |
# Returns a html node using that data | |
def gen_uri_audio_tag(filename) |
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
class YahooToken < ConsumerToken | |
YAHOO_SETTINGS={ | |
:site => "https://api.login.yahoo.com", | |
:request_token_path => "/oauth/v2/get_request_token", | |
:access_token_path => "/oauth/v2/get_token", | |
:authorize_path=> "/oauth/v2/request_auth" | |
} | |
def self.consumer |
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
//--------------------------------------------- | |
// ************** Sonifizer.js ************** | |
//--------------------------------------------- | |
// http://www.Sonifizer.com/Sonifizer.js | |
//--------------------------------------------- | |
// Andrew Madden | |
//--------------------------------------------- | |
var Sonifizer_Base_URL = "http://www.Sonifizer.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
// Include this function in a <script> tag or in your____.js file. | |
// Call Audatar_audio('YOUR_USERS_NAME') to load the audio data. | |
// Call Sonifizer_Play() to play the audio. | |
function Audatar_audio(username){ | |
// Use this if using jQuery | |
$('body').append('<script type="application/javascript" src="http://www.Sonifizer.com/api/username/'+username +'/json"></script>'); | |
} |
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
# Andrew Madden | |
# Converts files into a base64 text representation. | |
# An example html document, with those representations, is created. | |
require "base64" | |
# Converts an audio wavefile's binary data into base64 | |
# Returns a html node using that data | |
def gen_uri_audio_tag(filename) |
NewerOlder