Skip to content

Instantly share code, notes, and snippets.

@meatcar
meatcar / README.md
Last active March 12, 2024 01:38
A better "Reboot to {OS}" script for rEFInd Next Boot selection for Windows
@lrvick
lrvick / app.js
Last active April 26, 2024 13:06
AngularJS credit card form with validation
// MIT: http://opensource.org/licenses/MIT
angular.module('app', []);
angular.module('app').controller
( 'MainCtrl'
, function($scope,$locale) {
$scope.currentYear = new Date().getFullYear()
$scope.currentMonth = new Date().getMonth() + 1
$scope.months = $locale.DATETIME_FORMATS.MONTH
@scottkellum
scottkellum / normalized.html
Created December 6, 2011 14:58
pixel normalization
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
@shinout
shinout / main.js
Created November 10, 2011 07:20
redirecting stdout goes wrong when writing stdout from multi-processes
var fork = require("child_process").fork;
var workers = [];
for (var i=0; i<6; i++) { (function(i) {
workers[i] = fork(__dirname + "/worker.js");
workers[i].send(i);
})(i) }