Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am crilleengvall on github.
  • I am crillst ( on keybase.
  • I have a public key ASBbab1QYRaiTBpot2XStN2-1hIOhWrFLi2mBRxho1rhRQo

To claim this, I am signing this object:

crilleengvall / StuckSheepCheck.cs
Last active August 29, 2015 14:22
How to check if a game object has stopped moving
using UnityEngine;
using System.Collections;
public class StuckSheepCheck : MonoBehaviour {
public GameObject Sheep;
public GameObject SheepTwo;
private Rigidbody2D SheepRigidbody2D;
private Rigidbody2D SheepTwoRigidbody2D;
8368 10:31:54 ERROR Application error.
Exception: System.ArgumentOutOfRangeException
Message: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
Source: mscorlib
at System.DateTimeOffset..ctor(DateTime dateTime)
at Sitecore.Resources.Media.Streaming.Preconditions.IfRangePrecondition.CheckRequestPreconditionAndSetResponseStatus(HttpContext context)
at Sitecore.Resources.Media.Streaming.RangeRetrievalResponse.ExecuteRequest(HttpContext context)
at Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context, MediaRequest request, Media media)
at Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context)
crilleengvall / StartCoroutine.cs
Last active August 29, 2015 14:17
StartCoroutine and StopCoroutine
using UnityEngine;
using System.Collections;
public class EnvironmentSpawner : MonoBehaviour {
public GameObject LargeCloud;
void Start() {
crilleengvall / rename
Last active August 29, 2015 14:01
Git rename branch
git branch -m <oldbranchname> <newbranchname>
git branch -m feature/humanreadable feature/translation
git checkout master
crilleengvall / alias
Last active April 8, 2018 10:39
Git un-apply a stash
git config --global alias.stash-unapply '!git stash show -p | git apply -R'
crilleengvall / alias
Last active April 15, 2018 16:34
Undo a commit and aliasing it to 'git undo'
git config --global alias.undo 'reset --soft HEAD^'
crilleengvall / default-namespaced.xml
Last active December 17, 2015 13:49
Default namespaced xml and xpath
<?xml version="1.0"?>
<bookstore xmlns="urn:xmlns:25hoursaday-com:bookstore">
<title>Lord of the Rings</title>
<author>J.R.R. Tolkien</author>
crilleengvall / index.php
Created May 15, 2013 12:03
Feature troubleshoot
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);