I hereby claim:
- I am iainbryson on github.
- I am iainbryson (https://keybase.io/iainbryson) on keybase.
- I have a public key ASCnAaRxgWjS_tt84PNSoO9_2kkg-GgeQzxjx-V4FzkDOQo
To claim this, I am signing this object:
| // Tools like rails' inflector | |
| const camelizeFromArray = arr => | |
| arr.map((w, idx) => w.replace(/./, m => (idx === 0 ? m.toLowerCase() : m.toUpperCase()))).join(''); | |
| const constizeFromArray = arr => arr.map((w, idx) => w.replace(/./, m => m.toUpperCase())).join(''); | |
| const arrayFromKebab = (text, separator = '-') => text.split(separator); | |
| const camelizeFromKebab = (text, separator = '-') => camelizeFromArray(text.split(separator)); |
I hereby claim:
To claim this, I am signing this object:
| require 'csv' | |
| require 'optparse' | |
| require 'net/http' | |
| require 'uri' | |
| require 'countries/global' | |
| require 'awesome_print' | |
| # | |
| # Airport ID Unique OpenFlights identifier for this airport. | |
| # Name Name of airport. May or may not contain the City name. |
| // compute the geographical center of a series of points/ | |
| // (1) transform all points to (unit) XYZ coordinates | |
| // (2) average them | |
| // (3) compute the unit vector of the average | |
| // (4) transform the unit vector back to latitude/longitude | |
| function geographicalCenter(points) { | |
| "use strict"; | |
| if (points.length == 1) return points[0]; | |
| #!/usr/local/bin/python | |
| import datetime | |
| import time | |
| import getopt | |
| import os | |
| import sys | |
| import re | |
| import dateutil.parser | |
| from PIL import Image | |
| from PIL.ExifTags import TAGS |
| #!/usr/bin/env python | |
| # (c) 2012 Brett Kelly. | |
| # Licensed under the MIT license | |
| # http://www.opensource.org/licenses/mit-license.php | |
| import re | |
| import sys | |
| try: | |
| from urllib2 import urlopen, Request, HTTPError |
| #requires -Version 3 | |
| param( | |
| [string]$url = "www.example.com", | |
| [string]$subject, | |
| [string]$fromMail = "sending_account@example.com" | |
| [string[]]$toMail = ("receiving_account@example.com") | |
| [switch]$dontSend = $false | |
| ) |