Skip to content

Instantly share code, notes, and snippets.

@Zren
Zren / gist:15d800159bee78b3e4e6
Last active May 24, 2017 05:13
Ionic Modal SideMenu

Custom URL Schemes

This will tell you how to have browsers run command line commands when visiting urls with custom schemes custom://.

Steps

  1. Tell the browser how to handle the url scheme
  2. Tell the OS how to handle the url scheme
  3. Parse the url
  4. Run your command
@Zren
Zren / theme.css
Created November 5, 2014 01:22
Quassel WebServer DarkSolarized Theme
.buffer-container {
overflow-x: hidden;
}
.network, .channel, .user, .user-group {
white-space: nowrap;
display: block;
}
.network-name, .channel-name, .user-name, .group-name {
// ==UserScript==
// @name watchcartoononline
// @description Description
// @author Chris H (Zren / Shade)
// @icon http://xshade.ca/favicon.ico
// @namespace http://xshade.ca
// @version 1
// @include http://www.watchcartoononline.com/*
// @include http://www.animeuploads.com/embed.php*
// ==/UserScript==
@Zren
Zren / theme-user.less
Last active August 29, 2015 14:19
QuasselWebserver Theme
//===========
// Zren's quassel-webserver theme.
// https://gist.github.com/Zren/cd964a1fa66894683268
//===========
@import "theme-darksolarized.less";
//===========
// Expiremental
// May be pushed upstream.
//===========
@Zren
Zren / jsbot.js
Created May 30, 2015 00:25
libquassel-bot
// Based on https://github.com/magne4000/node-libquassel
var net = require('net');
var qtdatastream = require('./node_modules/libquassel/node_modules/qtdatastream');
qtdatastream.registerUserType("NetworkId", qtdatastream.Types.INT);
qtdatastream.registerUserType("IdentityId", qtdatastream.Types.INT);
qtdatastream.registerUserType("BufferId", qtdatastream.Types.INT);
qtdatastream.registerUserType("MsgId", qtdatastream.Types.INT);
SELECT
buffer_size.bufferid,
quasseluser.username,
network.networkname,
buffer.buffername,
buffer_size.row_count,
buffer_size.message_count,
(buffer_size.row_count - buffer_size.message_count) AS other_count
FROM
(

SoundCloud Theme for Foobar2000 Waveform Seekbar

Installation

  • Install the Waveform Seekbar for foobar2000.
  • Right click the Waveform Seekbar widget > Configure
  • Under Downmix Display choose Mix-down to mono.
  • Colors
Object.keys(window).filter(function(key){
// Visit the url: about:blank
// and run Object.keys(window) in the console.
var defaultKeys = ["external", "chrome", "document", "speechSynthesis", "caches", "localStorage", "sessionStorage", "webkitStorageInfo", "indexedDB", "webkitIndexedDB", "crypto", "applicationCache", "performance", "styleMedia", "defaultstatus", "defaultStatus", "screenTop", "screenLeft", "clientInformation", "console", "devicePixelRatio", "outerHeight", "outerWidth", "screenY", "screenX", "pageYOffset", "scrollY", "pageXOffset", "scrollX", "innerHeight", "innerWidth", "screen", "navigator", "frameElement", "parent", "opener", "top", "length", "frames", "closed", "status", "toolbar", "statusbar", "scrollbars", "personalbar", "menubar", "locationbar", "history", "location", "name", "self", "window"];
return defaultKeys.indexOf(key) == -1;
}).sort();
texture tex : WAVEFORMDATA;
sampler sTex = sampler_state
{
Texture = (tex);
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU = Clamp;