I'm trying to figure out how to use rebar to:
- create erlang project
- add a dependency on an erlang module from github
- start the app via the erl console
- create a release and start the app from the release (via the generated scripts)
| #!/bin/sh | |
| set -e | |
| curl -LO http://www.erlang.org/download/otp_src_R16B03-1.tar.gz | |
| tar xf otp*.tar.gz | |
| # chmod +x to this sh | |
| # ./install-erlangR16-halfword-systemtap | |
| // temp fix for iOS8 beta 1 (fixed in beta 2), add it after the reference to cordova.js | |
| if (navigator.userAgent === undefined) { | |
| navigator.__defineGetter__('userAgent', function() { | |
| return("Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit"); | |
| }); | |
| } |
| import UIKit | |
| protocol YelpRequestDelegate { | |
| func getYelpData() -> AnyObject | |
| func processYelpData(data: NSData) -> NSData | |
| } | |
| class YelpAPI { | |
| var delegate: YelpRequestDelegate? | |
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| Shader "Custom/warp_shadertoy" { | |
| Properties{ | |
| /* | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic ("Metallic", Range(0,1)) = 0.0 | |
| */ | |
| } | |
| SubShader{ |