This file contains 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
dl | |
:width 100% | |
:clear both | |
:border | |
:collapse collapse | |
:top 5px solid #BBB | |
:bottom 5px solid #BBB | |
dt, dd | |
:vertical-align middle | |
:padding-top 12px |
This file contains 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
3.10 to Yuma | |
Alles Is Liefde | |
American Beauty | |
Australia | |
Beowulf | |
Best Of Krezip | |
Blindness | |
Body Of Lies | |
Bolt | |
Changeling |
This file contains 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
// ==UserScript== | |
// @name Today's date in new declaration | |
// @namespace http://slashdev.nl/ | |
// @description Fills in today's date in FUO's New Declaration screen | |
// @include https://extranet.finalist.com/FacturenOnline/selfbilling/declarationModifyAction.do?dispatch=initCreateDeclaration | |
// ==/UserScript== | |
( | |
function setDateFields() | |
{ |
This file contains 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
namespace :csv do | |
desc "Makes sure all rows have a trailing ;" | |
task :cleanup do | |
file, new_file = ENV['FILE'], ENV['NEWFILE'] | |
raise "Provile valid FILE and NEWFILE, e.g. FILE=./lib/prospects.csv" unless file or new_file | |
lines, new_file = File.open(file), File.open(new_file, 'wb') | |
lines.each_line do |line| | |
unless line.strip.last == ";" | |
line = line.strip + ";#{$/}" |
This file contains 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
# In lib/query/base_query.rb | |
# | |
def to_params | |
params = {} | |
if @keywords | |
params[:q] = @keywords | |
params[:fl] = '* score' | |
params[:fq] = types_phrase | |
params[:qf] = text_field_names.join(' ') | |
params[:defType] = 'dismax' |
This file contains 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
require 'worker' | |
require 'resque/tasks' |
This file contains 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
function! RemoveTrailingWhiteSpaces() | |
" Remove ALL trailing whitespaces | |
%s/\s\+$// | |
endfunction | |
noremap WW :call RemoveTrailingWhiteSpaces()<CR> |
This file contains 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
" | |
" APIdock search for word under cursor | |
" | |
let g:browser = 'open -a /Applications/Google\ Chrome.app ' | |
" On OSX - let g:browser = 'open -a /Applications/Firefox.app' | |
" Open the Ruby ApiDock page for the word under cursor, in a new Firefox tab | |
function! OpenRubyDoc(keyword) | |
let url = 'http://apidock.com/ruby/search/quick?query='.a:keyword | |
exec '!'.g:browser.' '.url.' &' |
This file contains 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
class ItemsController < ApplicationController | |
include JsonParams | |
def index | |
@items = Item.all | |
respond_to do |format| | |
format.json { render :json => @items.to_json } | |
end | |
end |
This file contains 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
en_gb: &definitions | |
cake: lie | |
huge: success | |
en_us: | |
<<: *definitions |
OlderNewer