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; | |
| public class TouchCamera : MonoBehaviour { | |
| public Transform target; | |
| Vector3 f0Dir= Vector3.zero; | |
| float zoomDistance= 5; | |
| float theta= 0.0F; | |
| float fai= 0.0F; | |
| float dx= 0.0F; |
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/sh | |
| set -e | |
| set -x | |
| for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
| do | |
| npm -g install "$package" | |
| done |
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
| // iMacro CheatSheet - Command Reference | |
| // http://wiki.imacros.net/Command_Reference | |
| // iMacros supports 3 types of variables: | |
| // * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro. | |
| // * Built-in variables. They contain certain values set by iMacros. | |
| // * User-defined variables. They are defined in-macro using the SET command. | |
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
| # Starting with... | |
| # OS X 10.8.3 | |
| # python 2.7.2 // python --version | |
| # c++ 4.0 // c++ --version | |
| # g++ 4.2 // g++ --version | |
| # | |
| # Update/Install XCode command line utils | |
| # c++ 4.2 // c++ --version | |
| # | |
| # Doing all my work in ~/Development |
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/VertexBlendMaskedCleanEdges" { | |
| Properties | |
| { | |
| _Over ("Over", 2D) = "white" {} | |
| _Under ("Under", 2D) = "white" {} | |
| _Mask ("Mask", 2D) = "white" {} | |
| _Bias ("Edge Bias", Range(0.5, 30.0)) = 4.0 | |
| _Edge ("Edge Sharpness", Float) = 10.0 | |
| _Fall ("Blend Falloff", Float) = 1.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
| /* | |
| Implementation of ISynchronizeInvoke for Unity3D game engine. | |
| Can be used to invoke anything on main Unity thread. | |
| ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well. | |
| I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject. | |
| help from: http://www.codeproject.com/Articles/12082/A-DelegateQueue-Class | |
| example usage: https://gist.github.com/aeroson/90bf21be3fdc4829e631 | |
| license: WTFPL (http://www.wtfpl.net/) |
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
| <link rel="stylesheet" href="/css/instagram.css" type="text/css" /> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> | |
| <div class="instagram"></div> | |
| <div class="load-more btn">Gimme more photos...</div> | |
| <div class="error">Oops, there was an error getting the photos...</div> | |
| <script src="/js/instagram.js"></script> |
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
| """ | |
| Will pull images from a tag. | |
| I'm using this to make a photobook of my brother in law's wedding, | |
| but you might find it helpful for any number of other things. | |
| """ | |
| from instagram.client import InstagramAPI | |
| from pprint import pprint | |
| import urlparse | |
| import urllib |

