- Domain-driven design
- Enough is enough
| on run {input} | |
| tell application "Evernote" | |
| repeat with SelectedFile in input | |
| try | |
| display dialog "Tags for " & SelectedFile default answer "" | |
| set value to text returned of result | |
| set AppleScript's text item delimiters to "," | |
| set the_tags to text items of value | |
| set the_tags to the_tags & {"file", "paper", "book"} | |
| 'use strict'; | |
| angular.module('keeniolab', ['ngResource']). | |
| factory('KeenIO',function ($resource) { | |
| var KeenIO = $resource('https://api.keen.io/3.0/projects/513a76812975164a4a000002/queries/:type', | |
| { | |
| api_key: 'api-key', | |
| event_collection: 'read', | |
| timezone: 7200 | |
| }, { | |
| update: { method: 'PUT' } |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| namespace :github do | |
| desc 'Add Github to known hosts' | |
| task :ssh do | |
| on roles(:all) do | |
| execute "echo 'github.com,207.97.227.239 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts" | |
| end | |
| end | |
| end |
| #!/bin/sh | |
| KEY="$HOME/.ssh/id_rsa.pub" | |
| U=$2 | |
| echo $U | |
| if [ -z "$U" ] ;then | |
| U=deploy |
| <body> | |
| <div id='course_list'></div> | |
| </body> |
A Pen by Daniel W. Crompton on CodePen.
A Pen by Daniel W. Crompton on CodePen.