Skip to content

Instantly share code, notes, and snippets.

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"

The (Not-So-Good) Code-Along:

  • Students are simultaneously expected to:
    • listen to teacher talk
    • read code
    • copy down code
    • make suggestions
    • (maybe poorly defined expectations????)
@amadden80
amadden80 / reactToThis.md
Last active April 27, 2016 12:32
React To

Code Alongs


React To This Statement:

  • "From now on, the standard 'code along' has been banned. It is not to be used in-person or in dreams."

Now: React To This Statement:

@amadden80
amadden80 / colors_bash_profile
Created December 3, 2013 14:08
Coloring for .bash_profile
# 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)"
@amadden80
amadden80 / halloween.js
Created October 31, 2013 13:31
Halloween Image Flash
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);
};
# 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)
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
@amadden80
amadden80 / Sonifizer.js
Last active December 20, 2015 15:49
All your Sonifizer javascript functions... all in one! Download and include in your project! You could also use: <script src="http://www.Sonifizer.com/Sonifizer.js"></script>
//---------------------------------------------
// ************** Sonifizer.js **************
//---------------------------------------------
// http://www.Sonifizer.com/Sonifizer.js
//---------------------------------------------
// Andrew Madden
//---------------------------------------------
var Sonifizer_Base_URL = "http://www.Sonifizer.com";
@amadden80
amadden80 / Audatar.js
Last active December 20, 2015 15:48
Get a unique sound for all you unique users.
// 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>');
}
@amadden80
amadden80 / gen_uri_html.rb
Last active December 19, 2015 08:59
Create URI HTML nodes for files
# 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)