Skip to content

Instantly share code, notes, and snippets.

View abahler's full-sized avatar

Alex Bahler abahler

View GitHub Profile
@abahler
abahler / kontakt_UserStories.md
Last active February 24, 2017 01:37
User stories for the Kontakt business card app

Project goals and specifications

Name: Kontakt

User stories

  • As a user, I want to be able to log into Kontakt
  • As a user, I want to be able to stay logged in until I manually log out
  • As a user, I want to be able to create a business card (MVP)
  • As a user, I want to be able to update my business card (MVP)
@abahler
abahler / shake_it_off.php
Created December 8, 2014 07:30
T-Swift's hit song, in PHP form.
<?php
// Run this script from your terminal whenever the haters got you down.
$negativity = array(
"players" => "play",
"haters" => "hate",
"Heart-breakers" => "break",
"fakers" => "fake"
);
@abahler
abahler / app.js
Created April 14, 2014 21:42
Pulling a to-do list from a JSON file using the map( ) function
// Code lesson from "Learning Web App Development" by Semmy Purewal
// Chapter 5: "The Bridge"
// Need to call getJSON before we call main()
var main = function (toDoObjects) {
// Disallow bad aspects of JS by running in strict mode
"use strict";
// Now main has access to our toDo list!
@abahler
abahler / pjax.js
Last active August 29, 2015 13:59
First-time use of YUI's "pjax" module to load HTML content into part of a page without a refresh
/*
*********
pjax.js
Author: Alex Bahler
Date: April 10, 2014
*********
*/
YUI().use("node", "pjax", function(y){