This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
on run argv | |
set theFilePath to POSIX file (item 1 of argv) | |
set theFolder to theFilePath as alias | |
tell application "System Events" to set theDocs to theFolder's items whose name extension = "numbers" | |
repeat with aDoc in theDocs | |
set docName to aDoc's name as text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.Endpoints = { | |
APPLICATIONS: '/applications', | |
APPLICATION_ICON: (n, t) => `/applications/${n}/icons/${t}.jpg`, | |
APPLICATION_RPC: (n) => `/oauth2/applications/${n}/rpc`, | |
AUTHORIZE_IP: '/auth/authorize-ip', | |
AVATAR: (n, t, e = t.startsWith('a_') ? 'gif' : 'webp') => `/users/${n}/avatars/${t}.${e}`, | |
BILLING: '/users/@me/billing', | |
BILLING_HISTORY: '/users/@me/billing/payments', | |
BILLING_PAYMENT_SOURCE: '/users/@me/billing/payment-source', | |
BILLING_PREMIUM_SUBSCRIPTION: '/users/@me/billing/premium-subscription', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acknowledgement acknowledgment | |
aeroplane airplane | |
aesthetic esthetic | |
ageing aging | |
aluminium aluminum | |
amoeba ameba | |
anaemia anemia | |
anaesthesia anesthesia | |
analyse analyze | |
analogue analog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Javascript version of https://gist.github.com/jbroadway/2836900 | |
* | |
* Slimdown - A very basic regex-based Markdown parser. Supports the | |
* following elements (and can be extended via Slimdown::add_rule()): | |
* | |
* - Headers | |
* - Links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require(process.cwd() + '/app'); | |
var winston = require('winston'); | |
var _ = require('lodash'); | |
// Set up logger | |
var customColors = { | |
trace: 'white', | |
debug: 'green', | |
info: 'green', | |
warn: 'yellow', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/* | |
* This handles Wii U Pro Controllers and Wiimotes, but doesn't yet detect which it is =) | |
* `npm install node-hid pakkit` | |
*/ | |
var HID = require('node-hid'); | |
var pakkit = require('pakkit'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Banner-style (default) | |
from Foundation import NSUserNotification, NSUserNotificationCenter | |
def notify(title, subtitle, text): | |
notification = NSUserNotification.alloc().init() | |
notification.setTitle_(str(title)) | |
notification.setSubtitle_(str(subtitle)) | |
notification.setInformativeText_(str(text)) | |
notification.setSoundName_("NSUserNotificationDefaultSoundName") | |
NSUserNotificationCenter.defaultUserNotificationCenter().scheduleNotification_(notification) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// C# example program to demonstrate OpenTK | |
// | |
// Steps: | |
// 1. Create an empty C# console application project in Visual Studio | |
// 2. Place OpenTK.dll in the directory of the C# source file | |
// 3. Add System.Drawing and OpenTK as References to the project | |
// 4. Paste this source code into the C# source file | |
// 5. Run. You should see a colored triangle. Press ESC to quit. | |
// | |
// Copyright (c) 2013 Ashwin Nanjappa |