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
/** | |
* filename.js | |
* Description: File description goes here | |
* Author: Christopher Shireman | |
* Create Date: Today's Date | |
*/ |
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
//Equivalent to viewDidAppear. Have to use a state variable to make sure this is only called once. | |
$.hasAppeared = false; | |
$.getView().addEventListener("postlayout",function(){ | |
if(!$.hasAppeared) | |
{ | |
$.hasAppeared = true; | |
} | |
}); |
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
RELEASE_BRANCH=release/v2.0.0 | |
# Shortcut replacement for fetching and rebasing into your current branch. This can be used either as a substitute for git pull, or a way to rebase changes from the primary branch into your local feature/bug branch. | |
# $1 = either 'dev' or 'rel' depending on which branch you want to rebase into your branch. If it is neither 'dev' or 'rel' then it should be a remote branch you want to rebase into your branch (e.g. origin/branch_name) | |
# | |
# Example usage: gitup dev | |
# Example usage: gitup rel | |
# Example usage: gitup origin/branch_name | |
gitup() | |
{ |
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 parseColor(color) { | |
// from http://www.bitstorm.org/jquery/color-animation/jquery.animate-colors.js | |
var match, triplet; | |
// Match #aabbcc | |
if (match = /#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(color)) { | |
triplet = [parseInt(match[1], 16), parseInt(match[2], 16), parseInt(match[3], 16), 1]; | |
// Match #abc | |
} else if (match = /#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(color)) { |
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 | |
sudo /opt/eff.org/certbot/venv/local/bin/pip install cryptography interface zope |
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
// | |
// AsyncDataSource.swift | |
// ShireWorkout | |
// | |
// Created by Chris Shireman on 9/18/24. | |
// | |
import Foundation | |
class AsyncDataSource { |
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
// | |
// BasicDataSource.swift | |
// ShireWorkout | |
// | |
// Created by Chris Shireman on 9/18/24. | |
// | |
import Foundation | |
import UIKit |