Skip to content

Instantly share code, notes, and snippets.

Avatar
☀️
😎

Simeon Willbanks simeonwillbanks

☀️
😎
View GitHub Profile
View Gemfile
# A sample Gemfile
source "https://rubygems.org"
gem "html-pipeline"
gem "github-markdown"
gem "github-linguist"
@simeonwillbanks
simeonwillbanks / form.html
Created Feb 7, 2014
Credit Card Form Tips via @forest
View form.html
<input type="email" name="email" x-autocompletetype="email" autocomplete="email" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Email">
<input type="text" class="numberInput unknown" name="card_number" x-autocompletetype="cc-number" autocompletetype="cc-number" autocomplete="cc-number" placeholder="Card number">
<input type="tel" class="cvcInput" name="cc-csc" x-autocompletetype="cc-csc" autocompletetype="cc-csc" autocomplete="false" maxlength="4" placeholder="CVC">
@simeonwillbanks
simeonwillbanks / shell.txt
Created Mar 11, 2014
goenv environment; cross compile with goxc #golang
View shell.txt
~GOPATH/src/github.com/BurntSushi/toml/tomlv master
❯ GOROOT="${HOME}/.goenv/versions/$(goenv version)" goxc -goroot=$GOROOT
...
[goxc:pkg-build] 2014/03/11 09:03:28 Task pkg-build succeeded
[goxc:rmbin] 2014/03/11 09:03:28 Task rmbin succeeded
[goxc:downloads-page] 2014/03/11 09:03:28 Task downloads-page succeeded
~GOPATH/src/github.com/BurntSushi/toml/tomlv master
❯ ls snapshot
README.md tomlv_darwin_amd64.zip tomlv_freebsd_arm.zip tomlv_linux_arm.tar.gz tomlv_netbsd_arm.zip tomlv_plan9_386.zip tomlv_snapshot_i386.deb
downloads.md tomlv_freebsd_386.zip tomlv_linux_386.tar.gz tomlv_netbsd_386.zip tomlv_openbsd_386.zip tomlv_snapshot_amd64.deb tomlv_windows_386.zip
@simeonwillbanks
simeonwillbanks / how-a-request-becomes-a-response.md
Last active Aug 29, 2015
"How a Request Becomes a Response (In Rails)" Summary
View how-a-request-becomes-a-response.md
@simeonwillbanks
simeonwillbanks / install.md
Created Jan 9, 2015
Install REE on OS X 10.9
View install.md

Use a REE fimilar OpenSSL

❯ brew tap homebrew/versions
❯ brew install openssl098
❯ RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/opt/openssl098 rbenv install ree-1.8.7-2012.02
@simeonwillbanks
simeonwillbanks / gist:904ff7978589015e70dc
Last active Aug 29, 2015
SNOOP DOGG "Gin And Juice"
View gist:904ff7978589015e70dc
Heah hah hah!
I'm serious nigga one of y'all niggaz got this ass motherfuckin up
Aiy baby, aiy baby... aiy baby get some bubblegum in this motherfucker
Steady long, steady long nigga
With so much drama in the L-B-C
It's kinda hard bein Snoop D-O-double-G
But I, somehow, some way
Keep comin up with funky ass shit like every single day
May I, kick a little something for the G's (yeah)
View php_property_accessors_person.rb
class Person
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
end
# access method
def full_name
"%s %s" % [@first_name, @last_name]
end
end
View php_property_accessors_person.py
class Person(object):
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
# property decorator
@property
def full_name(self):
return "%s %s" % (self.first_name, self.last_name)
me = Person("Simeon", "Willbanks")
@simeonwillbanks
simeonwillbanks / php_property_accessors_person_ver1.php
Created Mar 20, 2010
PHP: Property Accessors Example Person Version 1
View php_property_accessors_person_ver1.php
<?php
class Person {
public $first_name;
public $last_name;
public function __construct($first_name, $last_name)
{
$this->first_name = $first_name;
$this->last_name = $last_name;