- Introduction to Functional Programming Johannes Weiß - https://vimeo.com/100786088
- ReactiveCocoa at MobiDevDay Andrew Sardone - https://vimeo.com/65637501
- The Future Of ReactiveCocoa Justin Spahr-Summers - https://www.youtube.com/watch?v=ICNjRS2X8WM
- Enemy of the State Justin Spahr-Summers - https://www.youtube.com/watch?v=7AqXBuJOJkY
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - https://developer.apple.com/videos/play/wwdc2014/229/
- Functioning as a Functionalist Andy Matuschak - https://www.youtube.com/watch?v=rJosPrqBqrA
- Controlling Complexity in Swift Andy Matuschak - https://realm.io/news/andy-matuschak-controlling-complexity/
This file contains hidden or 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
In XCode always finding it hassle to continuouly enter @synthesize for @properties already entered. | |
I Came Up with a RegEx to help me. | |
I copy the properties from the .h page and paste them in the .m | |
IE: | |
#pragma mark TAGS2 INFO HELP | |
@property (nonatomic) NSString* tags2Help; | |
@property (nonatomic) IBOutlet NSTextField* tags2HelpTF; |
This file contains hidden or 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
// This will allow unordered search terms to match relevant string | |
// e.g. Really Long String will be matched by | |
// - long string | |
// - long really | |
// - all ring | |
// ..etc | |
// I have used this anonymous function to override the matcher function in select2 | |
function(term, text) { |
This file contains hidden or 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/env ruby | |
require 'uri' | |
require 'json' | |
require 'net/https' | |
require 'time' | |
require 'cgi' | |
require 'csv' | |
# You need a Spotify API app to have a client ID and client secret. Create | |
# one at https://developer.spotify.com/my-applications/#!/applications/create |
This file contains hidden or 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
-- This script uses a dummy mp3 file (not supplied) to add a wishlist item to a specified playlist in your library. | |
-- Useful for when the track isn't available from the iTMS (and hence you can't drag this in as a wishlist item) and you want to remember to acquire it later from 'other sources'. You can use the dummy track in a playlist to act as a placeholder until you obtain it. I.e. to layout a running order, etc. | |
-- | |
-- HOW TO USE | |
-- | |
-- Use Quicktime to create a dummy mp3 file. Open a new player and just save as to create a mp3. | |
--Place the dummy file somewhere suitable, amend the path below | |
--Amend the wishlist playlist name if so desired | |
--This script (last time I checked) worked better when complied as an application, otherwise some Apple Event time out errors occur with the dialogs sometimes | |
--The script will prompt for a name, artist and album when run. |
This file contains hidden or 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
-- Author: Ryan Jennings <[email protected]> | |
-- Date: Aug 2, 2019 | |
-- Description: | |
-- Finds duplicate songs in a selection in itunes | |
-- Ranked meta data is: | |
-- 1. song name | |
-- 2. artist | |
-- 3. bitrate (ex 320 over 256) | |
-- 4. duration (ex keep 12:00 as too different from 4:40, but discard 3:50) |
This file contains hidden or 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
// 言語をjavascriptへ切り替えてご使用下さい | |
var app = Application.currentApplication() | |
app.includeStandardAdditions = true | |
// プレイリストのフォルダ情報を返す | |
function getParentPlaylist(playlist){ | |
try{ | |
return getParentPlaylist(playlist.parent()) + playlist.parent().name() + "/" | |
}catch(e){ |
This file contains hidden or 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
(*This is the AppleScript component to the iTunes -> Spotify playlist sync program | |
Written by Sophie Li: 12/29/16*) | |
try | |
tell application "Finder" | |
delete (every item of folder (((path to home folder) as text) & "Scripts:playlist_sync:playlists") whose name ends with ".xml") | |
end tell | |
on error errMsg number errNum | |
display dialog "Error " & errNum & return & return & errMsg buttons {"Cancel"} default button 1 | |
end try |
This file contains hidden or 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
script AppDelegate | |
property parent: class "NSObject" | |
-- Syntax sugar | |
property myApp: current application | |
property None: missing value -- Be careful not to bind this as a IBOutlet! | |
-- Classes | |
property NSData: myApp's class "NSData" | |
property NSString: myApp's class "NSString" |