Skip to content

Instantly share code, notes, and snippets.

View winnab's full-sized avatar

Winna Bridgewater winnab

View GitHub Profile
@odlp
odlp / FirstViewController.swift
Created October 7, 2016 10:31
Segue Example Tests
import UIKit
class FirstViewController: UIViewController {
@IBOutlet weak var nextButton: UIButton!
@IBAction func didTapNextButton() {
performSegue(withIdentifier: "moveToSecondScreen", sender: nil)
}
}
@odlp
odlp / prompt_command.bash
Last active October 7, 2016 13:33
Highlight non-zero exit status for bash-it
function prompt_command() {
highlight_non_zero_exit
PS1="\n${yellow}$(ruby_version_prompt) ${purple}\h ${reset_color}in ${green}\w\n${bold_cyan}$(scm_char)${green}$(scm_prompt_info) ${green}→${reset_color} "
}
function highlight_non_zero_exit() {
PASS=$?
if [[ $PASS != 0 ]]; then
printf "${echo_bold_red}> Exit status $PASS <${echo_reset_color}\n"
fi
@odlp
odlp / ci.sh
Last active April 29, 2016 10:53
iOS build on CI
#!/bin/sh
set -e
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Ensure Jenkins is using rbenv
export PATH=/usr/local/bin:$PATH
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active May 7, 2024 13:07
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@camillebaldock
camillebaldock / codebar.md
Last active August 29, 2015 14:02
Codebar notes

MEDIUM-TERM QUESTIONS

  • Define a high level mission statement
  • what are we focusing on and what we do not plan on teaching?
  • why we are not doing Rails, why you should go back to basics: blog post? disclaimer? (e.g. wordpress/tools/startup-type helpers vs learning how to program from the ground up)
  • Coach inductions
  • Explicit paths/tracks through our training content
  • Development environment surgeries
  • Define roles such as course coordinator/tutorial coordinator/tutorial owner
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@geraudmathe
geraudmathe / gist:7335297
Created November 6, 2013 12:28
javascript common events
<!DOCTYPE html>
<html>
<head>
<title>Jquery events</title>
<style>
#mouseHover{ width:500px; height: 500px; background-color: red}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(function(){
@djGrill
djGrill / ga_wdi_git_daily_workflow.md
Last active February 23, 2023 10:42
This is what you should do every morning
  • commit all the classwork and homework files from yesterday (you can do as many commits as you want):

    git add <files>

    git commit -m "COMMIT MESSAGE"

  • push to GitHub:

    git push origin wXdY-gitusername

@benjchristensen
benjchristensen / index.html
Created May 2, 2012 19:34
Simple Line Graph using SVG and d3.js
<html>
<head>
<title>Simple Line Graph using SVG and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke: steelblue;
stroke-width: 1;
fill: none;
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt