Skip to content

Instantly share code, notes, and snippets.

View Paging.js
const hasNextChapter = true;
const hasNextPage = true;
const hasPreviousChapter = true;
const hasPreviousPage = true;
const goToNextChapter = function() {};
const goToNextPage = function() {};
const goToPreviousChapter = function() {};
const goToPreviousPage = function() {};
@geoffreak
geoffreak / generator-v4.ts
Created Sep 25, 2016
Oibackoff typing generator (short and working!)
View generator-v4.ts
import * as fs from 'fs';
// Settings
let generics = ['a','b','c','d','e','f','g','h','i','j','k'];
let paramGenerics = ['o','p','q','r','s','t','u','v','w','x','y','z'];
let parameterName = 'p';
// File
let fileStream = fs.createWriteStream('index.d.ts');
@geoffreak
geoffreak / generator-v3.ts
Created Sep 25, 2016
Oibackoff typing that works thanks to a bug that makes things simpler!
View generator-v3.ts
import * as fs from 'fs';
// Settings
let generics = ['a','b'];
let maxParameters = 10;
let maxCallbackParameters = 2;
let parameterName = 'data';
// File
let fileStream = fs.createWriteStream('index.d.ts');
@geoffreak
geoffreak / generator-v2.ts
Created Sep 25, 2016
Oibackoff typing generator (typings don't work)
View generator-v2.ts
import * as fs from 'fs';
// Settings
let generics = ['a','b','c','d','e','f','g','h','i'];
let maxParameters = 10;
let parameterName = 'arg';
// File
let fileStream = fs.createWriteStream('index.d.ts');
@geoffreak
geoffreak / generator-v1.ts
Last active Sep 25, 2016
Oibackoff Typing Generator (typings work, but very long)
View generator-v1.ts
import * as fs from 'fs';
// Settings
let generics = ['a','b','c','d','e','f','g','h','i'];
let maxParameters = 10;
let parameterName = 'data';
// File
let fileStream = fs.createWriteStream('index.d.ts');
@geoffreak
geoffreak / httpClientSuccess.coffee
Created Mar 14, 2013
Large files will not be uploaded via HTTPS
View httpClientSuccess.coffee
request = require 'request'
fs = require 'fs'
fs.createReadStream('./files/testfile.txt').pipe request.put 'http://localhost:8091/', (err, res, body) =>
console.log err, res, body
@geoffreak
geoffreak / gist:4187062
Created Dec 2, 2012
Insta crash with Plex 0.9.6.8
View gist:4187062
Process: Plex Media Server [2057]
Path: /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Identifier: com.plexapp.plexmediaserver
Version: 0.9.6.8 (0.9.6.8.228-e6ae65a)
Code Type: X86 (Native)
Parent Process: launchd [201]
User ID: 501
Date/Time: 2012-12-01 23:17:39.932 -0600
OS Version: Mac OS X 10.8.2 (12C60)
@geoffreak
geoffreak / gist:4187054
Created Dec 2, 2012
Insta crash with Plex 0.9.6.9
View gist:4187054
Process: Plex Media Server [1972]
Path: /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Identifier: com.plexapp.plexmediaserver
Version: 0.9.6.9 (0.9.6.9.240-8fd9c6a)
Code Type: X86 (Native)
Parent Process: launchd [201]
User ID: 501
Date/Time: 2012-12-01 23:14:05.261 -0600
OS Version: Mac OS X 10.8.2 (12C60)
@geoffreak
geoffreak / gist:4187041
Created Dec 2, 2012
Plex Crash on Start (every time)
View gist:4187041
Process: Plex Media Server [1815]
Path: /Applications/Plex Media Server.app/Contents/MacOS/Plex Media Server
Identifier: com.plexapp.plexmediaserver
Version: 0.9.7.3 (0.9.7.3.317-d4217ec)
Code Type: X86 (Native)
Parent Process: launchd [201]
User ID: 501
Date/Time: 2012-12-01 23:06:57.809 -0600
OS Version: Mac OS X 10.8.2 (12C60)