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
# WordPress plugin reducisaurus Makefile | |
# Author: haliphax <https://haliphax.dev> | |
# current directory - used when zipping | |
CWD := $(shell pwd) | |
# get project base name from directory name | |
PROJ := $(word $(words $(subst /, ,$(CWD))), $(subst /, ,$(CWD))) | |
# pull version from main project file | |
VER := $(shell egrep "^Version:" $(PROJ).php | cut -d" " -f2) |
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
ko.extenders.scrollFollow = function (target, selector) { | |
target.subscribe(function (newval) { | |
var el = document.querySelector(selector); | |
// the scroll bar is all the way down, so we know they want to follow the text | |
if (el.scrollTop == el.scrollHeight - el.clientHeight) { | |
// have to push our code outside of this thread since the text hasn't updated yet | |
setTimeout(function () { el.scrollTop = el.scrollHeight - el.clientHeight; }, 0); | |
} | |
}); |
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 if(! defined('BASEPATH')) exit(); | |
class Browsercache | |
{ | |
private $ci; | |
function __construct() | |
{ | |
$this->ci =& get_instance(); | |
} |
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 CHUD | |
// @namespace https://roadha.us | |
// @author haliphax (https://roadha.us) | |
// @contributor jimflexx (http://userscripts.org/users/117383) | |
// @description Caddy Healer for Urban Dead | |
// @include http://urbandead.com/map.cgi* | |
// @include http://www.urbandead.com/map.cgi* | |
// ==/UserScript== |
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== | |
// @match http://urbandead.com/map.cgi* | |
// @match http://www.urbandead.com/map.cgi* | |
// @include http://*urbandead.com/map.cgi* | |
// @exclude http://*urbandead.com/map.cgi?log* | |
// @name UD Profile Expander | |
// @namespace http://userscripts.org/users/72447 | |
// @description (Urban Dead) Shows users' profile information in-game | |
// ==/UserScript== |
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== | |
// @match http://www.tvguide.com/listings/ | |
// @name TV Guide Tidy | |
// @description Cleans up the TV Guide listings page | |
// @version 1.0 | |
// ==/UserScript== | |
window.onload = function(){ | |
var l = document.querySelector(".listings-w"); |
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 Give Me Coins Condensed | |
// @namespace http://roadha.us | |
// @version 1.0 | |
// @description Condenses the layout of the give-me-coins.com dashboard | |
// @include https://give-me-coins.com/pool/dashboard | |
// @match https://give-me-coins.com/pool/dashboard | |
// @run-at document-end | |
// ==/UserScript== |
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== | |
// @author haliphax | |
// @include http://*urbandead.com/map.cgi* | |
// @exclude http://*urbandead.com/map.cgi?log* | |
// @name UDInventory | |
// @namespace https://roadha.us | |
// @description (Urban Dead) Groups items together in your inventory and squashes mall search | |
// @version 1.1 | |
// ==/UserScript== |
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
#!/usr/bin/env bash | |
VERB=enable | |
KEYBOARD_ID=12 | |
TOUCHPAD_ID=13 | |
[ -z "$(xinput list-props 13 | grep -e 'Device Enabled.*:.*0')" ] && VERB=disable | |
xinput $VERB $KEYBOARD_ID | |
xinput $VERB $TOUCHPAD_ID |
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
// capitalizes the first letter of every word in the given string | |
let properCase (s:string) = | |
// recursive helper function | |
let rec helper (s:string) (i:int) (capitalize:bool) (result:string) = | |
// if we're at the end of the string, return our result | |
if s.Length - 1 < i then | |
result | |
else | |
// recurse to the next character in the input string | |
(helper s (i + 1) (s.[i] = ' ') (result + |
OlderNewer