I hereby claim:
- I am mgratzer on github.
- I am mgratzer (https://keybase.io/mgratzer) on keybase.
- I have a public key whose fingerprint is EB5E 4883 AC15 07DD B1A6 60B9 A988 891C 3AD7 196B
To claim this, I am signing this object:
require 'rexml/document' | |
def file_name(file) | |
if file.end_with?(".xml") then | |
file = file.gsub(".xml", ".hrm") | |
else | |
file = "#{file}.hrm" | |
end | |
return file | |
end |
# A simple liquid tag plugin for displaying public http://www.mindmeister.com mind maps | |
# Author: Martin Gratzer - @mgratzer | |
# Site: http://www.mgratzer.com | |
# Plugin License: MIT | |
# | |
# Usage: {% mindmeister ID,WIDTH,HEIGHT,ZOOM,LIVE_UPDATES,SHOW_SCROLLBARS %} | |
# Example: {% mindmeister 2529908,600,400,1.0,1,1 %} | |
module Jekyll | |
class MindMeisterTag < Liquid::Tag |
#!/bin/sh | |
NAME="blogname" | |
DIR="/var/www/blogfolder" | |
SQL="blogdatabase" | |
U="dbuser" | |
P="dbpassword" | |
NOW=$(date +"%m_%d_%Y") | |
FILE="$NAME.$NOW.tar.gz" | |
TARGET="/root/Dropbox/Backup/$FILE" |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Six weeks is long enough to build something meaningful start-to-finish and short enough that everyone can feel the deadline looming from the start, so they use the time wisely. https://basecamp.com/shapeup/0.3-chapter-01#six-week-cycles
fixed time, variable scope
extension NSSortDescriptor { | |
/// Usage: | |
/// NSSortDescriptor( | |
/// keyPath: \YourType.propertyName, | |
/// ascending: false | |
/// ) | |
convenience init<T, U: Any>(keyPath: KeyPath<T, U>, ascending: Bool) { | |
self.init( | |
key: NSExpression(forKeyPath: keyPath).keyPath, | |
ascending: ascending |