Skip to content

Instantly share code, notes, and snippets.

@webhat
webhat / handout.yml
Created September 14, 2017 10:21 — forked from yeehaa123/handout.yml
title: Handout Clojurebridge Amsterdam
meta:
date: 11-02-2017
location: Herengracht 258 - 266
sections:
- title: What is Clojure(Script)?
resources:
- title: What is Clojure?
url: http://www.lispcast.com/what-is-clojure
- title: Lisp (programming language)
@webhat
webhat / Oplerno Edit Page.markdown
Created August 27, 2015 09:07
Oplerno Edit Page
@webhat
webhat / keeniolab.js
Created June 6, 2013 12:34
Keen.IO Resource Factory with Service Model
'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' }
@webhat
webhat / github.cap
Last active January 2, 2016 21:19
I use this capistrano task to solve the Know Host bug that github has. https://help.github.com/articles/deploying-with-capistrano#known-hosts-bug
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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

Behavior Driven Development

Description of BDD

  • Domain-driven design

Principles of BDD

  • Enough is enough
@webhat
webhat / gist:3772793
Created September 23, 2012 19:44
Add File to Evernote with Tags
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"}

Keybase proof

I hereby claim:

  • I am webhat on github.
  • I am webhat (https://keybase.io/webhat) on keybase.
  • I have a public key whose fingerprint is FAB8 4200 587A 6BB2 9D64 9DB9 D9D8 7346 D4F7 B651

To claim this, I am signing this object:

@webhat
webhat / css-flex-box.markdown
Last active August 29, 2015 14:11
CSS flex-box