This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--- | |
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/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHPMyTop clone #1000 by Jelle Ursem | |
* One-file MyTop clone with divshot and jquery. | |
* Shows you the queries currently running in your mysql database using show full processlist | |
* Keeps prepending to the log of individual queries executed with no wrapping. | |
* | |
* Hover the Id of a query to see the kill option, click it to send kill $queryid to server. | |
* | |
* Howto: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IRC = new Class({ | |
Implements: [Options, Events], | |
options: { | |
server: 'irc.tweakers.net', | |
port: 6667, | |
host: 'localhost', | |
password: false, | |
nick: 'SchizoIRC', | |
userName: 'SchizoIRC', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IRC = new Class({ | |
Implements: [Options, Events], | |
options: { | |
server: 'irc.tweakers.net', | |
port: 6667, | |
host: 'localhost', | |
password: false, | |
nick: 'SchizoIRC', | |
userName: 'SchizoIRC', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Turn a simplexml document in simple array key/values | |
*/ | |
function simplexml_to_array($xml) { | |
$output = array(); | |
foreach($xml->children() as $tagname => $value) { // recurse the child | |
$child = simplexml_to_array($value); // if it's not an array, then it was empty, thus a value/string | |
if( count($child) == 0 ) $child = (string)$value; | |
foreach( $value->attributes() as $ak => $av ) { // add the childs attributes as if they where children |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/hogliux/bomutils && cd bomutils && make && sudo make install | |
sudo apt-get install libxml2-dev libssl-dev | |
wget https://xar.googlecode.com/files/xar-1.5.2.tar.gz && tar -zxvf ./xar-1.5.2.tar.gz && cd ./xar-1.5.2 && ./configure && make && sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# change the values below to match your system. | |
# target the BUILD_DIR to output from an nw.io build process. nwjs-shell-builder recommended! | |
# https://github.com/Gisto/nwjs-shell-builder | |
# BASE_DIR is the target directory for this script, where files will be gathered and packaged to | |
BUILD_DIR=”/var/www/deploy/TMP/osx-ia32/latest-git” | |
BASE_DIR=”/var/www/deploy/osx” |
OlderNewer