Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Shaun Hannah hooptie45

🎯
Focusing
Block or report user

Report or block hooptie45

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sourcemap-extract.rb
#!/usr/bin/env ruby
require 'open-uri'
require 'pathname'
require 'json'
def strip_hash(f)
ext = f.extname
if ext.include?("?")
View jaxb error.txt
[ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate (default) on project mage-server: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate: com/sun/codemodel/CodeWriter
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/hooptie45/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.12.3/maven-jaxb2-plugin-0.12.3.jar
[ERROR] urls[1] = file:/Users/hooptie45/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.12.3/maven-jaxb2-plugin-core-0.12.3.jar
[ERROR] urls[2] = file:/Users/hooptie45/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar
[ERROR] urls[3] = file:/Users/hooptie45/.m2/repository/com/sun/or
View mage.json
{
"priorityTime": 3000,
"players": [
{
"playerId": "535ec574-6592-48c6-a3f7-d830f1f4d50e",
"name": "hooptie45",
"life": 13,
"counters": {},
"wins": 0,
"winsNeeded": 2,
View angular-spec-helper.coffee
((jasmine)->
root = `(1, eval)('this')`
ARGUMENT_NAMES = /([^\s,]+)/g
getParamNames = (func) ->
fnStr = func.toString()
from = fnStr.indexOf('(') + 1
to = fnStr.indexOf(')')
result = fnStr.slice(from, to).match(ARGUMENT_NAMES)
View gist:9ea24c62b8d83e034237
https://github.com/rails/rails/commit/61b91c4c55bcbd5a2ec85d6e1c67755150653dff#commitcomment-2360502
View .zshrc
git config --global --add core.editor 'edit'
View setup-misc.el
;; Enable paredit for a couple for non lisp modes; tweak
;; paredit-space-for-delimiter-predicates to avoid inserting spaces
;; before open parens.
(dolist (mode '(ruby espresso))
(add-hook (intern (format "%s-mode-hook" mode))
'(lambda ()
(add-to-list (make-local-variable 'paredit-space-for-delimiter-predicates)
(lambda (_ _) nil))
(enable-paredit-mode))))
@hooptie45
hooptie45 / csv_topology.rb
Last active Dec 22, 2015
Demo CSV Generation Storm Topology with Storm, Tire and Redis
View csv_topology.rb
require 'red_storm'
require 'tire'
require 'json'
# rvm use jruby@csv-topology --create
# bundle install
# redstorm bundle topology
# redstorm local csv_topology.rb
class PersistentArticle
include Tire::Model::Persistence
You can’t perform that action at this time.