I hereby claim:
- I am marceldegraaf on github.
- I am marceldegraaf (https://keybase.io/marceldegraaf) on keybase.
- I have a public key whose fingerprint is 9AAD 470A 6401 CFA5 766C AB44 E1A1 A830 6125 FB59
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
dl | |
:width 100% | |
:clear both | |
:border | |
:collapse collapse | |
:top 5px solid #BBB | |
:bottom 5px solid #BBB | |
dt, dd | |
:vertical-align middle | |
:padding-top 12px |
3.10 to Yuma | |
Alles Is Liefde | |
American Beauty | |
Australia | |
Beowulf | |
Best Of Krezip | |
Blindness | |
Body Of Lies | |
Bolt | |
Changeling |
// ==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() | |
{ |
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 + ";#{$/}" |
# 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' |
require 'worker' | |
require 'resque/tasks' |
function! RemoveTrailingWhiteSpaces() | |
" Remove ALL trailing whitespaces | |
%s/\s\+$// | |
endfunction | |
noremap WW :call RemoveTrailingWhiteSpaces()<CR> |
" | |
" 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.' &' |
class ItemsController < ApplicationController | |
include JsonParams | |
def index | |
@items = Item.all | |
respond_to do |format| | |
format.json { render :json => @items.to_json } | |
end | |
end |