Skip to content

Instantly share code, notes, and snippets.

View SchizoDuckie's full-sized avatar

SchizoDuckie

  • The Hague
View GitHub Profile
@SchizoDuckie
SchizoDuckie / ircclient.js
Created August 1, 2013 19:41
IRC Client for Adobe Air W.I.P.
IRC = new Class({
Implements: [Options, Events],
options: {
server: 'irc.tweakers.net',
port: 6667,
host: 'localhost',
password: false,
nick: 'SchizoIRC',
userName: 'SchizoIRC',
@SchizoDuckie
SchizoDuckie / apf_release.prepend.js
Created March 20, 2012 20:19
Cloud9 IDE Touch Enabler Monkeypatch
/**
* A proof of concept monkeypatch to make Cloud9 IDE work on a tablet.
* Since i'm an extremely lazy bastard I prepended this snippet directly in package/client/js/apf_release.js
*
* What does it do?
* - It fires a doubleclick for a 2-finger tap
* - It fires a mousewheel up / down event for a 2-finger swipe up / down.
*
* How does it work?
* Prepend the functions below to <cloud9>/package/client/js/apf_release.js, save, load in tablet.
@SchizoDuckie
SchizoDuckie / channels.js
Created April 5, 2011 01:21
A little patch to allow rudimentary wildcard events.
/*
---
name: Channels
description: Mediate Class events. An expanded pattern for pub/sub.
license: MIT-style license.
copyright: Copyright (c) 2010 [Ryan Florence](http://ryanflorence.com/).
@SchizoDuckie
SchizoDuckie / FavoritesService.js
Created November 26, 2014 22:25
Le glorious refactoring of FavoritesService in DuckieTV
/**
* Refactored: 52 lines
*/
addFavorite: function(data, watched) {
watched = watched || [];
console.log("FavoritesService.addFavorite!", data, watched);
return service.getById(data.tvdb_id).then(function(serie) {
if (!serie) {
serie = new Serie();
@SchizoDuckie
SchizoDuckie / DuckieTV-Huge.backup
Last active August 29, 2015 14:01
A huge 5.6mb sqlite database created by DuckieTV after you import this to test the limits of the extensions permissions system
{
"settings": {
"0.42.orphancheck": "done",
"0.4migration": "done",
"0.5.firetimers": "done",
"0.53.createtimers": "true",
"0.5firetimers": "done",
"runtime.event": "{\n \"previousVersion\": \"0.53\",\n \"reason\": \"update\"\n}",
"userPreferences": "{\n \"topSites.enabled\": true,\n \"torrenting.enabled\": true,\n \"torrenting.searchprovider\": \"ThePirateBay\",\n \"torrenting.searchbox\": true,\n \"torrenting.searchquality\": \"HDTV\",\n \"thepiratebay.mirror\": \"https://thepiratebay.se\",\n \"series.displaymode\": \"poster\",\n \"calendar.large\": false,\n \"ChromeCast.localIpAddress\": \"192.168.56.1\",\n \"calendar.mode\": \"date\",\n \"calendar.startSunday\": true\n}",