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
| #!/usr/bin/env python3.4 | |
| import re | |
| import json | |
| import unitypack | |
| from unitypack.environment import UnityEnvironment | |
| def loadUnityBundle(filename, env): | |
| f = open(filename, "rb") | |
| ret = unitypack.load(f, env) | |
| f.close() |
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
| <?php | |
| error_reporting(0); | |
| $xml = simplexml_load_string(file_get_contents('http://www.dailytechnewsshow.com/category/headlines/feed/')); | |
| $latest = $xml->channel->item[0]; | |
| parse_str(parse_url($latest->guid->__toString())['query'], $uid); | |
| $latest_arr = array( | |
| 'uid' => $uid['p'], | |
| 'updateDate' => date_format(date_create($latest->pubDate->__toString()), "Y-m-d\TH:i:s.0\Z"), |
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
| 1 Hermetic Study | |
| 1 Archivist | |
| 1 Disease Carriers | |
| 1 Urza's Blueprints | |
| 1 Winding Wurm | |
| 1 Armorer Guildmage | |
| 2 Reckless Ogre | |
| 1 Molten Hydra | |
| 2 Lightning Blast | |
| 2 Shock |
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
| # autodeploy.sh | |
| if [ -n "$GITHUB_API_KEY" ]; then | |
| cd "$TRAVIS_BUILD_DIR" | |
| # Grab SHA for nice linking | |
| SHA=`git rev-parse --verify HEAD` | |
| # Move into repository folder with compiled code for gh-pages | |
| cd public |
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
| require 'cinch' | |
| require 'thread' | |
| mutex = Mutex.new | |
| quit_signalled = ConditionVariable.new | |
| signal_received = nil | |
| bot = Cinch::Bot.new do | |
| configure do |c| | |
| c.nick = 'SignalQuitBot' |