Skip to content

Instantly share code, notes, and snippets.

View creationix's full-sized avatar
💚
<3

Tim Caswell creationix

💚
<3
View GitHub Profile
@creationix
creationix / twostep.js
Created December 27, 2011 17:56
Request for Comments on new API for Step
module.exports = TwoStep;
var slice = Array.prototype.slice;
function Group(callback) {
this.args = [null];
this.left = 0;
this.callback = callback;
this.isDone = false;
}
local Path = require('path')
local FS = require('fs')
local function search(code, pattern)
local data = {}
for pos, k, v in code:gmatch(pattern) do
local sub = code:sub(1, pos)
local comment = sub:match("\n-- ([^\n]+)\n$")
if not comment then
local long = sub:match("\n--%[(%b[])%]\n$")
@hnakamur
hnakamur / gist:3568370
Created September 1, 2012 09:37
how to build luvit on windows7 x64
# how to build luvit on windows7 x64
## setup msysgit
http://code.google.com/p/msysgit/
download and execute
Git-1.7.11-preview20120710.exe
installation target: C:\msysgit
@wolfeidau
wolfeidau / systemtap.md
Last active October 29, 2018 15:43
Configuring system tap on ubuntu 13.04, yeah so it will work.. like at all..
  • Install a base server with open ssh server enabled.
  • Update the OS.
sudo apt-get update
sudo apt-get upgrade
  • Install developement tools.
------------------------------------
-- basic TLS/SSL3.1 implementation
-- $Id: ssl.lua,v 1.13 2006-12-02 21:25:58 kt Exp $
------------------------------------
require "clua"
require "util"
#define RSA_BITS 2048
#define RSA_BYTES (RSA_BITS/8)
#define DIGIT uint32_t
#define DIGIT_BITS (sizeof(DIGIT)*8)
#define DIGIT_MAX ((DIGIT)(-1))
#define NDIGITS (RSA_BITS/DIGIT_BITS)
static int b_add(DIGIT * restrict r, DIGIT * restrict x, DIGIT * restrict y)
{
@DamienCassou
DamienCassou / configuration.nix
Created October 22, 2014 13:41
configuration.nix file for NixOS on my macbook pro
{ config, pkgs, ... }:
let
hostname = "luz3";
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# I use VirtualBox to connect to Windows and Linux guests

Lisp syntax, but using whitespace to remove most parentheses.

  • Every line is wrapped as a list. Use do to get just the value.
  • Empty lines are ignored.
  • Indented lines are concatenated to their parent lists.
  • A pipe (|) acts like indentation without wasting whitespace.
  • Use square brackets for inline lists.
  • Use round parentheses for infix notation (first two items are swapped)

For example, take the following lisp style program:

@tzudot
tzudot / lit.rb
Last active August 29, 2015 14:26 — forked from creationix/lit.rb
Homebrew
require "formula"
class Lit < Formula
homepage "https://github.com/luvit/lit"
url "https://lit.luvit.io/packages/luvit/lit/v2.1.11.zip"
sha1 "be0904957a4867bf1284d0ebd7b04e6ec521b85a"
depends_on "luvi" => :build
def install