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 Todo; | |
// Data Access Object | |
abstract class DAO{ | |
protected array $row = []; | |
public const KEYS = []; | |
protected static string $table = ''; | |
public static function SetTable(string $table){ |
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
/** | |
* LCRscrollingText jquery plugin | |
* @description Left Center Right, with center vertical scrolling text using a ul | |
* @author Jim Kinsman | Paul Kulp | InterVarsity Christian Fellowship (intervarsity.org) | |
* @version 1.1.0 | |
* @example | |
* JAVASCRIPT: | |
* With html already defined: | |
* | |
* $('#scrolling_text_container').LCRscrollingText(); |
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
/** | |
* | |
* Color picker | |
* Author: Stefan Petre www.eyecon.ro | |
* | |
* Dual licensed under the MIT and GPL licenses | |
* | |
*/ | |
(function ($) { | |
var ColorPicker = function () { |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; 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 | |
; |
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
# | |
# 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)" |
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 | |
/** | |
* 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(...); |
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
curl -r PUT --user <username>:<password> -F "title=This is a test" -F "content=This is also a test." https://bitbucket.org/api/1.0/repositories/<repository owner's username>/<repository name>/issues |
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
/** | |
* 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) | |
*/ |
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 | |
//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) | |
ON DUPLICATE KEY UPDATE `{COLUMN}` = :value_dup'; |
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/php | |
<?php | |
if (!isset($argv[1])){ | |
die('Usage: undo <command-to-try-and-undo>'."\n"); | |
} | |
$OLDPWD = `echo "\$OLDPWD"`; | |
$allargs = $argv; | |
array_shift($allargs); |