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
<?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
# | |
# 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; 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
/** | |
* | |
* 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
/** | |
* Open confirmation dialog (jqueryui modal) | |
* | |
* @requires jquery, jqueryui | |
* @param {string} c_text text/html to show in the dialog box | |
* @param {string|function(dlg_element)} c_title|confirm_callback title of the dialog box (or callback function) | |
* @param {string|function(dlg_element)} c_btn_text|confirm_callback confirm button text (or callback function) | |
* @param {string|function(dlg_element)} c_btn_cancel_text|confirm_callback cancel button text (defaults to 'Cancel') (or callback function) | |
* @param {function(dlg_element)} confirm_callback callback after the modal box is confirmed | |
*/ |
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
/**************************************************************************** | |
** | |
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
** Contact: http://www.qt-project.org/legal | |
** | |
** This file is part of the Qt Solutions component. | |
** | |
** $QT_BEGIN_LICENSE:BSD$ | |
** You may use this file under the terms of the BSD license as follows: | |
** |
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); |
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
/** | |
* 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) | |
*/ |
OlderNewer