Skip to content

Instantly share code, notes, and snippets.

@Deozaan
Deozaan / FileIO.jslib
Created December 20, 2020 09:37 — forked from robertwahler/FileIO.jslib
UnityEngine.PlayerPrefs wrapper for WebGL LocalStorage
var FileIO = {
SaveToLocalStorage : function(key, data) {
localStorage.setItem(Pointer_stringify(key), Pointer_stringify(data));
},
LoadFromLocalStorage : function(key) {
var returnStr = localStorage.getItem(Pointer_stringify(key));
var bufferSize = lengthBytesUTF8(returnStr) + 1;
var buffer = _malloc(bufferSize);
BEGIN MESSAGE.
girjk3NRVthYm4Y hPKlsrt1S32YiHx FFyfmjUrfe9bWx0 rVeBXTbaEWCdoNO
rr6bGdIsyGDfgpc uo6HCbiil4ITCKq 6Xr2MZHgg738uN1 hLzHPY4vxmrS1bR
zbXCgmurYQqZsty 6PueJZitMZH6McU Rw274NpCyC35cYy KpmncFXT2gl9QtB
eIFmGMg49VMGDa3 U8foKIJNo7OHQRU rRDmM2IP.
END MESSAGE.
Verifying my Blockstack ID is secured with the address 1Hzp9htX4giUnkZKjtDZwoCmjnouRLfDvB https://explorer.blockstack.org/address/1Hzp9htX4giUnkZKjtDZwoCmjnouRLfDvB
@Deozaan
Deozaan / .hgignore
Created September 27, 2017 10:04
.hgignore for Unity Projects
syntax: glob
.vs/
.vscode/
Builds/
EditorSaves/
Library/
obj/
Temp/
desktop.ini
*.csproj
@Deozaan
Deozaan / felcode.php
Created July 17, 2017 22:29
Secret Decoder Ring (Felcode)
<?php
//error_reporting(2047);
ob_start();
$codeArray = createArray();
$makeDict = new configParse;
$dictArray = $makeDict->parseFile($_POST['dictionary']);
if (isset($_POST['input'])) {
@Deozaan
Deozaan / BoringLerpDemo.cs
Created July 13, 2016 06:56
TrulyBoringLerpDemo
using UnityEngine;
public class BoringLerpDemo : MonoBehaviour {
Vector3 startPosition;
Vector3 endPosition;
float elapsedTime = 0;
void Start() {
@Deozaan
Deozaan / BoringLerpDemoRedux.cs
Created July 13, 2016 06:46
BoringLerpDemoRedux
using UnityEngine;
public class BoringLerpDemo : MonoBehaviour {
public Vector3 endPosition;
void Update() {
transform.position = Vector3.Lerp(transform.position, endPosition, Time.deltaTime);
}
}

Keybase proof

I hereby claim:

  • I am deozaan on github.
  • I am deozaan (https://keybase.io/deozaan) on keybase.
  • I have a public key ASDnhq71ckL3Q_nfXhCTGmFJyRP_5ekyWxqQ7fHoqYUDugo

To claim this, I am signing this object:

@Deozaan
Deozaan / BlockchainID.txt
Last active April 6, 2016 01:40
Blockchain ID
Verifying that +deozaan is my blockchain ID. https://onename.com/deozaan
@Deozaan
Deozaan / PlexInstaller
Last active August 29, 2015 14:18
Installing Plex Media Server on Odroid-C1
# https://forums.plex.tv/index.php/topic/145717-i-have-pms-running-on-raspberry-pi-2/page-18#entry887965
# http://forum.odroid.com/viewtopic.php?f=112&t=8737&p=83301#p82428
su
cd /tmp
# wget --trust-server-names https://dev2day.de/plex-latest
wget https://dev2day.de/plex-latest
mv plex-latest plex.deb
sudo dpkg -i plex.deb
echo "/usr/lib/plexmediaserver" >>/etc/ld.so.conf.d/plex.conf
ldconfig