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
/// @usage: Use as you would a native Matrix4x4 method; | |
/// e.g. `this.transform.localToWorldMatrix.IsActuallyIdentity()` | |
/// @usage: Lives best within `Assets/Plugins/`. | |
using UnityEngine; | |
public static class Matrix4x4Extensions | |
{ |
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 System.Collections; | |
public class OrderTester : MonoBehaviour { | |
void Update() { Debug.Log("Update()"); } | |
void LateUpdate() { Debug.Log("LateUpdate()"); } | |
void FixedUpdate() { Debug.Log("FixedUpdate()"); } | |
void Awake() { Debug.Log("Awake()"); } | |
void Start() { Debug.Log("Start()"); } | |
void Reset() { Debug.Log("Reset()"); } |
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
// @source: https://gist.github.com/darktable/2018687#file-guiscaler-cs | |
using System; | |
using System.Collections; | |
using UnityEngine; | |
/// Usage: | |
/// (optional) Call GUIScaler.Initialize() in Start(), Awake() or OnEnable() (only needed once) |
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
#import "TestCGBitmapContextCreate_iOSTests.h" | |
@implementation TestCGBitmapContextCreate_iOSTests | |
- (void)setUp | |
{ | |
[super setUp]; |
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
/// @creator: Slipp Douglas Thompson | |
/// @license: WTFPL | |
/// @why: Too trivial to care. | |
/// @intersource: https://gist.github.com/capnslipp/02536fd06afe9428c381 | |
Shader "Texture Stepped" { | |
Properties { | |
_MainTex ("Base (RGBA)", 2D) = "gray" {} | |
_Step ("Step (XY)", Vector) = (32, 32, 0, 0) | |
} |
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
@arrow_box_size: 30px; | |
@arrow_box_color: #88b7d5; | |
@arrow_box_border_width: 4px; | |
@arrow_box_border_color: #c2e1f5; | |
.arrow_box { | |
position: relative; | |
background: @arrow_box_color; | |
border: @arrow_box_border_width solid @arrow_box_border_color; | |
&:after, &:before { |
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
#!/usr/local/bin/node | |
var https = require('https'); | |
var token, username; | |
var tenxer = 'tenxer'; | |
var shitsFucked = 0; | |
var shitsUnfucked = 0; | |
var reposCount = 0; | |
process.argv.forEach(function (arg) { |
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
<dl> | |
<dt>emsp:</dt><dd><textarea> </textarea></dd> | |
</dl> |
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
<HTML> | |
<HEAD> | |
<TITLE>YOUR DUMB!!! STOMP STOMP!!</TITLE> | |
</HEAD> | |
<BODY bgcolor="#000000"> | |
<TABLE width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> | |
<TR> | |
<TD colspan="2" height="100%" align="center" valign="center"> | |
<CENTER> |
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
var endOfScopeMarker = '\t\t},'; | |
var find = new RegExp('"someProperty" : 3((?:(?!'+endOfScopeMarker+').|\n)+)("anotherPropertyWithinTheSameScope" : 1,)', "g"); | |
var replace: '"someProperty" : 0$1$2'; |
OlderNewer