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
| // Smooth Follow from Standard Assets | |
| // Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
| // If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
| using UnityEngine; | |
| using System.Collections; | |
| public class SmoothFollow : MonoBehaviour { | |
| // The target we are following | |
| public Transform target; |
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
| ######################### | |
| # .gitignore file for Xcode4 and Xcode5 Source projects | |
| # | |
| # Apple bugs, waiting for Apple to fix/respond: | |
| # | |
| # 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
| # | |
| # Version 2.6 | |
| # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # |
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
| # Beginning Rubyists: simply run >> ruby hex-convertions.rb to see examples | |
| # or use irb to build the code on the fly | |
| # you can convert HEX to DEC using the method .to_i(base), | |
| # which converts a string to a decimal number from the specified base number | |
| puts "00".to_i(16) | |
| puts "FF".to_i(16) |
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
| .counter { | |
| display:block; | |
| float:left; | |
| font-size:2em; | |
| line-height:1.2em; | |
| -webkit-box-reflect: below -15px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(60%, transparent), to(rgba(255,255,255,0.3))); | |
| } | |
| .counter span.digit { | |
| background:#161616; |
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
| ... | |
| module Helpers | |
| # Replace standard input with faked one StringIO. | |
| def fake_stdin(*args) | |
| begin | |
| $stdin = StringIO.new | |
| $stdin.puts(args.shift) until args.empty? | |
| $stdin.rewind | |
| yield |
NewerOlder