I'm broadcasting my iPad game playing on Twitch.tv and Ustream.tv.
- Playing Game: iPad 3 w/ iOS 7.1.2
- Broadcasting to Twitch: MacBook Air Mid 2011 w/ OS X 10.9
| /// @creator: Slipp Douglas Thompson | |
| /// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
| /// @purpose: Forwards keyed events to a KeyedEventActions component elsewhere. | |
| /// @why: Because this functionality should be built-into Unity. | |
| /// @usage: Needs to be put on the same GameObject as the Mecanim Animator component or “legacy” Animation component. | |
| /// Animation events should be configured in the Unity Editor's Animation timeline view or model import settings › Animations tab › Events disclosure (or via the scripting API, I suppose) to call “Function: Action, Parameter String: «your-decided-key-string-for-this-action»”. | |
| /// @intended project path: Assets/Utils/EventAction/KeyedEventActionForwarder.cs | |
| /// @interwebsouce: https://gist.github.com/capnslipp/50db1dc724514bb3db91 | |
| using System; |
| osascript -e 'tell application "iOS Simulator" to quit' | |
| osascript -e 'tell application "Simulator" to quit' | |
| xcrun simctl erase all |
| /** | |
| * VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
| * | |
| * To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
| * It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
| * the height of element `.foo` —which is a full width and height cover image. | |
| * | |
| * iOS Resolution Quick Reference: http://www.iosres.com/ | |
| */ | |
I'm broadcasting my iPad game playing on Twitch.tv and Ustream.tv.
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| // clang -fobjc-arc -framework Foundation runtime-class.m | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| @interface Person : NSObject | |
| - (id)initWithFirstName: (NSString *)firstName lastName: (NSString *)lastName age: (NSUInteger)age; |
A Dashing widget for displaying the number of visitors to your website over a specified timeframe, as reported by Google Analytics
| Shader "Diffuse Lightmap" { | |
| Properties { | |
| _MainTex ("Texture 1", 2D) = "white" {} | |
| } | |
| SubShader { | |
| Tags { "RenderType" = "Opaque" } | |
| Pass { |
| sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000