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
AfterConfiguration do |config| | |
pid = spawn ‘appium --address 0.0.0.0 --port 4723’ | |
Process.detach(pid) | |
sleep(10) | |
end | |
at_exit do | |
exec ‘/usr/bin/killall -KILL node’ | |
end |
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 UnityEngine; | |
using UnityEngine.SceneManagement; | |
using System.Collections; | |
public class LevelManager : MonoBehaviour { | |
public void LoadLevel(string name){ | |
Debug.Log ("New Level load: " + name); | |
//Application.LoadLevel (name); | |
SceneManager.LoadScene(name); |
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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
Obj/ | |
UnityGenerated/ | |
Library/ | |
# ===================================== # | |
# Visual Studio / MonoDevelop generated # |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"files.exclude": { | |
"**/.git": true, | |
"**/.DS_Store": true, | |
"**/*.meta":true, | |
"**/Library":true, | |
"**/obj":true, | |
"**/Temp":true, | |
"**/ProjectSettings": true, |
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
[diff] | |
tool = "twdiff" | |
[difftool] | |
prompt = false | |
[difftool "twdiff"] | |
cmd = /usr/local/bin/twdiff --wait --resume "$LOCAL" "$REMOTE" | |
[merge] | |
tool = "twdiff" | |
[mergetool] |
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
#require "random" | |
print "Enter the number of guests:" | |
guests = gets() | |
print "Enter the number of prizes to give away:" | |
prizes = gets() | |
winners = [] | |
prizes.to_i.times do | |
winner = Random.rand guests.to_i | |
while winners.include?(winner) # add if gap in number blocks winner > 29 and winner < 58 |
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
Dir.chdir(File.absolute_path("#{ENV['ANDROID_SDK_HOME']}/build-tools/17.0.0/"));Dir.glob("*").each{|x| system "ln -s #{ENV['ANDROID_SDK_HOME']}/build-tools/17.0.0/#{x} #{ENV['ANDROID_SDK_HOME']}/platform-tools/#{x}"} |
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
rvm use 1.9.3@erebus --create | |
gem install erebus | |
rvm wrapper 1.9.3@erebus ruby erebus | |
mv ~/.rvm/bin/ruby_erebus ~/.rvm/bin/erebus |
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
#!BPY | |
""" | |
Name: 'Objective-C Header (.h)' | |
Blender: 244 | |
Group: 'Export' | |
Tooltip: 'Exports header file for use with the OpenGL ES template for iPhone available from http://iphonedevelopment.blogspot.com/' | |
""" | |
import Blender | |
from Blender import * |
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
module PixenToGameQuery | |
require 'RMagick' | |
include Magick | |
FPR = 12 # Frames per row in a sprite sheet generated by Pixen | |
COLPAD = 2 # Pix between each column of images on the sprite sheet | |
ROWPAD = 2 # Pix between each row of images on the sprite sheet | |
LEFTPAD = 4 # Extra pix on left of sprite sheet | |
RIGHTPAD = 20 # Extra pix on right of sprite sheet | |
BOTTOMPAD = 2 # Extra pix on bottom of sprite sheet |
NewerOlder