Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# Enables caching in Sprockets | |
# ============================ | |
# | |
# I couldn't find it documented anywhere until I searched for it. Sprockets will recompile | |
# every file in a manifest for every request it serves if even *one* file in it changes, | |
# which it really slow for developing anything. | |
# | |
# This fixes that by ensuring only files that get changed get recompiled. NOTE: This is | |
# just an example. What you're looking for is in line 14. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
require 'spec_helper' | |
require_dependency 'js_locale_helper' | |
describe JsLocaleHelper do | |
it 'should be able to generate traslations' do | |
JsLocaleHelper.output_locale('en').length.should > 0 | |
end | |
def setup_message_format(format) | |
@ctx = V8::Context.new |
<?php | |
/* | |
Plugin Name: Localist | |
Plugin URI: | |
Description: Localist allows you to reach an installation of WordPress regardless of the WordPress address defined in the database. | |
Version: 1.0 | |
Author: Michael Camilleri | |
Author URI: http://inqk.net/ | |
License: Public Domain | |
*/ |
<?php | |
$root = $_SERVER['DOCUMENT_ROOT']; | |
chdir($root); | |
$path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/'); | |
if(file_exists($root.$path)) { | |
if(is_dir($root.$path) && substr($path,strlen($path) - 1, 1) !== '/') { |
" open an IRB session in my current folder in the 20% tmux split below | |
map <Leader>irb :call VimuxRunCommand("clear;irb", 1, 0)<CR> | |
" Close the 20% tmux split below | |
map <Leader>cp :call VimuxCloseRunner()<CR> | |
" Open a shell in the 20% tmux split | |
map <Leader>sh :call VimuxRunCommand("clear", 1, 0)<CR> |
#!/usr/bin/env ruby | |
spec_hits = [] | |
checks = { | |
'_spec\.rb$' => ['focus:[:space:]*true'], | |
'\.rb$' => ['binding\.pry', 'debugger'] | |
} | |
# Find the names of all the filenames that have been (A)dded (C)opied or (M)odified | |
filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n") |
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
you did, the {internet|net|web} will be {much more|a lot more} | |
useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
Thanks.| |
#!/usr/bin/python -E | |
# -*- coding: UTF-8 -*- | |
# Usage: In ~/.tmuxrc, | |
# set default-command /Users/chirayu/ck/vcs/ck5/scripts/for_os_x/tmux_shell_with_clipboard_support.sh | |
import ctypes | |
import os | |
import platform |
define( ['jquery'], function ( $ ) { | |
var token = $( 'meta[name="csrf-token"]' ).attr( 'content' ); | |
$.ajaxSetup( { | |
beforeSend: function ( xhr ) { | |
xhr.setRequestHeader( 'X-CSRF-Token', token ); | |
} | |
}); | |
return token; |