Skip to content

Instantly share code, notes, and snippets.

View nine9ths's full-sized avatar

Nick Nunes nine9ths

  • Audible Magic
  • East Bay, CA
View GitHub Profile
@CvX
CvX / defaults.sh
Created July 24, 2013 11:27
OS X defaults
# System and apps settings
# Use AirDrop over every interface.
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
# Always open everything in Finder's list view.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
# Show the ~/Library folder.
chflags nohidden ~/Library
@mojavelinux
mojavelinux / gfm-vs-asciidoc.asciidoc
Created June 26, 2013 18:57
A comparison of GitHub-flavored Markdown syntax versus AsciiDoc syntax, based on examples in the GitHub-flavored Markdown reference. Note that this gist requires Asciidoctor >= 0.1.3 to render properly.
@xquery
xquery / gist:5594054
Last active January 22, 2020 00:12
illustration of mapreduce using xquery 3.0 word count example
xquery version "3.0";
declare function local:mapReduce(
$list as item()*,
$mapper as function(*),
$reducer as function(*)
)
{
let $intermediate := for $l at $pos in $list return $mapper("list" || $pos,$l)
return
@holmesw
holmesw / isbn-xray-tests.xqy
Last active December 13, 2015 21:29
XQuery library module containing functions to handle ISBNs I also added some unit tests using xray
xquery version "1.0-ml";
module namespace test = "http://github.com/robwhitby/xray/test";
import module namespace isbn = "http://www.example.org/xquery/functions/isbn" at "/test/modules/isbn.xqy";
import module namespace assert = "http://github.com/robwhitby/xray/assertions" at "/xray/src/assertions.xqy";
declare function isbn-format-isbn13-prepared() {
assert:equal(
text { isbn:format-isbn("9781234567897") },
@madc
madc / LICENSE
Last active March 18, 2025 02:18
Simple morse en- & decoding for Arduino (including LED Example)Build after the specs on http://en.wikipedia.org/wiki/Morse_code
Copyright (c) 2015 Matthias Esterl
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@priithaamer
priithaamer / gist:4017203
Created November 5, 2012 13:32
Goes to /System/Library/Input Methods/PressAndHold.app/Contents/Resources/Keyboard-et.plist
<key>Roman-Accent-q</key>
<dict>
<key>Direction</key>
<string>right</string>
<key>Keycaps</key>
<string>q ` ^ ⌥ ⇧ ⌘ ⎋ ⏏ ⌫ ↑ ⇡ ↖ ⇞ ⇥</string>
<key>Strings</key>
<string>q ` ^ ⌥ ⇧ ⌘ ⎋ ⏏ ⌫ ↑ ⇡ ↖ ⇞ ⇥</string>
</dict>
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active October 11, 2025 07:20
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"