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
//----------------------------------------------------------------------------- | |
// EventTypes.js | |
//----------------------------------------------------------------------------- | |
// required event class definitions for MIDI events | |
//----------------------------------------------------------------------------- | |
// Event : base class for all events | |
//----------------------------------------------------------------------------- |
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
.2sf Nintendo DS Sound File | |
.2sflib Nintendo DS Audio Library File | |
.3ga 3GPP Audio File | |
.4mp 4-MP3 Database File | |
.5xb Line 6 POD HD500X Edit Bundle | |
.5xe Line 6 POD HD500X Edit Preset File | |
.5xs Line 6 POD HD500X Edit Setlist File | |
.669 UNIS Composer 669 Module | |
.6cm Six Channel Module | |
.8cm Eight Channel Module |
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
#!/bin/bash | |
#Beta 4 to Final Public Release (Must be run in Recovery Mode) | |
csrutil disable | |
#Beta 1-3 | |
sudo nvram boot-args="rootless=0";sudo reboot |
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
jekyll serve > /dev/null 2>&1 & |
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
chsh -s `which fish` |
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
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport |
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
// *** different ways a string can match using our pattern matching operator *** | |
enum StringMatchType { | |
case literal | |
case escapedRegularExpression | |
case regularExpression(withOptions: NSRegularExpression.Options) | |
} | |
/* *** example function that returns how the string matches against | |
a literal string and a regex pattern in default and case insensitive modes *** */ | |
func typeOfMatch(for string: String) -> StringMatchType? { |
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
/* *** implementation for using the RegexPattern struct that can specify both a | |
regex pattern and options in pattern matching *** */ | |
func ~=(lhs: RegexPattern, rhs: String) -> Bool { | |
return | |
try! NSRegularExpression( | |
pattern: lhs.pattern, | |
options: lhs.options | |
) | |
.numberOfMatches( | |
in: rhs, |
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
struct RegexPattern { | |
let pattern: String | |
let options: NSRegularExpression.Options | |
init(_ pattern: String, options: NSRegularExpression.Options) { | |
self.pattern = pattern | |
self.options = options | |
} | |
} |
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
#!/bin/bash | |
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/ iCloud |
NewerOlder