View PushoverApi.class.php
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 | |
namespace wcf\system\pushover\API; | |
use wcf\util\ArrayUtil; | |
use wcf\util\HTTPRequest; | |
use wcf\util\JSON; | |
use wcf\util\StringUtil; | |
/** | |
* Pushover API | |
* |
View gist:9558833
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.externalURL").each(function() { | |
$(this).removeClass('externalURL'); | |
$(this).prepend('<img src="//www.google.com/s2/favicons?domain=' + this.href + '" alt="" /> '); | |
}); |
View gist:9754783
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
$(".messageContent").dblclick(function() { | |
var $btn = $(".messageOptions a.button.jsMessageEditButton", this); | |
if($btn.length) { | |
$btn.dblclick(); | |
} | |
}); |
View gist:564d25326962200e6767
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
/** | |
* Message autosave related classes for WCF (WIP) | |
* | |
* @author Sascha Greuel | |
* @copyright 2014 Sascha Greuel | |
* @license Creative Commons Attribution-NoDerivatives <http://creativecommons.org/licenses/by-nd/4.0/legalcode> | |
*/ | |
/** | |
* Displays and manages an info box for autosaved contents. |
View Da Dino
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
iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAAACVBMVEVTU1P///9TU1P8g2f9AAAAAnRSTlMAAHaTzTgAAAB0SURBVHhe1dMxCgMxDAXRIaVOkXrvs/f79ZwyEGNITKwUgcBOZR4upEKcSxeCmSrAFko1r5Cv4J8A6EGzgwLQQAdHD5ljbUFU08Gz8AOwgWX1HlBNC6WyBVWMOBpq5C2pz3ALUIGsP1ZAKtznmxoAAtc5wgegV/QjpyQHeQAAAABJRU5ErkJggg==iVBORw0KGgoAAAANSUhEUgAAAIAAAACAAgMAAAC+UIlYAAAACVBMVEVTU1P///9TU1P8g2f9AAAAAnRSTlMAAHaTzTgAAACFSURBVHhe7dY9CoBADITRqfd+XnJOKco6EC32h4VRzFdEMK9II4it0fdAggT3WEPNAKjmAfxA2UEC7QzA/mHxcaMNFDoBz6k8gNqT8IAQ8FeAtQBTAG4QBWxAAgZALY5xPkNtoARiYwDAWlDYC+pl1FBNoFYBXqOMAF0ooPed4G2/7gkS7LQn0KpfZWb2AAAAAElFTkSuQmCC |
View Nginx rewrites
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
# Sascha Greuel <sascha@softcreatr.de> | |
# 2014-08-06 | |
# Rev. 1 | |
# ========== | |
# WoltLab Community Framework | |
# ========== | |
if ($args ~ "page=Portal") { | |
rewrite ^.*$ /index.php/Dashboard/? permanent; |
View twitchIcon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View autopoke.user.js
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
// ==UserScript== | |
// @name Facebook Autopoke | |
// @icon http://i.imgur.com/5ShnMqG.png | |
// @namespace http://www.softcreatr.de | |
// @author Sascha Greuel | |
// @description Automatically pokes back people. | |
// @version 1.9.0 | |
// @run-at document-end | |
// @grant none | |
// |
View gist:43ac7bbfec0b0c0f371e
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
// parseUri 1.2.2 | |
// (c) Steven Levithan <stevenlevithan.com> | |
// MIT License | |
function parseUri (str) { | |
var o = parseUri.options, | |
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), | |
uri = {}, | |
i = 14; |
View MathUtilExt.class.php
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 | |
namespace wcf\util; | |
/** | |
* Extended math-related functions. | |
* | |
* @author Sascha Greuel <sascha@softcreatr.de> | |
* @copyright Sascha Greuel | |
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
* @package com.woltlab.wcf |
OlderNewer