Skip to content

Instantly share code, notes, and snippets.

View Teggy's full-sized avatar
💯
100% busy shooting lecture videos...

Torsten Grust Teggy

💯
100% busy shooting lecture videos...
View GitHub Profile
@Teggy
Teggy / Chocolat-1.3.2-crash-report
Created October 9, 2012 09:45
Chocolat 1.3.2 Crash Report. These happen frequently (a dozen times) a day and turn out to be a real show-stopper.
Process: Chocolat [21406]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: 1.3.2 (1.3.2)
Code Type: X86-64 (Native)
Parent Process: launchd [154]
User ID: 501
Date/Time: 2012-10-09 11:42:33.565 +0200
OS Version: Mac OS X 10.8.2 (12C60)
@Teggy
Teggy / init.js
Created August 10, 2012 14:26
Chocolat mixin: Replace selection with current date (example code that captures the output of a spawned process)
/*!
* Replace selection with current date
* Copyright(c) 2012 Torsten Grust <torsten.grust@gmail.com>
*/
var spawn = require('child_process').spawn;
/**
* Hook up menu items.
*/
@Teggy
Teggy / flat_query.sql
Created July 25, 2008 08:24
Flat vs. nested SQL queries (just a gist test)
select max(A)
from R
where R.B in (1,2,3,4,5,6,7,8,9,10)
SELECT COUNT(*)
FROM R
WHERE NOT EXISTS (SELECT 1
FROM S
WHERE S.A = R.A)