Skip to content

Instantly share code, notes, and snippets.

View ambethia's full-sized avatar
🐼
PANDAS!

Jason L Perry ambethia

🐼
PANDAS!
View GitHub Profile
@cfsanderson
cfsanderson / TIY Pre-work Essay.md
Last active November 15, 2016 01:45
Pre-work Essay for November 2016 Front-End Engineering Cohort at The Iron Yard (Tampa, FL)

#Caleb Frost Sanderson ##Pre-work Essay for Front-End Engineering Cohort ###9/9/2016

“The journey of a thousand miles begins with one step.” - Lao Tzu

This quote is a bit cliché, but still true for me. My journey into code began with a couple simple steps;

  • looking for a new career in a creative field,
  • a lifelong and almost nagging interest in how the heck computers do what they do,
  • talking with other converted musician-turned-coder friends, etc.
@Leotomas
Leotomas / chrome_install_headless.sh
Created August 2, 2016 11:03
Install Chrome headless on Ubuntu
export CHROME_BIN=/usr/bin/google-chrome
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sudo apt-get update
sudo apt-get install -y libappindicator1 fonts-liberation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
@brandondurham
brandondurham / styles.less
Last active January 11, 2024 06:46
Using Operator Mono in Atom
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):
@herval
herval / stackfile.yml
Last active May 13, 2016 05:00
Daily Postgres Backup from Tutum to S3
backup:
image: 'borja/dockup:latest'
environment:
- AWS_ACCESS_KEY_ID=<SET ME>
- AWS_DEFAULT_REGION=<SET ME>
- AWS_SECRET_ACCESS_KEY=<SET ME>
- BACKUP_NAME=<SET ME>
- PATHS_TO_BACKUP=/var/lib/postgresql/data
- S3_BUCKET_NAME=<SET ME>
restart: on-failure
@victoralvarez84
victoralvarez84 / mindset.md
Last active August 29, 2015 14:27
Pre-work essay on based on the articles Fixed vs. Growth: The Two Basic Mindsets That Shape Our Lives by Maria Popova and What is Code by Paul Ford

Victor Alvarez

I have had a fixed mindset about many things, including tech. I have talked myself out of doing so many things because they are not a part of my self identification, be it learning how to code, cook, work out, or even let myself get angry in a healthy way. However, when I feeling confident or motivated, the growth mindset comes out. When I started to go to the gym last year, I wanted to learn and take in information, even if my ego had to be bruised a little. I wanted to learn how to code, even if I had to check wikipedia every five words. I still feel a little Fixed when in a way that it is hard for me to take criticism. I have to mentally prepare myself and even then, it’s tough. I get upset with how smug or overly confident someone with criticism can be. I project these thoughts and emotions on to the person.

I predict I will encounter difficulties with staying focused. I have trouble with that because I want to do a million things at once. I am not diagnosed with ADD but I act
@jmcd
jmcd / split.swift
Created June 18, 2015 07:05
Master Detail with a UISplitViewController without StoryBoards
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let viewController = SplitVc()
@joelstransky
joelstransky / bootstrap-breakpoints.html
Created November 12, 2014 19:49
Bootstrap 3 media query break-point visual debugger
<!-- media query debugger -->
<div class="navbar-fixed-top" style="right: initial">
<button type="button" class="btn btn-default visible-lg">Large</button>
<button type="button" class="btn btn-default visible-md">Medium</button>
<button type="button" class="btn btn-default visible-sm">Small</button>
<button type="button" class="btn btn-default visible-xs">Extra-Small</button>
</div>
<!-- end media query debugger -->
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active February 12, 2024 17:18
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

@emre
emre / qrkinstall.sh
Last active January 1, 2016 01:39
qrk installer script for windows azure instances (ubuntu 13.10)
#!/bin/bash
read -p "enter your wallet address: " WALLETID
sudo apt-get update
sudo apt-get install -y git automake g++ build-essential libcurl4-openssl-dev libjansson4 libjansson-dev
if [ -d $(pwd)/quarkcoin-cpuminer ]; then
rm -r $(pwd)/quarkcoin-cpuminer
fi
git clone https://github.com/uncle-bob/quarkcoin-cpuminer
cd quarkcoin-cpuminer
./autogen.sh
@awwaiid
awwaiid / 01 hive.rb
Last active December 24, 2015 06:09
Everyone adds a line, one at a time!
#!/usr/bin/env ruby
if ARGV == ['who', 'is', 'this?']
puts "THIS IS SPARTA!!!"
end
puts (words = File.read('/usr/share/dict/words')).length
good_words = words.split.select {|w| w.size > 6}
puts good_words.sample(3).join(' ')
Thread.new{ STDERR.<< ", \n A PLAY IN 3 PARTS.\n\n============ PAGE " }
puts good_words.length
puts File.read(__FILE__).split.detect{|_| _ =~ /SPARTA/}