A Dashing widget for displaying the number of visitors to your website over a specified timeframe, as reported by Google Analytics
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
| sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
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
| Shader "Diffuse Lightmap" { | |
| Properties { | |
| _MainTex ("Texture 1", 2D) = "white" {} | |
| } | |
| SubShader { | |
| Tags { "RenderType" = "Opaque" } | |
| Pass { |
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
| // 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; |
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);
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
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
| /** | |
| * 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/ | |
| */ | |
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
| osascript -e 'tell application "iOS Simulator" to quit' | |
| osascript -e 'tell application "Simulator" to quit' | |
| xcrun simctl erase all |
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
| /// @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; |
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
| // It's tested on ios 8.2 .. | |
| // Apple document about virtual memory: | |
| // Both OS X and iOS include a fully-integrated virtual memory system that you cannot turn off; it is always on. | |
| // https://developer.apple.com/library/mac/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html | |
| // Discussing mmap on ios: | |
| // http://stackoverflow.com/questions/13425558/why-does-mmap-fail-on-ios | |
| // http://stackoverflow.com/questions/9184773/is-there-a-practical-limit-on-the-number-of-memory-mapped-files-in-ios | |
| #include <sys/mman.h> |
