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
| using UnityEngine; | |
| public class Marquee : MonoBehaviour | |
| { | |
| public string message = "Where we're going, we don't need roads."; | |
| public float scrollSpeed = 50; | |
| Rect messageRect; | |
| // Select your font in the Unity Inspector |
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
| { | |
| "status": "success", | |
| "search_nag": {}, | |
| "code": 0, | |
| "bookmark": "b28xMDB8MDQ0NWZiOTBjNzNiODlkOTQ1ZTk3ZjY0ZTBhYjU0YjM0ZDYyNDg3NjU3ZWQ3OGJmZjI4ZTliZGRmODBlMzJlNQ==", | |
| "debug_data": { | |
| "query_data": {} | |
| }, | |
| "message": "ok", | |
| "data": [ |
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
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEngine.UI; | |
| public class ColorFader : MonoBehaviour | |
| { | |
| public float delay = 2; | |
| void Start () { | |
| StartCoroutine(Fade(delay)); |
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
| var stopwatch = new System.Diagnostics.Stopwatch(); | |
| stopwatch.Start(); | |
| // your function here.. | |
| stopwatch.Stop(); | |
| //Debug.Log("Timer: " + stopwatch.Elapsed); | |
| Debug.Log("Timer: " + stopwatch.ElapsedMilliseconds); | |
| stopwatch.Reset(); |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class Game : MonoBehaviour | |
| { | |
| public static Game instance; | |
| public Player player; | |
| public int score = 0; |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Text; | |
| /** Add this script to an object in the first scene of your game. | |
| * It doesn't do anything for non-webplayer builds. For webplayer | |
| * builds, it checks the domain to make sure it contains at least | |
| * one of the strings, or it will redirect the page to the proper | |
| * URL for the game. | |
| */ |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Text; | |
| /** | |
| * WebLocationChecker by @andyman404 | |
| * Licensed under Creative Commons Zero (do with it as you want, no credit needed) | |
| * https://creativecommons.org/publicdomain/zero/1.0/ | |
| * | |
| * This script site-locks your Unity Webplayer/WebGL build. |
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
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| [Tt]emp/ | |
| [Oo]bj/ | |
| [Bb]uild | |
| /[Bb]uilds/ | |
| /[Ll]ibrary/ | |
| sysinfo.txt | |
| *.stackdump |
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
| import subprocess | |
| import os | |
| import re | |
| import sys | |
| import argparse | |
| import httplib, urllib | |
| import time | |
| """ | |
| # place this file at /home/ethos/check_hash_reboot.py |
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
| #!/bin/bash | |
| LOG_FILE=/tmp/rigcheck.log | |
| if grep -qv active /var/run/ethos/status.file; then | |
| echo "$(date) Mining not active or currently starting, exiting..." | tee -a ${LOG_FILE} | |
| exit 0 | |
| fi | |
| NUM_PROC=`ps uax| egrep "ccminer|cgminer-skein|claymore|dstm-zcash|ethminer|ethminer-amd|ewbf-zcash|sgminer-gm|silentarmy|optiminer-zcash" | grep -v "curl" | grep -v "update-miner" | grep -v grep | awk '{print $2}' | wc -l` | |
| NUM_GPU=`cat /var/run/ethos/gpulist.raw | wc -l` | |
| NEEDS_RESTART=false | |
| if [ "${NUM_PROC}" != "${NUM_GPU}" ]; then |
OlderNewer