Skip to content

Instantly share code, notes, and snippets.

View a5his's full-sized avatar

Ashis Rai a5his

  • Kathmandu, Nepal
View GitHub Profile
/**
* Play and Pause buttons
*/
body {
background: black;
}
#play, #pause, #fwd, #rew {
width:80px;
height: 80px;
@a5his
a5his / UserMailer.rb
Created October 3, 2012 08:30 — forked from willywg/UserMailer.rb
Mass password reset and email notification for Devise 1.4.2 with Rails 3.x
# Send password reset notification
# path: app/mailers/user_mailer.rb
class UserMailer < ActionMailer::Base
default :from => "[email protected]"
def password_reset(user, password)
@user = user
@password = password
mail(:to => user.email,
:subject => 'Password Reset Notification')
@a5his
a5his / coffeescript_bundle_for_sublime.sh
Created September 27, 2012 05:50 — forked from zeke/coffeescript_bundle_for_sublime.sh
Install the CoffeeScript TextMate bundle in Sublime Text 2
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Syntaxes/CoffeeScript.tmLanguage
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Preferences/CoffeeScript.tmPreferences
@a5his
a5his / fixes.md
Created August 9, 2012 11:27 — forked from zoras/fixes.md
Getting rid of nokogiri segfaults

This readme is a mixture of everything I read on SO+nokogiri wiki, which ultimately worked out for me.

Here are the steps which worked for me to get rid of segfaults with Nokogiri 1.4.4, on both Lion and Snow Leopard, with Ruby 1.8.7 (patchlevel 334 and +).

First diagnose which version of libxml2 you're using:

bundle exec nokogiri -v

If you have 2.7.3 listed somewhere, you're in bad waters (known to segfault). Install libxml2, libiconv, and libxslt after removing along with nokogiri: