Skip to content

Instantly share code, notes, and snippets.

View scottgonzalez's full-sized avatar

Scott González scottgonzalez

View GitHub Profile
@scottgonzalez
scottgonzalez / tips-for-jquery-bug-patching.txt
Created July 16, 2013 19:06
MediaWiki source for Tips for jQuery Bug Patching
=== Environment: localhost w/ PHP, Node & Grunt ===
Starting in jQuery 1.8, a newly overhauled development workflow has been introduced. In this new system, we rely on node & gruntjs to automate the building and validation of source code—while you write code.
The Ajax tests still depend on PHP running locally*, so make sure you have the following installed:
* Some kind of localhost server program that supports PHP (any will do)
* Node.js
* NPM (comes with the latest version of Node.js)
* Grunt (install with: `npm install grunt -g`
@scottgonzalez
scottgonzalez / local-dev.conf
Created December 5, 2013 14:23
Apache virtual host for local testing.
<VirtualHost *>
ServerName local-dev
ServerAlias local-dev.*
VirtualDocumentRoot /Users/scottgonzalez/Projects/%2+
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
(SELECT DISTINCT `reporter` AS `contributor`
FROM `ticket`
WHERE `resolution` = "fixed"
AND `milestone` = $V )
UNION
(SELECT DISTINCT `author`
FROM `ticket_change`
WHERE `ticket` IN (
SELECT `id`
FROM `ticket`
$( "#dialog" ).dialog({
buttons: [
{
text: "a",
"class": "primary",
click: function() {
alert( "a" );
},
},
{
@scottgonzalez
scottgonzalez / pr-merge.md
Last active January 3, 2016 09:49
Landing PRs

Update master

First, make sure master is up to date.

git checkout master
git pull upstream master

Rebase your branch

$.ui.intersect = (function( original ) {
return function( draggable, droppable, toleranceMode ) {
if ( toleranceMode !== "myCustomTolerance" ) {
return original.apply( this, arguments );
}
// custom logic here
};
})( $.ui.intersect );
var spawn = require( "child_process" ).spawn;
var path = "/Users/scottgonzalez/Projects/jquery-release";
var committish = "master";
function getLog( callback ) {
var stdout = "";
var stderr = "";
var child = spawn( "git", [ "log", "--format=%s", committish ], { cwd: path } );
var hadError = false;
/*
* Web Forms 0.4.0 - jQuery plugin
*
* Copyright (c) 2007 - 2008 Scott Gonzalez
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
  • Go to RGB Color Now
    • Already implemented; just basic RGB functionality
  • Fade to RGB Color
    • Can be implemented; needs fading logic
  • Fade to HSB Color
    • Can be implemented; needs fading logic and HSB translation
  • Fade to Random RGB Color
    • Can be implemented; needs fading logic
  • Fade to Random HSB Color
  • Can be implemented; needs fading logic
t2-cli (master *) $ npm ls
[email protected] /Users/scottgonzalez/Projects/t2-cli
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]