This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!Array.prototype.filter) { | |
| Array.prototype.filter = function (fun, thisp) { | |
| "use strict"; | |
| if (typeof this === "undefined" || this === null) { | |
| throw new TypeError(); | |
| } | |
| if (typeof fun !== "function") { | |
| throw new TypeError(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Do something productive!</title> | |
| <style> | |
| label { | |
| display: block; | |
| margin-bottom: 0.5em; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-eclipse-plugin</artifactId> | |
| <version>2.9</version> | |
| <configuration> | |
| <additionalBuildcommands> | |
| <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> | |
| <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand> | |
| </additionalBuildcommands> | |
| <additionalProjectnatures> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jruby-1.6.7.2 :013 > !foo == nil | |
| NameError: undefined local variable or method `foo' for #<Object:0x26796e1c> | |
| from (irb):13:in `evaluate' | |
| from org/jruby/RubyKernel.java:1083:in `eval' | |
| from /Users/tmenag200/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:158:in `eval_input' | |
| from /Users/tmenag200/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:271:in `signal_status' | |
| from /Users/tmenag200/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:155:in `eval_input' | |
| from org/jruby/RubyKernel.java:1410:in `loop' | |
| from org/jruby/RubyKernel.java:1183:in `catch' | |
| from /Users/tmenag200/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/irb.rb:154:in `eval_input' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # up - a bash script that updates either a git or an svn repo. | |
| # | |
| # Copyright (c) 2012 Trevor Lalish-Menagh | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # up - a bash script that updates either a git or an svn repo. | |
| # | |
| # Copyright (c) 2012 Trevor Lalish-Menagh | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Colors | |
| # | |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| NORMAL="\[\033[0m\]" | |
| # | |
| # Prompt Setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_links": { | |
| "self": { "href": "/" }, | |
| "curies": [{ | |
| "name": "ex", | |
| "href": "http://www.example.com/rels/{rel}", | |
| "templated": true | |
| }, | |
| { | |
| "name": "ot", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ### | |
| # cd override | |
| # | |
| # This replaces the builtin cd command | |
| ### | |
| function init_local_env() { | |
| SAVED_VAR=ENV$(echo $1 | sed -e s:/:_:g | tr "[:lower:]" "[:upper:]")_SAVED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " :RL <regexp> will now remove all matched lines in a file | |
| function! RemoveLine(regexp) | |
| exe '%s,^.*' . a:regexp . '.*$\n,,g' | |
| endfunction | |
| command! -nargs=1 RL call RemoveLine(<f-args>) |