Skip to content

Instantly share code, notes, and snippets.

0407ae400603e52925233968a86cda753d87109f197be606c343cba73e4e1b637b5fdf1ef9f67ace5f3d00481ea8a0d2e25e5312ea8523754853ad548055b0409b;hesterbergnl

Keybase proof

I hereby claim:

  • I am nbucciarelli on github.
  • I am nbucciarelli (https://keybase.io/nbucciarelli) on keybase.
  • I have a public key whose fingerprint is 3D4A 2610 20F1 CEDF 8B42 344B 074B 0093 5789 5B2D

To claim this, I am signing this object:

# ~/.bash_profile
eval "$(rbenv init -)"
eval "$(hub alias -s)"
DIR_COLOR="\[\e[0;32m\]"
GIT_BRANCH_COLOR="\[\e[0;36m\]"
GIT_CLEAN_COLOR="\[\e[1;32m\]"
GIT_DIRTY_COLOR="\[\e[0;31m\]"
PROMPT_COLOR="\[\033[38;5;172m\]"
@nbucciarelli
nbucciarelli / gist:ae68d19f9a2285efa194
Created September 2, 2014 15:34
nbucciarelli.zsh-theme
local lambda='%{$fg[yellow]%}λ%{$reset_color%}'
local rvm_ruby='%{$fg[red]%}$(rvm-prompt i v g)%{$reset_color%}'
local git_branch='%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%}'
PROMPT="%{$fg[green]%}%~ ${rvm_ruby} ${git_branch}
☃ ${lambda} "
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=" "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗"
@nbucciarelli
nbucciarelli / gist:8010816
Last active May 20, 2016 11:41
Diablo II ignore list.
There are many ways to create and edit an ignorelist file but I feel these
instructions are as simple as I can make them. Type /ignorepersist in game.
If the game says disabled, type it again. Then type /filtermsg spam this will
ignore all messages with the word spam in them, not super useful. Then close
Diablo II. Right click on your Diablo II shortcut and hit properties from the
context menu. In the popup window press "find target." This will open your
Diablo II folder. Find the file named ignorelist and right click it. Choose
open and select notepad as the program you wish to edit it with. Highlight all
the text in the file and Paste the text included in the link beginning with the
first line starting with !, into the file (do NOT paste the instructions at
--type-add
ruby=.haml
--type-add
ruby=.coffee
--type-add
ruby=.sass
--type-add
ruby=.scss
--type-add
ruby=.erb
@nbucciarelli
nbucciarelli / gist:2711287
Created May 16, 2012 15:27
Example Javascript
var square = function(x) {
return x * x;
};
var cube = function(x) {
return square(x) * x;
};
cube(3)
-- 27
@nbucciarelli
nbucciarelli / url_params.js
Created September 28, 2011 17:08
Grab URL params
// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
@nbucciarelli
nbucciarelli / rails_3_1_beta_1_changes.md
Created May 28, 2011 03:53 — forked from ryanb/rails_3_1_rc4_changes.md
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 Beta 1

  • The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]

  • jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]

  • Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]

  • The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]

%table
%tr
%td.white_square
&#9820;
%td.black_square
&#9822;
%td.white_square
&#9821;
%td.black_square
&#9819;