Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
webpackJsonp([0],[ | |
/* 0 */, | |
/* 1 */, | |
/* 2 */, | |
/* 3 */, | |
/* 4 */, | |
/* 5 */, | |
/* 6 */, | |
/* 7 */, | |
/* 8 */ |
<html> | |
<head> | |
<title>{Title}</title> | |
<link rel="shortcut icon" href="{Favicon}"> | |
<link rel="alternate" type="application/rss+xml" href="{RSS}"> | |
{block:Description} | |
<meta name="description" content="{MetaDescription}" /> | |
{/block:Description} | |
<style type="text/css"> | |
@import url('https://fonts.googleapis.com/css?family=Bad+Script|Unica+One|Economica|Great+Vibes'); |
var fs = require('fs') | |
var zlib = require('zlib') | |
var gzip = zlib.createGzip(); | |
var compressor = require(process.env['HOME'] + '/node_modules/node-minify'); | |
new compressor.minify({ | |
type: 'gcc', | |
fileIn: 'js/main.js', | |
fileOut: 'js/main.min.js', | |
callback: function(err, min){ |
/** | |
* Play and Pause buttons | |
*/ | |
body { | |
background: black; | |
} | |
#play, #pause, #fwd, #rew { | |
width:80px; | |
height: 80px; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Array.prototype.search_with_wildcard = function(string) { | |
// example string wildcards | |
//string = "a*h*s"; | |
regexp = new RegExp(/(\w+)|(\W{1})/g); | |
string_wildcard_array = string.match(regexp); | |
wildcard_regex = ['^']; | |
$.each(string_wildcard_array, function(idx, val) { | |
if(val === "*"){ | |
wildcard_regex.push('[A-Za-z]'); | |
} else{ |
# Send password reset notification | |
# path: app/mailers/user_mailer.rb | |
class UserMailer < ActionMailer::Base | |
default :from => "no-reply@example.com" | |
def password_reset(user, password) | |
@user = user | |
@password = password | |
mail(:to => user.email, | |
:subject => 'Password Reset Notification') |
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 |
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:
# | |
# RVM profile | |
# | |
# /etc/profile.d/rvm.sh # sh extension required for loading. | |
# | |
if [ -n "${BASH_VERSION:-}" -o -n "${ZSH_VERSION:-}" ] ; then | |
# Load user rvmrc configurations, if exist | |
for file in /etc/rvmrc "$HOME/.rvmrc" ; do | |
[[ -s "$file" ]] && source $file |