This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Spring = {} do | |
Spring.__index = Spring | |
local pi = math.pi | |
local exp = math.exp | |
local sin = math.sin | |
local cos = math.cos | |
local sqrt = math.sqrt | |
function Spring.new(dampingRatio, frequency, position) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NOTE: This code assumes a bare git repo in ./bare-git/, | |
which should have at least one text file in its root, | |
named "greetings.txt". | |
This code updates the contents of a "greetings.txt" | |
file, and creates a new file called "greetings-XXX.txt" | |
(with XXX being a random number). It then creates a new | |
commit for these changes. Finally, it reads and dumps | |
the new current contents of the repo, file by file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; haskell-font-lock.el --- Font locking module for Haskell Mode | |
;; Copyright 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
;; Copyright 1997-1998 Graeme E Moss, and Tommy Thorn | |
;; Author: 1997-1998 Graeme E Moss <[email protected]> | |
;; 1997-1998 Tommy Thorn <[email protected]> | |
;; 2003 Dave Love <[email protected]> | |
;; Keywords: faces files Haskell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* robotMaze.js | |
* | |
* The blue key is inside a labyrinth, and extracting | |
* it will not be easy. | |
* | |
* It's a good thing that you're a AI expert, or | |
* we would have to leave empty-handed. | |
*/ |