Skip to content

Instantly share code, notes, and snippets.

Working from home

James Kinsman relipse

Working from home
View GitHub Profile
View jquery.LCRscrollingText.js
* LCRscrollingText jquery plugin
* @description Left Center Right, with center vertical scrolling text using a ul
* @author Jim Kinsman | Paul Kulp | InterVarsity Christian Fellowship (
* @version 1.1.0
* @example
* With html already defined:
* $('#scrolling_text_container').LCRscrollingText();
View colorpicker.js
* Color picker
* Author: Stefan Petre
* Dual licensed under the MIT and GPL licenses
(function ($) {
var ColorPicker = function () {
View throwwindows.ahk
; ThrowWindows by Matthäus Drobiec (foom)
; Based on EasyGlide by Paul Pliska (ManaUser) Enhancements by Laszlo
; Based on Easy Window Dragging by Chris?
; AutoHotkey Version: 1.0.46+
; Platform: XP/2k/NT
; Author: Matthäus Drobiec (foom)
; Version: 0.1
View .screenrc
# my commented .screenrc
### screen as an answering machine!
# no annoying audible bell, please
vbell on
vbell_msg "Hey - something's ringing on %t (%n)"
activity "Hey - something's moving in %t(%n)"
View trim_all_tables_columns_fields
* This file will iterate through all your tables and TRIM each field.
* (That means NO trailing or leading spaces)
* Ideally it would be used if there were thousands of rows and columns
* trailing or leading spaces that need to get rid of.
* Oh, and always backup your entire database first.
$link = mysqli_connect(...);
relipse / postbitbucketissuetracker
Created Feb 14, 2014
View postbitbucketissuetracker
curl -r PUT --user <username>:<password> -F "title=This is a test" -F "content=This is also a test."<repository owner's username>/<repository name>/issues
relipse / irccloud_quickswitcher.js
Last active Jan 3, 2016
Easier irccloud channel switching
View irccloud_quickswitcher.js
* The purpose of this script is to allow quick traversing between channels using the keyboard
* For Example, after injecting this script, go to any channel text box and type:
* //<server>#<channel> <optional-text>
* or as below:
* //freenode#javascript hey i have a js question
* It will auto-switch to freenode's #javascript channel and enter that in the text box
* Copyright (C) relipse
* License: Use it however, just don't sell it or say it was you who coded it (Rev 21:8)
relipse / upsert.php
Last active Dec 28, 2015
Upsert generator, (pdo style)
View upsert.php
//This snippet is released to the public domain of course
* Upsert one column value
function upsert($pkcolname, $pk, $table, $column, $val) {
$sql_upsert_templ = 'INSERT INTO `{TABLE}` (`{PKCOLUMN}`, `{COLUMN}`) VALUES (:pk, :value)
relipse / undo
Created Oct 18, 2013
The goal of this script [right now] is to tell you how to "undo" a command. for example undo cd path/to/somewhere would result in "cd -" which will go back to the previous directory, and for example if you do mv path/to/a path/to/b this would produce "mv path/to/b path/to/a"
View undo
if (!isset($argv[1])){
die('Usage: undo <command-to-try-and-undo>'."\n");
$OLDPWD = `echo "\$OLDPWD"`;
$allargs = $argv;
View qtkeysequenceedit.cpp
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact:
** This file is part of the Qt Solutions component.
** You may use this file under the terms of the BSD license as follows: