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
#!/usr/bin/env bash | |
### | |
# This script uses SteamCmd to force downloads of games for other platforms. | |
# First, install SteamCmd from https://developer.valvesoftware.com/wiki/SteamCMD | |
# Place this script next to steamcmd.sh and make it executable (chmod u+x download_steam_app.sh) | |
# Finally, set the config to refer to your username. If you are already signed in to steam you should not need to enter a password. | |
# | |
# Usage: | |
# ./download_steam_app.sh <steam_store_url> |
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
'use strict'; | |
import React, { Component } from 'react'; | |
import { findNodeHandle, StyleSheet, Text, View, NativeModules } from 'react-native'; | |
const UIManager = NativeModules.UIManager; | |
class AutoresizeText extends Component { | |
constructor(props) { | |
super(props); |
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
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
$ 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
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
/// <summary> | |
/// Handles parsing and execution of console commands, as well as collecting log output. | |
/// Copyright (c) 2014-2015 Eliot Lash | |
/// </summary> | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; |
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
/// <summary> | |
/// Wrapper/utility class for Vector3 that provides methods for manipulating Barycentric coordinates. | |
/// | |
/// Uses math from http://answers.unity3d.com/answers/613726/view.html | |
/// | |
/// Copyright (c) 2015 Eliot Lash | |
/// | |
/// Permission is hereby granted, free of charge, to any person obtaining a copy | |
/// of this software and associated documentation files (the "Software"), to deal | |
/// in the Software without restriction, including without limitation the rights |