Skip to content

Instantly share code, notes, and snippets.

Avatar

Chad Humphries spicycode

  • Columbus, OH
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am spicycode on github.
  • I am spicycode (https://keybase.io/spicycode) on keybase.
  • I have a public key whose fingerprint is 0A45 9737 CFA4 811D 46C0 094D AA63 729B 323D 9AA9

To claim this, I am signing this object:

View asdf.md

Horned Logo

  • Just a test of the push framework
@spicycode
spicycode / .zshrc
Last active Aug 29, 2015
My crazy 🎆 description 💥
View .zshrc
# Detect empty enter, execute git status if in git dir
magic-enter () {
if [[ -z $BUFFER ]]; then
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
echo -ne '\n'
git status -sb
fi
zle accept-line
else
zle accept-line
View clonus.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
require 'yaml'
require 'fileutils'
require 'pathname'
RootPath = Pathname.new('/Volumes/space/github_mirror')
GithubInfo = YAML.load_file(RootPath.join('the_parts_horror.yml'))
View quality.rake
begin
require 'flog'
require 'flay'
require 'reek/rake_task'
namespace :quality do
desc "Analyze for code complexity"
task :flog do
flog = Flog.new :methods => true
flog.flog ['app', 'lib']
View ctags config for clojure, cobbled together from the internet
--langdef=Clojure
--langmap=Clojure:.clj
--regex-clojure=/\([ \t]*create-ns[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/n,namespace/
--regex-clojure=/\([ \t]*def[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/d,definition/
--regex-clojure=/\([ \t]*defn-?[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/f,function/
--regex-clojure=/\([ \t]*defmacro[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/m,macro/
--regex-clojure=/\([ \t]*definline[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/i,inline/
--regex-clojure=/\([ \t]*defmulti[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/a,multimethod definition/
--regex-clojure=/\([ \t]*defmethod[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/b,multimethod instance/
--regex-clojure=/\([ \t]*defonce[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/c,definition (once)/
View clonus.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
require 'yaml'
require 'fileutils'
require 'pathname'
RootPath = Pathname.new('/Volumes/space/github_mirror')
GithubInfo = YAML.load_file(RootPath.join('the_parts_horror.yml'))
View gist:371847
require 'pp'
require 'irb/completion'
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:VERBOSE] = true
begin
require 'rubygems'
require 'wirble'
View gist:437776
---
:benchmark: false
:verbose: true
:update_sources: true
gem: --no-rdoc --no-ri
install: --env-shebang
:sources:
- http://gems.rubyforge.org
- http://gems.github.com
:backtrace: false
View dribbble.rb
#!/usr/bin/env ruby
require 'fileutils'
require 'pp'
include FileUtils
FileUtils.mkdir_p('images') unless File.exist?('images')
FileUtils.rm_rf('dribbble.html') if File.exist?('dribbble.html')
FileUtils.rm_rf('dribbble.rss') if File.exist?('dribbble.rss')
FileUtils.rm_rf('download_me.txt') if File.exist?('download_me.txt')