Skip to content

Instantly share code, notes, and snippets.

SchizoDuckie

  • The Hague
Block or report user

Report or block SchizoDuckie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stairleds_16xrelay.c
/**
* ---------------------------------------------------------
* | Esp-32/Arduino Stair Led Relay control |
* | By SchizoDuckie, ©2019 |
* | |
* | Disclaimer: |
* | I am in no way, shape or form responsible for |
* | - You setting your house on fire |
* | - Your firstborn suddenly getting autism |
* | - Your girlfriend running off with the neighbour |
@SchizoDuckie
SchizoDuckie / build_mac.sh
Created Jul 7, 2015
Build an OSX .pkg installer from Linux using mkbom and xar
View build_mac.sh
#!/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” 
View keybase.md

Keybase proof

I hereby claim:

  • I am schizoduckie on github.
  • I am schizoduckie (https://keybase.io/schizoduckie) on keybase.
  • I have a public key ASC-RaPjtlfuI-IWqq1_73SOGJ81KYFgQfJ4E5Gu-tQt3go

To claim this, I am signing this object:

View lexos.js
/*! BvS-LexOS - v1.0.0 - built: Thursday, March 31st, 2016, 2:20:34 PM */ ! function a(b, c, d) {
function e(g, h) {
if (!c[g]) {
if (!b[g]) {
var i = "function" == typeof require && require;
if (!h && i) return i(g, !0);
if (f) return f(g, !0);
var j = new Error("Cannot find module '" + g + "'");
throw j.code = "MODULE_NOT_FOUND", j
}
View CustomSearchEngine.json
[{
"className": "row",
"fieldGroup": [{
"key": "name",
"type": "input",
"templateOptions": {
"required": true,
"label": "Search Engine Name",
"type": "text"
},
@SchizoDuckie
SchizoDuckie / phpmytop.php
Last active May 9, 2016
/** * 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…
View phpmytop.php
<?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:
View gist:6145817
/**
* 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
@SchizoDuckie
SchizoDuckie / ircclient.js
Created Aug 2, 2013
JS IRC Client using Adobe Air for sockets.
View ircclient.js
IRC = new Class({
Implements: [Options, Events],
options: {
server: 'irc.tweakers.net',
port: 6667,
host: 'localhost',
password: false,
nick: 'SchizoIRC',
userName: 'SchizoIRC',
@SchizoDuckie
SchizoDuckie / ircclient.js
Created Aug 1, 2013
IRC Client for Adobe Air W.I.P.
View ircclient.js
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 Mar 20, 2012
Cloud9 IDE Touch Enabler Monkeypatch
View apf_release.prepend.js
/**
* 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.
You can’t perform that action at this time.