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

#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
require 'sinatra'
require 'sinatra/activerecord/rake'
module Jekyll
class CodeTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@language = text
end
def render(context)
"<pre data-language='#{@language}'><code>"