Skip to content

Instantly share code, notes, and snippets.

View notacouch's full-sized avatar

Abed Islam notacouch

View GitHub Profile
@notacouch
notacouch / colombia-cities-simplified-8-2.json
Created September 26, 2018 14:07
Colombia cities geojson simplified 8%
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notacouch
notacouch / colombia-cities-simplified-8.json
Created September 25, 2018 21:42
Colombia cities geojson simplified 8%
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notacouch
notacouch / colombia-cities-simplified-33.json
Created September 25, 2018 21:11
Colombia cities geojson simplified 33%
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notacouch
notacouch / franceRegions_low.json
Last active July 20, 2018 23:15
France Regions simplified geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@notacouch
notacouch / init.coffee
Created March 9, 2016 23:32
Atom Tab Bar should scroll tab into view
`
var next_active_file_timer = 0;
atom.commands.onDidDispatch(function(event){
//console.log('event type: ', event.type);
clearTimeout(next_active_file_timer);
if (event.type === 'tree-view:reveal-active-file') {
next_active_file_timer = setTimeout(function(){
var $ = atom.document.querySelector;
var $pane = $.call(atom.document, '.panes');
var $bar = $.call(atom.document, '.panes .tab-bar');
@notacouch
notacouch / .nav-marker-rules
Created February 22, 2016 21:08
Coda bookmark matching for atom-nav-panel
#marker-rule: /\/[\/\*] ?\!(.*)/||%1||Comment Bookmarks
@notacouch
notacouch / jquery-live-preview-drupal-admin-links.js
Last active September 30, 2015 19:19
jQuery Live Preview Drupal Admin Links
@notacouch
notacouch / loadScript_jQuery-1.11.2.js
Created April 2, 2015 19:27
Load jQuery 1.11.2 asynchronously, e.g. for IE8 in Rendera
// @link http://blog.kevinchisholm.com/asynchronous-javascript/cross-browser-asynchronous-javascript-script-loading/
function loadScript(url,callback){
if(!url || !(typeof url === 'string')){return};
var script = document.createElement('script');
//if this is IE8 and below, handle onload differently
if(typeof document.attachEvent === "object"){
script.onreadystatechange = function(){
//once the script is loaded, run the callback
if (script.readyState === 'loaded'){
@notacouch
notacouch / PR swap smash
Created February 6, 2015 17:21
Swap NSLIJ news images with another for testing purposes
var whyioughta = window.prompt('Please insert image URL. Plz.', 'ache tt pee, or File, or ...');
jQuery('#feature_info + a img.img-responsive, #secondary_features img.img-responsive, body.node-type-article div.article-image figure img.img-responsive').attr('src', whyioughta);
// bookmarkletify here:
// @link http://mrcoles.com/bookmarklet/
@notacouch
notacouch / ee2.6.1-time-tests.md
Last active December 18, 2015 03:09
EE 2.6.1 Time tests

Server's timezone is in UTC or GMT w/o DST, +1 w/ DST. [server_timezone]

Organization is NYC-based, or EST, or GMT - 5 w/o DST, -4 w/ DST. [default_site_timezone]

DST is currently on.

The database structure of column field_dt_# is of type varchar(8).

Conclusion: