Skip to content

Instantly share code, notes, and snippets.

0 - Deep water (Low Ground Level)
1 - Water (Low Ground Level
2 - Low Ground
3 - High Ground
4 - Water (High Ground Level)
5 - Deep water (High Ground Level)
@zaun
zaun / plasma.js
Created February 19, 2016 23:06 — forked from rochal/plasma.js
plasma.js - Creating Plasma Fractal in JavaScript
/***************************************************************************
* Do What THe Fuck You Want To Public Licence 2 *
* *
* JavaScript implementation by Piotr Rochala (http://rocha.la/) *
* Based on C# work of Serge Meunier (http://www.smokycogs.com/) *
* *
* Check this code in action on http://rocha.la/javascript-plasma-fractal *
* *
**************************************************************************/
@zaun
zaun / Effect.cs
Created February 22, 2016 17:43
Unity3D Pools
using UnityEngine;
using System.Collections;
public class Effect : MonoBehaviour
{
/// <summary>
/// The array of emitters to fire when the effect starts.
/// </summary>
public ParticleEmitter[] emitters;
@zaun
zaun / Sat
Last active June 30, 2016 00:35
http://www.atmel.com/Images/Atmel-42348-SAM-D21L_Datasheet.pdf
ATSAMD21G18A-AU (-40 to 85)
http://www.mattairtech.com/images/MT-D21E/MT-D21E.png
(master module, 1)
-Bootloader-
i2c, slave - master bootloader channel
reset - system reset
-Runtime-
@zaun
zaun / schemas
Last active September 28, 2016 23:34
{
"id": "AttributeCurrency#",
"title": "Currency type attribute schema",
"type": "object",
"properties": {
"_href": {
"type": "string",
"format": "url"
},
@zaun
zaun / gist:e0d132bba0b87e546aed0af2f92db98e
Created February 15, 2017 00:27
Grunt Karma for vuejs
karma: {
unit: {
options: {
frameworks: ['jasmine'],
singleRun: true,
browsers: ['PhantomJS'],
reporters: ['spec', 'coverage'],
files: [
{ pattern: 'test/client/**/*-spec.js', watched: false }
],
@zaun
zaun / Bullet.cs
Created February 28, 2017 04:47
Unity3d Smart Object Pooling
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : PoolObject {
Rigidbody myRigidbody;
public override void OnAwake() {
if (myRigidbody == null) {
myRigidbody = GetComponent<Rigidbody> ();
@zaun
zaun / player.cs
Last active March 12, 2017 03:07
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
[RequireComponent (typeof (Rigidbody))]
public class Player : LivingEntity {
[Header("Hoover")]
public Transform[] hooverPoints;
@zaun
zaun / interrupts.c
Created May 31, 2017 03:40
Context switch on an interrupt vector
void __attribute__((interrupt("IRQ"))) _c_interrupt_vector(void)
{
static int lit = 0;
/* Clear the ARM Timer interrupt - it's the only interrupt we have
enabled, so we want don't have to work out which interrupt source
caused us to interrupt */
RPI_GetArmTimer()->IRQClear = 1;
/* Flip the LED */
@zaun
zaun / feedback.md
Last active September 23, 2017 01:17
HACC Feedback

Feedback

Hi, this has been the first year I participated in the HACC and I thought I would give some feedback. But first I think overall HACC is a great idea and it has been mostly a positive experance.

To give a bit of perspective of where this feedback are coming from, I'm a professional software developer and I work 40+ hours a week at my job. My time spent on the hackathon was a few evenings and weekends.

I'm coming at this thinking the state wants viable solutions to issues it currently has, as the primary goal. The state wants help support and educate developers in the community, as a secondary goal. Finally the state wants to help people create a business and monetize their solutions, as a tertiary goal. This is my perspective and my understanding based on being involved in the HACC so far and having friends that were involved last year.

  • Overall there could be a lot of improvements to the HACC, some small, some large.
  • Overall the process could be a lot more productive than it currently i