This file contains 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
[15:40] <mvl> i'm still curious, do you see a minus one here 1 | |
[15:41] <eliot> no I don't | |
[15:41] <eliot> looks like a 1 | |
[15:41] <eliot> do you see a minus one here? -1 | |
[15:41] <mvl> hmm somethings stripping out the dash then | |
[15:41] <eliot> what irc client are you using? | |
[15:41] <mvl> cause i typed -1 | |
[15:41] <mvl> minus one | |
[15:41] <mvl> "-1" | |
[15:41] <eliot> now I see it |
This file contains 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
//Implemented based on the pseudo-code in http://stackoverflow.com/a/9981965/350761 | |
int randomIndex = arc4random() % [set count]; | |
__block int currentIndex = 0; | |
__block id selectedObj = nil; | |
[set enumerateObjectsUsingBlock:^(id obj, BOOL *stop) { | |
if (randomIndex == currentIndex) { selectedObj = obj; *stop = YES; } | |
else currentIndex++; | |
}]; | |
return selectedObj; |
This file contains 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
actions=false | |
ads=true | |
analytics=false | |
appindexing=false | |
appstate=true | |
auth=true | |
cast=false | |
common=true | |
drive=true | |
dynamic=false |
This file contains 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 "eliotlash/Particles/Additive B&W" { | |
Properties { | |
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5) | |
_MainTex ("Particle Texture", 2D) = "white" {} | |
_InvFade ("Soft Particles Factor", Range(0.01,3.0)) = 1.0 | |
_BWEffectOn ("B&W Effect On", Range(0, 1)) = 0 | |
} | |
Category { | |
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } |
This file contains 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
$ git quote-string | |
foo "bar" | |
"!foo \"bar\" | |
#" |
This file contains 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
export JAVA_HOME=`/usr/libexec/java_home` | |
export ANDROID_HOME="$HOME/Dev/android/android-sdk-macosx" #Set this path to your android sdk | |
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:${ANDROID_HOME}/build-tools/$(ls ${ANDROID_HOME}/build-tools | sort -r | head -n 1)" | |
alias unilogcat='adb logcat|egrep "Unity|Kiwi|GamesUnitySDK|GamesNativeSDK|Supersonic|KONG|E API"' |
This file contains 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
# WARNING! The following is not as safe as I originally thought and I'm not sure yet the right way to do this. | |
# See https://unix.stackexchange.com/questions/383541/how-to-save-restore-all-shell-options-including-errexit | |
enable_safety() { | |
BITRISE_CLI_PREVIOUS_SHELL_OPTIONS=$(set +o) | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
} |
This file contains 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
namespace ExampleNamespace | |
{ | |
public class #SCRIPTNAME# | |
{ | |
} | |
} |
This file contains 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
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Simple service manager. Allows global access to a single instance of any class. | |
/// Copyright (c) 2014-2017 Eliot Lash | |
/// </summary> | |
public class Services | |
{ | |
//Statics |
This file contains 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
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466 | |
import { AsyncStorage } from "react-native" | |
const STORAGE_KEY = 'MockRealm'; | |
export default class Realm { | |
constructor(params) { | |
this.schema = {}; | |
this.callbackList = []; |