- 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
| <snippet> | |
| <content><![CDATA[ | |
| /** | |
| * ${1:Get the Var} | |
| * | |
| * @return ${2:string} | |
| */ | |
| public function get${3:Var}() | |
| { | |
| return \$this->${4:var}; |
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 has to be run as a root user | |
| echo "* Updating system" | |
| apt-get update | |
| apt-get -y upgrade | |
| echo "* Installing packages" | |
| apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
| id -u deploy &> /dev/null | |
| if [ $? -ne 0 ] |
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
| <?php | |
| /** | |
| * This class is used in Orbisius Price Changer for WooCommerce | |
| * This premium WooCommerce extension allows you to change product prices (up/down) for all products or for a selected category and its subcategories. | |
| * You can review them before actually making the changes. | |
| * | |
| * @see http://club.orbisius.com/products/wordpress-plugins/woocommerce-extensions/orbisius-woocommerce-ext-price-changer/ | |
| * @author jaywilliams | myd3.com | https://gist.github.com/jaywilliams | |
| * @author Svetoslav Marinov (SLAVI) | http://orbisius.com |
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 bash | |
| # --------------------------------------- | |
| # Virtual Machine Setup | |
| # --------------------------------------- | |
| # Adding multiverse sources. | |
| cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
| deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
| deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |
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
| <?php | |
| namespace My\Namespace; | |
| /** | |
| * This Listener listens to the loadClassMetadata event. Upon this event | |
| * it hooks into Doctrine to update discriminator maps. Adding entries | |
| * to the discriminator map at parent level is just not nice. We turn this | |
| * around with this mechanism. In the subclass you will be able to give an | |
| * entry for the discriminator map. In this listener we will retrieve the | |
| * load metadata event to update the parent with a good discriminator map, |
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
| ## | |
| # Shell provisioner for LAMP | |
| # Tested on Ubuntu 12.04 | |
| ## | |
| # Detect environment | |
| source /etc/os-release | |
| # Set non-interactive mode | |
| export DEBIAN_FRONTEND=noninteractive |
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
| #pragma mark - Facebook App Invite Delegate | |
| - (void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results | |
| { | |
| NSLog(@"app invite result: %@", results); | |
| BOOL complete = [[results valueForKeyPath:@"didComplete"] boolValue]; | |
| NSString *completionGesture = [results valueForKeyPath:@"completionGesture"]; | |
| // NOTE: the `cancel` result dictionary will be |
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
| -- AppleScript to create a new file in Finder | |
| -- | |
| -- Use it in Automator, with the following configuration: | |
| -- - Service receives: no input | |
| -- - In: Finder.app | |
| -- | |
| -- References: | |
| -- - http://apple.stackexchange.com/a/129702 | |
| -- - http://stackoverflow.com/a/6125252/2530295 | |
| -- - http://www.russellbeattie.com/blog/fun-with-the-os-x-finder-and-applescript |