Skip to content

Instantly share code, notes, and snippets.

View duncanfinney's full-sized avatar

Duncan Finney duncanfinney

View GitHub Profile
@duncanfinney
duncanfinney / _howto.md
Created November 30, 2023 11:12 — forked from aaronpk/_howto.md
How to compile and install spatialite on iOS

Spatialite for iOS

Install compiler dependencies

brew install automake autoconf libtool libxml2 pkg-config
brew link libxml2

Build libspatialite

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@duncanfinney
duncanfinney / JavaScript Interview Questions
Last active September 18, 2016 17:39
Couple questions from around the internet. Javascript and SQL
## JavaScript
1. Write a mul function which will produce the following outputs when invoked:
```
console.log(mul(2)(3)(4)); // output : 24 console.log(mul(4)(3)(4)); // output : 48
```
2. Can you name two programming paradigms important to for JavaScript app developers?
3. What is the difference between classical inheritance and prototypal inheritance?
@duncanfinney
duncanfinney / gist:661f010a5d926f105005
Last active August 29, 2015 14:24
AMQP Node.js Example
var amqp = require('amqp');
var connection = amqp.createConnection({
host: '192.168.64.10',
port: 5672
});
// Wait for connection to become established.
connection.on('ready', function () {
console.log('ready');
@duncanfinney
duncanfinney / gist:13e09a004738ca9e669b
Created March 4, 2015 16:38
Waffle.IO Greasemonkey Helper
// ==UserScript==
// @name Waffle.io Helper
// @namespace http://github.com/duncanfinney
// @version 0.1
// @description Adds column filtering and conditional styling capabilities to waffle
// @author duncanfinney
// @match https://waffle.io/leveleleven/field-guide
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.3.1/lodash.min.js
// @grant MIT
@duncanfinney
duncanfinney / gist:857f214a51b55762cc97
Last active August 29, 2015 14:16
Multiple Async Actions
var Reflux = require('reflux');
var React = require('react');
var Actions = require('stats-actions');
var API = require('kazu');
var StatsActions = Reflux.createActions({
getStats1: { },
getStats1Completed: {},
getStats1Failed: {},
@duncanfinney
duncanfinney / gist:2e631954d7bb1f905be7
Last active August 29, 2015 14:14
Redirect github commits and pull requests to the ignore-whitespace diff veiw
// ==UserScript==
// @name Github no whitespace
// @version 0.1
// @description Redirects commit and pull requests to the no whitespace diff
// @author You
// @match *github.com/*/commit/*
// @match *github.com/*/pull/*
// @grant none
// ==/UserScript==