- randomly pull promo code(s) from menu & submit w/ order
- add to settings quickly for bryant?
- display to beta user how many (if any) promos got submitted
- custom popup messages
- if getting menu for seat and server responds with status code xxx, force reload the page in js
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
// | |
// SRLogViewController.h | |
// | |
// Created by Connor Grady on 4/25/14. | |
// Copyright (c) 2014 Stadium Runner. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import <CocoaLumberjack/DDLog.h> |
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 stdout_write = undefined; | |
var Log = function (value) { | |
var shouldRelock = Log.unlock(); | |
/** Forward call to console.log */ | |
console.log.apply(this, arguments); |
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
#!/bin/bash | |
# INSTALL: sudo wget <RAW link from gist here> -O /usr/bin/pifinder; chmod 755 /usr/bin/pifinder; | |
# USAGE: pifinder | |
# pifinder 192.168.1.* | |
# pifinder 192.168.*.* | |
# RPi Connect function | |
connect () { | |
echo "Connecting to Raspberry Pi at $1 now..." |
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
# DESCRIPTION: gitignore file for iOS-based projects using CocoaPods | |
# AUTHOR: Connor Grady (connorgrady.com) | |
# SOURCE: https://gist.github.com/itsjustcon/6965920 | |
# Xcode | |
.DS_Store | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 |
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
#!/bin/sh | |
# Author: Connor Grady (connorgrady.com) | |
# USAGE: sudo sh node-install.sh | |
version='v0.10.21' # check nodejs.org for this | |
echo 'INSTALLER: Welcome to the Node.js easy installer for Ubuntu. Going through first round of updates + installs...' | |
start_time=`date +%s` | |
sudo apt-get update -y | |
sudo apt-get install build-essential g++ curl apache2-utils git-core -y |
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
+ (UIColor *) colorFromHexCode:(NSString *)hexString { | |
NSString *cleanString = [hexString stringByReplacingOccurrencesOfString:@"#" withString:@""]; | |
if([cleanString length] == 3) { | |
cleanString = [NSString stringWithFormat:@"%@%@%@%@%@%@", | |
[cleanString substringWithRange:NSMakeRange(0, 1)],[cleanString substringWithRange:NSMakeRange(0, 1)], | |
[cleanString substringWithRange:NSMakeRange(1, 1)],[cleanString substringWithRange:NSMakeRange(1, 1)], | |
[cleanString substringWithRange:NSMakeRange(2, 1)],[cleanString substringWithRange:NSMakeRange(2, 1)]]; | |
} | |
if([cleanString length] == 6) { | |
cleanString = [cleanString stringByAppendingString:@"ff"]; |
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
// CREATED BY: | |
// Connor Grady on May 15, 2013 | |
// http://connorgrady.com/ | |
// USAGE: | |
// node minify myfile.js | |
// node minify file1.js file2.js file3.js | |
// OUTPUT: | |
// file1.js --> file1.min.js | |
var UglifyJS = require('uglify-js'), |
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 UglifyJS = require('uglify-js'); | |
fs = require('fs'), | |
path = require('path'), | |
struct = path.join(__dirname,'struct.json'), | |
files = {}; | |
// Watch current folder & compile if file from files{} has changed | |
fs.watch(__dirname,function (evt,file) { | |
file = path.relative(__dirname,file); | |
if (!file) return; |
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 less = require('less'), | |
fs = require('fs'), | |
path = require('path'), | |
struct = path.join(__dirname,'struct.json'), | |
files = {}; | |
// Watch current folder & compile if file from files{} has changed | |
fs.watch(__dirname,function (evt, file) { | |
file = path.relative(__dirname,file); | |
if ( !file || !files[file] ) return; |