Skip to content

Instantly share code, notes, and snippets.

Shader "Custom/HpBorder"
{
Properties
{
_Scale("Scale", Range(0.0, 1.0)) = 0.5
}
SubShader
{
Tags {"RenderType"="Transparent" "Queue"="Transparent"}
LOD 200

Keybase proof

I hereby claim:

  • I am dshook on github.
  • I am dshook (https://keybase.io/dshook) on keybase.
  • I have a public key whose fingerprint is 8808 2F42 C189 8673 EE64 859F 9F7E 4668 F35B 8C8C

To claim this, I am signing this object:

@dshook
dshook / knapsack.cs
Created June 1, 2015 18:28
knapsack
void Main()
{
var cart = new List<Item>(){
new Item(){id = 7, cost = .99m, quantity = 1},
new Item(){id = 8, cost = 4m, quantity = 1},
new Item(){id = 9, cost = 4.9m, quantity = 1},
};
var solution = CalculateSolution(cart, 5.0m);
@dshook
dshook / deploy.js
Last active August 29, 2015 14:15
Deploy Ghost Script
var shell = Promise.promisifyAll(require('shelljs'));
module.exports = function deploy(req, res){
shell.execAsync('git remote update')
.then(function(output){
res.write(output.toString());
})
.then(function(){
return shell.execAsync('git status -uno');
@dshook
dshook / ghost_blog_index.js
Created February 19, 2015 22:09
Ghost Blog Index
var promise = require('bluebird');
global.Promise = promise;
var ghost = require('ghost');
var express = require('express');
var path = require('path');
var deploy = require('./deploy.js');
var app = express();
WEBLINC.formValidation = (function () {
'use strict';
var setup = function () {
var CREDIT_CARD_NUMBER_WHITE_LIST = ['1', '2', '3'],
setDefaults = function () {
$.validator.setDefaults({
meta: 'validation',
ignoreTitle: true,
var React = require('react');
var CreateTransformWidget = require('./CreateTransformWidget.jsx');
var TransformWidget = require('./TransformWidget.jsx');
var WidgetStore = require('../stores/WidgetStore');
var event = require('../messenger/Messenger').event;
var messenger = require('../messenger/AppMessenger');
module.exports = React.createClass({
getState() {
//For demo purposes ofc
//
//globals all over the place and no test harness
//library makes this a bit messy but hope you should get the idea
var TEST_SIZE = 10;
var testBoard = initState(TEST_SIZE);
assertEquals(testBoard.length, TEST_SIZE, 'Correct Number of Rows');
assertEquals(testBoard[0].length, TEST_SIZE, 'Correct Number of Columns');
var TABLE_SIZE = 200;
var ALIVE = 'black';
var DEAD = 'white';
//gamestate
function initState(size){
var board = [];
for(var y = 0; y < size; y++){
var row = [];
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Game of Life</title>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->