Skip to content

Instantly share code, notes, and snippets.

View daumiller's full-sized avatar
🏳️‍⚧️

Darcy daumiller

🏳️‍⚧️
View GitHub Profile
@daumiller
daumiller / Asm-6502.YAML-tmLanguage
Created January 4, 2014 05:28
Syntax Highlighting for Sublime Text 2 with 6502 Assembly.
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: Asm.6502
scopeName: source.6502
fileTypes: [asm, s]
uuid: 86149a15-e3cd-4960-b54c-bc801015f7d4
patterns:
- comment: Preprocessor
name: entity.name.function.preprocessor.asm
@daumiller
daumiller / ramdisk
Created July 17, 2015 14:05
OSX RAM Disk
#!/usr/bin/env node
"use strict";
const shell = require("child_process").exec;
function byteSize(strSize){
if(!strSize.match(/[0-9]+[bBkKMmGgTt]/)) { throw "Invalid Size Parameter: byteSize(\"" + strSize + "\")"; }
if(strSize.length < 2){ return strSize; }
const unit = strSize[strSize.length-1].toLowerCase();
const amount = parseInt(strSize.substr(0, strSize.length-1));
switch(unit){
@daumiller
daumiller / nuklear_glfw_gl2.c
Last active April 25, 2016 14:05
Nuklear GLFW with older OpenGL
#include <stdio.h>
#include <string.h>
#define MAX_VERTEX_BUFFER 512 * 1024
#define MAX_ELEMENT_BUFFER 128 * 1024
#define NK_IMPLEMENTATION
#include "nuklear_glfw.h"
#include "../../nuklear.h"
[SHA-256 in RepGen :) ]
[==================================================================================================================================]
Target = Account
[==================================================================================================================================]
Define
SHAInput = character
SHAOutput = character(64)
SHAw0a=number SHAw0b=number SHAw0c=number SHAw0d=number
SHAw1a=number SHAw1b=number SHAw1c=number SHAw1d=number
meta-chart.com
stylecaster.com
abcgreeknews.blogspot.gr
universeparadise.com
cultofmac.com
washingtontimes.com
smithsonianmag.com
EngagingEdu.com, mathwarehouse.com
minecraft-mp.com
youngcons.com