Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
local ffi = require 'ffi' | |
local pa = ffi.load('portaudio') | |
ffi.cdef [[ | |
int Pa_GetVersion( void ); | |
const char* Pa_GetVersionText( void ); | |
typedef int PaError; | |
typedef enum PaErrorCode | |
{ |
The bridge is now located at https://github.com/fjolnir/TLC |
(require '[noir.server :as server]) | |
(use 'noir.core 'aleph.http 'lamina.core) | |
(defn async-response [response-channel request] | |
(enqueue response-channel | |
{:status 200 | |
:headers {"content-type" "text/plain"} | |
:body "async response"})) | |
(defpage "/" [] "hey from Noir!") |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script> | |
if (typeof (nfvalidate) == "undefined") nfvalidate = {}; | |
// An array of validators to push your validators to | |
nfvalidate.validators = new Array(); | |
nfvalidate.validators.push({ |
--[[a parametric function describing the Bezier curve determined by given control points, | |
which takes t from 0 to 1 and returns the x, y of the corresponding point on the Bezier curve]] | |
function bezier(xv, yv) | |
local reductor = {__index = function(self, ind) | |
return setmetatable({tree = self, level = ind}, {__index = function(curves, ind) | |
return function(t) | |
local x1, y1 = curves.tree[curves.level-1][ind](t) | |
local x2, y2 = curves.tree[curves.level-1][ind+1](t) | |
return x1 + (x2 - x1) * t, y1 + (y2 - y1) * t | |
end |