Skip to content

Instantly share code, notes, and snippets.

View sway's full-sized avatar
🚀
Shipping

Jan Ustohal sway

🚀
Shipping
View GitHub Profile
@sway
sway / gist:1694403
Created January 28, 2012 14:08
InDesign CD5.5 Trial version, OS X Lion
Process: Adobe InDesign CS5.5 [2996]
Path: /Applications/Adobe InDesign CS5.5/Adobe InDesign CS5.5.app/Contents/MacOS/Adobe InDesign CS5.5
Identifier: com.adobe.InDesign
Version: 7.5.2.318 (7520)
Code Type: X86 (Native)
Parent Process: launchd [248]
Date/Time: 2012-01-28 15:06:42.418 +0100
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9
@sway
sway / commits-by-hour
Created July 11, 2012 20:25 — forked from bobuss/commits-by-hour
Git commits funstats
#!/usr/bin/env bash
for i in $(seq -f %02g 0 23); do echo $( echo -e "$i\t"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l); done
@sway
sway / fontawesome.sty
Created July 12, 2012 23:14
FontAwesome mapping for XeLaTeX
% FontAwesome (http://fortawesome.github.com/Font-Awesome/) bindings for (Xe)LaTeX
% Author: Honza Ustohal <honza@egoistic.biz>
%
% Translation of FontAwesome's private range characters into XeTeX symbols. All icons are camel-cased and prefixed with 'fa', i.e. what was .icon-align-center the CSS version of FontAwesome becomes \faAlignCenter
% This might be reworked into a full blown package in the near future
%
% Prerequisite:
% XeLaTeX, FontAwesome installed as a system font accessible by XeLaTeX
%
% Usage:
@sway
sway / XeLaTeX-custom.engine
Created July 15, 2012 00:12
TeXShop + Growl Notifications
#!/bin/bash
IMAGE_RUN="" # Complete path to the desired icon
MSG_RUN="Compilation running"
IMAGE_FAIL=""
MSG_FAIL="Compilation failed"
IMAGE_OK=""
MSG_OK="Compilation done"
@sway
sway / 01_arabic_roman.rb
Created December 1, 2012 17:21
SP Ruby quiz - Task 1
$map = {
'M' => 1000,
'CM' => 900,
'D' => 500,
'CD' => 400,
'C' => 100,
'XC' => 90,
'L' => 50,
'XL' => 40,
'X' => 10,
@sway
sway / gist:5622749
Created May 21, 2013 20:01
Flurry test request
honza@dalwhinnie ~ » curl -s -vvv -H "Accept-Encoding: gzip, deflate, compress" http://api.flurry.com/appCircle/v2/getRecommendations\?apiAccessCode\=ZVFRTPM9ZMPDZDXB5WVW\&ipAddress\=71.253.124.230\&apiKey\=FCXC5H6MWFGSBFHKVV9Q\&sha1Mac\=\&platform\=IPHONE\&iosUdid\=f8f9e23815bc3d3a836643bf9fbadf8feba9b665 > test.json
* About to connect() to api.flurry.com port 80 (#0)
* Trying 74.217.75.14...
* connected
* Connected to api.flurry.com (74.217.75.14) port 80 (#0)
> GET /appCircle/v2/getRecommendations?apiAccessCode=ZVFRTPM9ZMPDZDXB5WVW&ipAddress=71.253.124.230&apiKey=FCXC5H6MWFGSBFHKVV9Q&sha1Mac=&platform=IPHONE&iosUdid=f8f9e23815bc3d3a836643bf9fbadf8feba9b665 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: api.flurry.com
> Accept: */*
> Accept-Encoding: gzip, deflate, compress
Jul 9 15:20:06 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: change - 1
Jul 9 15:20:06 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: error - 2
Jul 9 15:20:06 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: ready - 3
Jul 9 15:20:09 White-iPod TestIntegration[311] <Warning>: [Mobile ads] Completed Initial load - notifying mraid bridge of READY/DEFAULT state
Jul 9 15:20:09 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: mraid.js - change event: %7B'state': default%7D
Jul 9 15:20:09 White-iPod TestIntegration[311] <Warning>: [Mobile ads] Completed Initial load - notifying mraid bridge of READY/DEFAULT state
Jul 9 15:20:09 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: mraid.js - change event: %7B'state': default%7D
Jul 9 15:20:09 White-iPod TestIntegration[311] <Warning>: [Mob
Jul 9 16:06:10 White-iPod TestIntegration[311] <Warning>: [Mobile ads] WARNING! Tried to insert nil value into AdEvent for key adSlotType
Jul 9 16:06:17 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: change - 1
Jul 9 16:06:17 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: error - 2
Jul 9 16:06:17 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: Added event listener for: ready - 3
Jul 9 16:06:18 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: getState returned: loading
Jul 9 16:06:18 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-log: mraid.js - mraid.addEventListener: ready
Jul 9 16:06:18 White-iPod TestIntegration[311] <Warning>: [Mobile ads] Completed Initial load - notifying mraid bridge of READY/DEFAULT state
Jul 9 16:06:18 White-iPod TestIntegration[311] <Warning>: [Mobile ads] MRAID log: ios-lo
002293c4-ee17-11e2-89bb-a08a9098675a
004eaf9c-ed25-11e2-8508-808a9061821e
006e4e5a-ed67-11e2-8c14-b08a909b4dfc
008cea0e-ee48-11e2-8669-a08a909b4dfc
00be727c-ee20-11e2-96f2-508a909a38d6
00d1c13c-edbd-11e2-a089-d08a909a3a5e
00d87854-edd3-11e2-a194-d08a9098675a
00fa2e12-ed98-11e2-9374-508a909108be
010b7d9a-eddc-11e2-b215-b08a909a38d6
01230552-ed35-11e2-962c-508a909a3a5e
@sway
sway / genesis_public_key
Created February 22, 2018 11:54
genesis_public_key
044a1a7a351c19f6e491aefb28ec644b4b87ab0f3885e4b75f7a038c00cc871604d38cbf09b92fa5bcd0bb73ab2ccd0fe7fcca4d603bcee7edeb4264957f7ef952