forked from JustinBeckwith/OrangeBits
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d4d101
commit ee8280c
Showing
24 changed files
with
417 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
/* ------------------------------------------------------------------------- | ||
* !!! AUTOMATICALLY GENERATED CODE !!! | ||
* ------------------------------------------------------------------------- | ||
* This file was automatically generated by the OrangeBits compiler. | ||
* Compiled on: 7/19/2012 1:39:40 PM | ||
* Compiled by: REDMOND\justbe | ||
* Source: C:\Users\justbe\Dropbox\Code\OrangeBits\Demo\ignore\coffeeScriptTest.coffee | ||
* -------------------------------------------------------------------------*/ | ||
|
||
|
||
var cubes, list, math, num, number, opposite, race, square; | ||
var __slice = Array.prototype.slice; | ||
|
||
number = 42; | ||
|
||
opposite = true; | ||
|
||
if (opposite) number = -42; | ||
|
||
square = function(x) { | ||
return x * x; | ||
}; | ||
|
||
list = [1, 2, 3, 4, 5]; | ||
|
||
math = { | ||
root: Math.sqrt, | ||
square: square, | ||
cube: function(x) { | ||
return x * square(x); | ||
} | ||
}; | ||
|
||
race = function() { | ||
var runners, winner; | ||
winner = arguments[0], runners = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
return print(winner, runners); | ||
}; | ||
|
||
if (typeof elvis !== "undefined" && elvis !== null) alert("I knew it!"); | ||
|
||
cubes = (function() { | ||
var _i, _len, _results; | ||
_results = []; | ||
for (_i = 0, _len = list.length; _i < _len; _i++) { | ||
num = list[_i]; | ||
_results.push(math.cube(num)); | ||
} | ||
return _results; | ||
})(); | ||
|
||
setTimeout(function() { | ||
return document.getElementsByClassName('coffeeBox')[0].innerHTML = 'hello from the world of coffeeScript!!!'; | ||
}, 1500); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
/* ------------------------------------------------------------------------- | ||
* !!! AUTOMATICALLY GENERATED CODE !!! | ||
* ------------------------------------------------------------------------- | ||
* This file was automatically generated by the OrangeBits compiler. | ||
* Compiled on: 7/19/2012 1:39:30 PM | ||
* Compiled by: REDMOND\justbe | ||
* Source: C:\Users\justbe\Dropbox\Code\OrangeBits\Demo\ignore\sassTest.sass | ||
* -------------------------------------------------------------------------*/ | ||
|
||
|
||
.sassBox { | ||
background-color: #caeef2; | ||
border-color: #3bbfce; | ||
color: #2ca2af; | ||
padding: 8px; | ||
margin: 8px; } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.sassBox{background-color:#caeef2;border-color:#3bbfce;color:#2ca2af;padding:8px;margin:8px} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Assignment: | ||
number = 42 | ||
opposite = true | ||
|
||
# Conditions: | ||
number = -42 if opposite | ||
|
||
# Functions: | ||
square = (x) -> x * x | ||
|
||
# Arrays: | ||
list = [1, 2, 3, 4, 5] | ||
|
||
# Objects: | ||
math = | ||
root: Math.sqrt | ||
square: square | ||
cube: (x) -> x * square x | ||
|
||
# Splats: | ||
race = (winner, runners...) -> | ||
print winner, runners | ||
|
||
# Existence: | ||
alert "I knew it!" if elvis? | ||
|
||
# Array comprehensions: | ||
cubes = (math.cube num for num in list) | ||
|
||
|
||
# show off some coffee in the browser test | ||
setTimeout(() -> | ||
document.getElementsByClassName('coffeeBox')[0].innerHTML = 'hello from the world of coffeeScript!!!' | ||
, 1500); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$blue: #3bbfce | ||
$margin: 16px | ||
|
||
.sassBox | ||
background-color: lighten($blue, 35%) | ||
border-color: $blue | ||
color: darken($blue, 9%) | ||
padding: $margin / 2 | ||
margin: $margin / 2 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$red: #FF0000; | ||
$margin: 16px; | ||
|
||
.scssBox { | ||
background-color: lighten($red, 45%); | ||
border-color: $red; | ||
color: darken($red, 9%); | ||
padding: $margin / 2; | ||
margin: $margin / 2; | ||
} |
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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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 file was deleted.
Oops, something went wrong.
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 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 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
Oops, something went wrong.