start new:
tmux
start new with session name:
tmux new -s myname
#models.py | |
class Activity(models.Model): | |
name = models.CharField() | |
start = models.DateTimeField() | |
end = models.DateTimeField() | |
#forms.py |
This benchmark has been misleading for a while. It was originally made to demonstrate how JIT compilers can do all sorts of crazy stuff to your code - especially LuaJIT - and was meant to be a starting point of discussion about what exactly LuaJIT does and how.
As a result, its not indicative of what its performance may be on more realistic data. Differences can be expected because
// begin() and end() functions for arrays (C++03) | |
// | |
// Written in 2012 by Martinho Fernandes | |
// | |
// To the extent possible under law, the author(s) have dedicated all copyright and related | |
// and neighboring rights to this software to the public domain worldwide. This software is | |
// distributed without any warranty. | |
// | |
// You should have received a copy of the CC0 Public Domain Dedication along with this software. | |
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |
// Two-dimensional array with dimensions determined at runtime | |
// | |
// Written in 2012 by Martinho Fernandes | |
// | |
// To the extent possible under law, the author(s) have dedicated all copyright and related | |
// and neighboring rights to this software to the public domain worldwide. This software is | |
// distributed without any warranty. | |
// | |
// You should have received a copy of the CC0 Public Domain Dedication along with this software. | |
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |
require 'rubygems' | |
require 'serialport' | |
class Korad | |
def initialize(port="/dev/ttyACM0", baud=9600) | |
@serial = SerialPort::open(port,baud) | |
@serial.read_timeout = 100 | |
end | |
def get_status |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
local lua = [[{ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ | |
["hello"]="there\nworld", | |
["array"]={1,2,3,1e6,{["more"]=false},nil,true}, | |
["more"]={ |