Skip to content

Instantly share code, notes, and snippets.

View chrisdrogaris's full-sized avatar

Chris Drogaris chrisdrogaris

View GitHub Profile
@Edudjr
Edudjr / classMiniJSON.js
Last active April 4, 2016 23:36
MiniJSON example using Classes
#pragma strict
import MiniJSON;
import System.Collections.Generic;
class JsonData { // UnityScript only; impossible in JavaScript
var root : Dictionary.<String,System.Object>; //root of string: root = {"data":"data",...}
var array : List.<System.Object>;
var object : Obj; //another json string
var string : String;
@mytharcher
mytharcher / .htaccess
Last active March 3, 2021 00:30
Used for automated deploy web site code from Bitbucket to Dreamhost test site via git POST hook.
# This config is used for Dreamhost which HTTP basic authoriztion is forbidden.
# The PHP Server variable 'PHP_AUTH_USER' & 'PHP_AUTH_PW' could be implement by
# this config via a CGI environment variable.
# From [HTTP Authentication on PHP as CGI (like Dreamhost)](http://planetozh.com/blog/2009/04/http-authentication-on-php-as-cgi-like-dreamhost/)
RewriteEngine on
RewriteRule ^git-hook.*\.php - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]