Skip to content

Instantly share code, notes, and snippets.

@sTiLL-iLL
sTiLL-iLL / scribbles.js
Last active August 29, 2015 14:12
my nonblocking, threadsafe file writer/appender for nodejs. works great with clustered servers, and child processes that write to shared or static file-stores
//scribbles.js
var fs = require('fs'),
pth = require('path'),
cueMngr = {};
function Scribbles(fileNm) {
this.handle = fileNm;
this.canWrite = false;
@sTiLL-iLL
sTiLL-iLL / embeddedWRKR.js
Created February 1, 2015 11:44
Spin a worker from within the original html/js file!
function worker() {
setInterval(function() {
postMessage({foo: "bar"});
}, 1000);
}
var code = worker.toString();
code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}"));
@sTiLL-iLL
sTiLL-iLL / index.html
Last active March 20, 2025 08:01
MVC and Templates... vanilla.js... its a work in progress, but its super light, easy to use, and fast as hell. fast
///////// VIEW //////////////////////////
<!DOCTYPE html>
<html>
<head>
<title>MY MVC</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="stylz.css" />
<script src="signals.js"></script>