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
| 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| using UnityEngine; | |
| using System.Collections; | |
| public class OrderTester : MonoBehaviour { | |
| void Update() { Debug.Log("Update()"); } | |
| void LateUpdate() { Debug.Log("LateUpdate()"); } | |
| void FixedUpdate() { Debug.Log("FixedUpdate()"); } | |
| void Awake() { Debug.Log("Awake()"); } | |
| void Start() { Debug.Log("Start()"); } | |
| void Reset() { Debug.Log("Reset()"); } |