Skip to content

Instantly share code, notes, and snippets.

View parkr's full-sized avatar
📡
E.T. Phone Home

Parker Moore parkr

📡
E.T. Phone Home
View GitHub Profile
Warning: You have not agreed to the Xcode license.
Builds will fail! Agree to the license by opening Xcode.app or running:
xcodebuild -license
{
"alumni": [
{
"year": 2012,
"name": "Ha Lim Lee",
"picture": "Halim.png"
},
{
"year": 2012,
"name": "Alexander Hahn",
@parkr
parkr / cornell.edu.redirect.OLD.js
Last active December 20, 2015 11:28
This is what cornell.edu uses to redirect people to the mobile site. Lord. Have. Mercy.
// Redirect to m.cornell.edu for smart phones.
// (We allow an override of the redirect with a certain parameter.)
var CUhomepage = {};
CUhomepage.ua = navigator.userAgent.toLowerCase();
CUhomepage.params = location.search.toLowerCase();
CUhomepage.mobileURL = "http://m.cornell.edu";
CUhomepage.goMobile = false;
// Detect iPhone and iTouch.
if ((CUhomepage.ua.indexOf("iphone") > -1) || (CUhomepage.ua.indexOf("itouch") > -1)) {
CUhomepage.goMobile = true;
# if doc.to_* returns a Kramdown::Document:
configs = @config["kramdown"].symbolize_keys
doc = Kramdown::Document.new(content, configs)
doc = doc.to_html
if configs.has_key?(:remove_block_html_tags) || configs.has_key?(:remove_span_html_tags)
doc = doc.to_remove_html_tags
end
doc
@parkr
parkr / Gemfile
Last active December 19, 2015 17:29
source "https://rubygems.org"
gem "octopress", path: "~/code/octodev/octopress"
gem 'classic-theme', path: '~/code/octodev/classic-theme'
@parkr
parkr / ruby-prof-jekyll-build-redcarpet.txt
Created July 7, 2013 21:19
ruby-prof run of "jekyll build" at revision c688ee67b65b3531afb350b840f59ce689aab881
Configuration file: /Users/parker/code/jekyll/tsite/_config.yml
Source: /Users/parker/code/jekyll/tsite
Destination: /Users/parker/code/jekyll/tsite/_site
Generating... done.
Thread ID: 70116431841760
Fiber ID: 70116437493840
Total: 0.804002
Sort by: self_time
%self total self wait child calls name
@parkr
parkr / ruby-prof-jekyll-build-maruku.txt
Last active December 19, 2015 10:59
ruby-prof run of "jekyll build" at revision c688ee67b65b3531afb350b840f59ce689aab881
Configuration file: /Users/parker/code/jekyll/tsite/_config.yml
Source: /Users/parker/code/jekyll/tsite
Destination: /Users/parker/code/jekyll/tsite/_site
Generating... done.
Thread ID: 70218185656800
Fiber ID: 70218203232320
Total: 2.227768
Sort by: self_time
%self total self wait child calls name
@parkr
parkr / command-line-email-client.txt
Last active December 18, 2015 10:39
command-line-email-client
A command-line email client. We need one. A good one.
Much of the interaction inspiration comes from vim. You have
@i0rek and @dschneider to thank for that.
My ideal flow:
1. Boot client
# launches interactive mail listing, much like nerdtree.
2. Navigate using vim bindings: hjkl. Additionally:
@parkr
parkr / octopress-todos.txt
Last active December 18, 2015 07:19
octopress-todos
1. Create Scaffolder for Plugins/Themes
1. Create proper gem structure so it can plugin to our
2. Rake tasks
- rake validate
- rake release
- rake build (put in pkg/)
- rake test (SEE test.rake)
3. Questions:
- How should the CLI look? (take all args after the keyword and join to make the name)
1. `octopress scaffold theme NAME`
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/alpine.rb
==> Downloading ftp://ftp.cac.washington.edu/alpine/alpine-2.00.tar.gz
Already downloaded: /Library/Caches/Homebrew/alpine-2.00.tar.gz
tar xf /Library/Caches/Homebrew/alpine-2.00.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.3) https://trac.macports.org/export/89747/trunk/dports/mail/alpine/files/alpine-osx-10.6.patch -o 000-homebrew.diff --silent
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file imap/Makefile
patching file imap/src/osdep/unix/ckp_pam.c