This file contains 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
This test passes: | |
it "should tell me how params are passed" do | |
# that new car smell | |
car = Car.new | |
car.colour = "blue" | |
# this car smells like hash | |
car_hash = {'colour' => 'blue'} | |
# both cars were created blue yeah? |
This file contains 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
--# PointSizeHelper | |
function pointsScaled(width) | |
if WIDTH == 1024 then | |
pointRatio = WIDTH / 10000 | |
else | |
pointRatio = WIDTH / 5500 | |
end | |
return width * pointRatio |
This file contains 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
--# Menu | |
Menu = class() | |
function Menu:init() | |
end | |
function Menu:draw() | |
if self.main then |
This file contains 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
--# CircleMask | |
CircleMask = class() | |
function CircleMask:init(rad, sides) | |
-- you can accept and set parameters here | |
self.mesh = mesh() | |
local verts = {} |
This file contains 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
-- CircleMask class courtesy of Simeon (http://twolivesleft.com/Codea/Talk/profile/3/Simeon) | |
-- Use this function to perform your initial setup | |
function setup() | |
print("Hello World!") | |
-- params: width, sides in mesh, texture detail, image resolution, rotation speed | |
sun = Sun(WIDTH*0.5, 128, 580, 52, 0.4) | |
end | |
-- This function gets called once every frame |
This file contains 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
name: myapp_app | |
summary: Common configuration for running the C-Rex platform (just the application host) | |
post: | |
base: | |
- "echo ---- Creating home directory structures" | |
- "mkdir -p /home/myapp/stuff" | |
- "echo ---- Installing application and setting permissions" | |
- "chown -R myapp:myapp /home/myapp" |
This file contains 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
public class BundledHelpersTest { | |
@Test | |
public void testStringUtils() throws Exception { | |
testBundledHelper("TheInpu...", "@{render.abbreviate('TheInputString', 10)}"); | |
testBundledHelper("...putSt...", "@{render.abbreviate('TheInputString', 5, 11)}"); | |
testBundledHelper("TheInputString", "@{render.capitalize('TheInputString')}"); | |
testBundledHelper(" TheInputString ", "@{render.center('TheInputString', 20)}"); | |
testBundledHelper("TheInputString", "@{render.defaultString('TheInputString', 'BlahBlah')}"); | |
testBundledHelper("BlahBlah", "@{render.defaultString('', 'BlahBlah')}"); |
This file contains 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
D, [2011-09-07T08:28:01.489667 #20442] DEBUG -- : Loading os plugins... | |
D, [2011-09-07T08:28:01.490619 #20442] DEBUG -- : We have 4 os plugin(s) registered | |
D, [2011-09-07T08:28:01.491476 #20442] DEBUG -- : - centos plugin for CentOS. | |
D, [2011-09-07T08:28:01.492418 #20442] DEBUG -- : - rhel plugin for Red Hat Enterprise Linux. | |
D, [2011-09-07T08:28:01.493452 #20442] DEBUG -- : - sl plugin for Scientific Linux. | |
D, [2011-09-07T08:28:01.494406 #20442] DEBUG -- : - fedora plugin for Fedora. | |
D, [2011-09-07T08:28:01.495450 #20442] DEBUG -- : Plugins loaded. | |
D, [2011-09-07T08:28:01.496466 #20442] DEBUG -- : Loading platform plugins... | |
D, [2011-09-07T08:28:01.497424 #20442] DEBUG -- : We have 3 platform plugin(s) registered | |
D, [2011-09-07T08:28:01.498449 #20442] DEBUG -- : - virtualbox plugin for VirtualBox. |
This file contains 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
name: dev_java | |
summary: Tools for developing Java apps | |
appliances: | |
- dev_common | |
- java_common | |
files: | |
"/opt": | |
- "http://apache.mirror.aussiehq.net.au//maven/binaries/apache-maven-3.0.3-bin.tar.gz" | |
- "http://bit.ly/pYsNJV" | |
packages: |
This file contains 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
# Logfile created on Mon Jun 27 21:21:26 -0400 2011 by logger.rb/22285 | |
D, [2011-06-27T21:21:26.810527 #869] DEBUG -- : Launching new build... | |
T, [2011-06-27T21:21:26.850591 #869] TRACE -- : Used configuration: --- !map:BoxGrinder::Config | |
:file: /root/.boxgrinder/config | |
:force: true | |
:platform_config: {} | |
:log_level: :info | |
:delivery_config: {} |
NewerOlder