Skip to content

Instantly share code, notes, and snippets.

View ericrallen's full-sized avatar
💻
https://interwebalchemy.com/

Eric Allen ericrallen

💻
https://interwebalchemy.com/
View GitHub Profile
@ericrallen
ericrallen / index.js
Last active August 29, 2015 13:56
phonegap app javascript module for jQuery 2
'use strict';
(function($) {
//toggle this between true and false to allow/disallow testing the app in the browser
window.localApp = true;
window.app = (function() {
//this object will store methods and variables that will be accessible outside of the window.app module
var pub = {};
@ericrallen
ericrallen / gist:9945057
Created April 2, 2014 23:00
Weather Status Code Mapping for Open Weather Maps API
//convert the status id returned from openweathermap.org
function convertWeatherID(id) {
var returnWeather = '';
//check the ID
switch(id) {
//STORM
case 200:
case 201:
case 210:
@ericrallen
ericrallen / cards.js
Created September 25, 2014 21:10
Girl Develop It! Charlotte - JavaScript for Beginners - Generate and Shuffle a Deck of Cards
/*-----------------------------------------------------------------------------------
Shuffle Example - build and shuffle a deck of cards
This was built during a presentation for Girl Develop It! Charlotte's
Beginner JavaScript class on Loops, Arrays, Objects, and Functions.
It started as a hopefully simple example of how one could use arrays to do
something programmatically and then got a little out of hand.
@ericrallen
ericrallen / .bash_profile
Created October 5, 2015 20:48
Bash Stuff
# Load the .bashrc configuration whenever .bash_profile (this file) is sourced
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi