Skip to content

Instantly share code, notes, and snippets.

View jankeesvw's full-sized avatar

Jankees van Woezik jankeesvw

View GitHub Profile
@jankeesvw
jankeesvw / Checklist.applescript
Created September 16, 2015 11:36
Checklist.script
on alfred_script(q)
tell application "Things 2"
set listOfShows to {}
set Shows to paragraphs of (read POSIX file "/Users/jankeesvw/Documents/checklists/Podcast")
repeat with nextLine in Shows
set newToDo to make new to do with properties {name:nextLine} at beginning of project "Checklist"
set tag names of newToDo to "Podcast, Checklist"
end repeat
show project "Checklist"
end tell
@jankeesvw
jankeesvw / CSS-only-sliding-labels.markdown
Created May 12, 2014 07:31
A Pen by Jankees van Woezik.

CSS-only sliding labels

With this css-only solution you only show the 's when necessary, the error state always shows the label.

A Pen by Jankees van Woezik on CodePen.

License.

# Meer vetalingen via https://github.com/plataformatec/devise/wiki/I18n
# Voeg 'config.i18n.default_locale = :nl' toe in je 'application.rb' en herstart je server
nl:
devise:
confirmations:
confirmed: "Je account is bevestigd, je bent nu ingelogd."
send_instructions: "Je zult een e-mail met instructies ontvangen over hoe je jouw account moet bevestigen over een paar minuten."
send_paranoid_instructions: "Als je e-mail bestaat in onze database, zul je een e-mail met instructies ontvangen over hoe je jouw account moet bevestigen over een paar minuten."
failure:

#request

{
   "invoice":{
      "company_name":"TODO: Company",
      "details_attributes":[
         {
            "amount":"10",
            "description":"En nog eens 10 uur",
            "row_order":1

request object:

{
   "invoice":{
     "company_name":"TODO: Company",
     "details_attributes":[
       {
         "amount":16.75,
         "description":"Zestien uur en drie kwartier met rowan gepraat"
namespace :api, defaults: {format: 'json'} do
namespace :v1 do
resources :projects, only: [:index]
end
end
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/locale/en.yml
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/activemodel-3.2.13/lib/active_model/locale/en.yml
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/locale/en.yml
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/actionpack-3.2.13/lib/action_view/locale/en.yml
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/dynamic_form-1.1.4/lib/active_model/locale/en.yml
/Users/jankeesvw/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/dynamic_form-1.1.4/lib/action_view/locale/en.yml
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
@jankeesvw
jankeesvw / gist:5300936
Last active December 15, 2015 17:59 — forked from rexmortus/gist:985046
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitDeveloperExtras"];
[[NSUserDefaults standardUserDefaults] synchronize];
cd ~/.pow
ls -s /PATH/TO/LEX
cd /PATH/TO/LEX
rbenv local 1.9.3-
echo export RAILS_ENV=production > .powenv && touch tmp/restart.txt