Matthew Frazier <leafstormrush@gmail.com>
The most common library for networking in Lua is LuaSocket by Diego Nehab. In addition to low-level support for communicating directly through sockets, it also includes:
Matthew Frazier <leafstormrush@gmail.com>
The most common library for networking in Lua is LuaSocket by Diego Nehab. In addition to low-level support for communicating directly through sockets, it also includes:
class Hello < Thor | |
include Thor::Actions | |
desc "hello NAME", "says hello to the given NAME" | |
def hello (name="World") | |
say "Hello, #{name}! It's nice to meet you!" | |
end | |
end |
Matthew "LeafStorm" Frazier <leafstormrush@gmail.com>
February 4, 2011
Early draft
This document specifies an interface between Web servers and Web applications written in the Lua programming language, to promote interoperability between Web servers and the development of an ecosystem of reusable components for Lua
#!/usr/bin/env ruby | |
# craftr | |
# This manages a Craftbukkit server. It helps you start it, stop it, | |
# back up your world, and download specific Craftbukkit builds. | |
# You must "gem install thor" first. | |
# Run it in your server directory. | |
require 'thor' | |
require 'yaml' |
# drop this in your ~/.config/fish/functions | |
function activate --description "Activate a virtual environment" | |
# find the target | |
set target $argv[1] | |
if test -z $target | |
set target $PWD | |
end | |
# expand the path in $target |
<!doctype html> | |
<html> | |
<head> | |
<title>UnWRAP Test</title> | |
<style type="text/css"> | |
p.flash { | |
font-style: italic; | |
text-align: center; | |
} | |
p.message { |
#!/bin/sh | |
version=2.6 | |
python=python$version | |
echo "== This script will install Distribute, pip, and virtualenv" | |
echo " in your home directory for Python $version." | |
DISTRIBUTE_TEMP=$(mktemp -p "${TMPDIR:-.}" -d distribute-XXX) || { | |
echo "Could not create temporary working directory" | |
exit 1 |
# Benchmarks run with the Append Only File on everysec | |
# redis-server run with default settings, except for appendonly yes | |
# src/redis-benchmark -d 16 -n 1000000 | |
# at the end of the benchmark, appendonly.aof was 48 MB | |
====== PING (inline) ====== | |
1000000 requests completed in 6.54 seconds | |
50 parallel clients | |
16 bytes payload |
/** | |
* Parser for DCPU-16 assembly language. | |
* This parser should accurately parse all of Notch's example code, and most | |
* of the community's code. | |
* It converts instructions to objects with fields {op, params, label}. | |
* op is the lowercased opcode, params is the parameters passed to it (as | |
* values), and label is the label prefixing the statement (null if the | |
* statement is unlabelled). | |
* Values have a type field and one or two others depending on the type. | |
* |