-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft of switching the CoffeeScript Compiler over to camelCase.…
… Pour one on the ground for underscores...
- Loading branch information
Showing
57 changed files
with
1,244 additions
and
1,244 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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
launch() if ignition is on | ||
|
||
volume: 10 if band isnt spinal_tap | ||
volume: 10 if band isnt spinalTap | ||
|
||
let_the_wild_rumpus_begin() unless answer is no | ||
letTheWildRumpusBegin() unless answer is no | ||
|
||
if car.speed < speed_limit then accelerate() | ||
if car.speed < speedLimit then accelerate() | ||
|
||
print "My name is " + @name |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
task 'test', 'run each of the unit tests', -> | ||
for test in test_files | ||
for test in testFiles | ||
fs.readFile test, (err, code) -> eval coffee.compile code |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
mood: greatly_improved if singing | ||
mood: greatlyImproved if singing | ||
|
||
if happy and knows_it | ||
claps_hands() | ||
cha_cha_cha() | ||
if happy and knowsIt | ||
clapsHands() | ||
chaChaCha() | ||
|
||
date: if friday then sue else jill | ||
|
||
expensive: or do_the_math() | ||
expensive: or doTheMath() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
weather_report: (location) -> | ||
weatherReport: (location) -> | ||
# Make an Ajax request to fetch the weather... | ||
[location, 72, "Mostly Sunny"] | ||
|
||
[city, temp, forecast]: weather_report "Berkeley, CA" | ||
[city, temp, forecast]: weatherReport "Berkeley, CA" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
years_old: {max: 10, ida: 9, tim: 11} | ||
yearsOld: {max: 10, ida: 9, tim: 11} | ||
|
||
ages: for child, age of years_old | ||
ages: for child, age of yearsOld | ||
child + " is " + age |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bait: 1000 | ||
and_switch: 0 | ||
andSwitch: 0 | ||
|
||
[bait, and_switch]: [and_switch, bait] | ||
[bait, andSwitch]: [andSwitch, bait] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
countdown: num for num in [10..1] | ||
|
||
egg_delivery: -> | ||
eggDelivery: -> | ||
for i in [0...eggs.length] by 12 | ||
dozen_eggs: eggs[i...i+12] | ||
deliver new egg_carton(dozen) | ||
dozenEggs: eggs[i...i+12] | ||
deliver new eggCarton(dozen) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
num: 1 | ||
change_numbers: -> | ||
new_num: -1 | ||
changeNumbers: -> | ||
newNum: -1 | ||
num: 10 | ||
new_num: change_numbers() | ||
newNum: changeNumbers() |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
numbers: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | ||
|
||
three_to_six: numbers[3..6] | ||
threeToSix: numbers[3..6] | ||
|
||
numbers_copy: numbers[0...numbers.length] | ||
numbersCopy: numbers[0...numbers.length] | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
lottery.draw_winner()?.address?.zipcode | ||
lottery.drawWinner()?.address?.zipcode |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
switch day | ||
when "Mon" then go_to_work() | ||
when "Tue" then go_to_the_park() | ||
when "Thu" then go_ice_fishing() | ||
when "Mon" then goToWork() | ||
when "Tue" then goToThePark() | ||
when "Thu" then goIceFishing() | ||
when "Fri", "Sat" | ||
if day is bingo_day | ||
go_to_bingo() | ||
go_dancing() | ||
when "Sun" then go_to_church() | ||
else go_to_work() | ||
if day is bingoDay | ||
goToBingo() | ||
goDancing() | ||
when "Sun" then goToChurch() | ||
else goToWork() |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
try | ||
all_hell_breaks_loose() | ||
cats_and_dogs_living_together() | ||
allHellBreaksLoose() | ||
catsAndDogsLivingTogether() | ||
catch error | ||
print error | ||
finally | ||
clean_up() | ||
cleanUp() |
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.
e14f4c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh noes! It's all gone camely.
e14f4c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHY?
e14f4c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://github.com/jashkenas/coffee-script/issues/issue/425