Skip to content

Instantly share code, notes, and snippets.

View ollieRogers's full-sized avatar
🐙

Ollie ollieRogers

🐙
View GitHub Profile
@ollieRogers
ollieRogers / country-bounding-boxes.py
Created February 2, 2023 16:19 — forked from graydon/country-bounding-boxes.py
country bounding boxes
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),
@ollieRogers
ollieRogers / Convert .mov or .MP4 to .gif.md
Created July 14, 2022 13:40 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@ollieRogers
ollieRogers / gist:a213fe339eeaf5ccec3c4f1823254119
Created July 25, 2018 15:34 — forked from weblancaster/gist:6e7f43fc02725ce747e224b0c4290906
Kill all container, remove all images and stop all containers
#stop all containers:
docker kill $(docker ps -q)
#remove all containers
docker rm $(docker ps -a -q)
#remove all docker images
docker rmi $(docker images -q)
@ollieRogers
ollieRogers / xoxo.js
Created November 18, 2016 13:51
copy paste into your console
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+
var gulp = require('gulp');
var lessSourceMap = require('gulp-less-sourcemap');
var less = require('gulp-less');
var autoprefixer = require('gulp-autoprefixer');
var stripdebug = require('gulp-strip-debug');
var uglify = require('gulp-uglify');
var debug = require('gulp-debug');
var rename = require('gulp-rename');
var replace = require('gulp-replace');
var concat = require('gulp-concat');
@ollieRogers
ollieRogers / scroll-anchor.js
Created March 3, 2016 09:44
simple animated scroll anchor
/**
* Just add data-scroll-target="idOfTargetElem" to the element
* you want to anchor. Doesnt need to be a link
*/
$('[data-scroll-target]').click(function(event){
event.preventDefault();
var anchor = $(this).data('scroll-target'),
targetScrollDist = $(anchor).offset().top;
/**
* A simple jQuery Plugin Bolierplate
*/
;(function($) {
$.plauginNane = function(element, options) {
var defaults = {
key: 'value', // default target to scroll to
// Usage : less2stylusDir('../src/css/');
var fs = require('fs');
// this less 2 stylus conversion script make a stylus easy to read syntax
// - let the braces
// - replace the @ for var as $
// - let semicolons
function less2stylus(less)
@ollieRogers
ollieRogers / gist:9931795
Created April 2, 2014 10:45
add a dock space on mac (terminal)
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock
@ollieRogers
ollieRogers / rte.css
Last active December 14, 2015 14:19
Typoscript Config for custom classes in HTML area plugin. This need to be added to the sites root page "Page TSConfig" textarea under 'resources'
/*these rules will only be enforced in the rte*/
/*the RTE is very fussy about the css syntax so make sure you assign the class to a Dom element*/
span.intro, p.intro {
font-size: 2.4em;
line-height: 30px;
color: #999999;
}