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
| '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 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
| # 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 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
| 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 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
| $ git quote-string | |
| foo "bar" | |
| "!foo \"bar\" | |
| #" |
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
| actions=false | |
| ads=true | |
| analytics=false | |
| appindexing=false | |
| appstate=true | |
| auth=true | |
| cast=false | |
| common=true | |
| drive=true | |
| dynamic=false |
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
| /// <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 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
| namespace ExampleNamespace | |
| { | |
| public class #SCRIPTNAME# | |
| { | |
| } | |
| } |
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
| /// <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 |
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 "Custom/Standard (No fog)" | |
| { | |
| Properties | |
| { | |
| _Color("Color", Color) = (1,1,1,1) | |
| _MainTex("Albedo", 2D) = "white" {} | |
| _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
| _Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |
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
| // Hover.com "Zone file import/export" has been *Planned* since 2011 | |
| // https://help.hover.com/entries/471066-Zone-file-import-export | |
| // Here's a brittle approximation of export. | |
| // | |
| // 1. login to your account: https://www.hover.com/domains | |
| // 2. run the following in your browser's JavaScript console, changing the first line | |
| // to your domain | |
| // 3. copy the text logged to the console. | |
| // 4. manually correct FQDNs, these have to end with a period "." | |
| // |