Skip to content

Instantly share code, notes, and snippets.

View montechie's full-sized avatar

Wes Hunt montechie

View GitHub Profile
@montechie
montechie / list.md
Created January 7, 2025 16:11 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@montechie
montechie / loadScripts.js
Last active December 17, 2015 14:59
Loading multiple scripts into a page based on an event.
// Queue up scripts
var jqXHRs = [],
scripts = ['script1.js',
'script2.js'];
//Setup the requests
for( var i = 0, len = scripts.length; i < len; i++ ){
jqXHRs.push(
$.getScript(scripts[i]).fail( function(jqXHRs, settings, exception){
console.log( scripts[i] + " failed to load: " + exception );
@montechie
montechie / gist:5250743
Last active December 15, 2015 11:09
Retina media query that works
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi)
{
/* Retina-specific stuff here */
}
@montechie
montechie / SQLColumnNameSearch.sql
Created January 18, 2012 16:47
Search for column names in a schema
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('column_name','column_name_b')
AND TABLE_SCHEMA='database_name';