-
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
Showing
64 changed files
with
1,359 additions
and
58 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
Binary file not shown.
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 @@ | ||
<html><body><pre><script src = "goodparts1.js"></script></body></html> |
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,20 @@ | ||
document.writeln("hello"); | ||
|
||
function f() { | ||
var a = 6; | ||
document.writeln("in fn"); | ||
} | ||
|
||
f(); | ||
//document.writeln(a); // var a is private so this fails, if we remove var it'll work | ||
|
||
outer: for (var i = 0; i < 10; i++) { | ||
inner: for (var j = 0; j < 10; j++) { | ||
document.write(i + j); | ||
if (i == 2 && j == 2) | ||
break outer; | ||
} | ||
document.writeln(); | ||
} | ||
|
||
document.writeln(i); |
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,90 +1,104 @@ | ||
Emacs keyboard shortcuts | ||
|
||
Got to test file C-c, t | ||
Run test file C-c, v | ||
Find in Project M-n | ||
Run 1 test C-c, s | ||
Run full suite C-c, a | ||
|
||
FILE | ||
|
||
Open Ctrl-X, Ctrl-F | ||
Save Ctrl-X, Ctrl-S | ||
Save As Ctrl-X, Ctrl-W | ||
Save All Ctrl-X, S | ||
Revert to File Ctrl-X, Ctrl-V | ||
Revert Buffer Meta-X, revert-buffer | ||
Close Window/Buffer Ctrl-X, K | ||
Quit Ctrl-X, Ctrl-C | ||
Open Ctrl-X, Ctrl-F | ||
Save Ctrl-X, Ctrl-S | ||
Save As Ctrl-X, Ctrl-W | ||
Save All Ctrl-X, S | ||
Revert to File Ctrl-X, Ctrl-V | ||
Revert Buffer Meta-X, revert-buffer | ||
Close Window/Buffer Ctrl-X, K | ||
Quit Ctrl-X, Ctrl-C | ||
|
||
|
||
EDIT | ||
|
||
Undo Ctrl-_ | ||
Begin Selection Ctrl-SPC | ||
Cancel Selection Ctrl-G | ||
Cut Selection Ctrl-W | ||
Cut Line Ctrl-K | ||
Paste Ctrl-Y | ||
Copy Selection to Numbered Clipboard Ctrl-X R S [#] | ||
Paste from Numbered Clipboard Ctrl-X R I [#] | ||
Delete DEL | ||
Fwd Delete Ctrl-D | ||
Delete Word Meta-DEL | ||
Fwd Delete Word Meta-D | ||
Delete Line Ctrl-K | ||
Undo Ctrl-_ | ||
Begin Selection Ctrl-SPC | ||
Cancel Selection Ctrl-G | ||
Cut Selection Ctrl-W | ||
Copy Selection M-w | ||
Cut Line Ctrl-K | ||
Paste Ctrl-Y | ||
Copy Selection to Numbered Clipboard Ctrl-X R S [#] | ||
Paste from Numbered Clipboard Ctrl-X R I [#] | ||
Delete DEL | ||
Fwd Delete Ctrl-D | ||
Delete Word Meta-DEL | ||
Fwd Delete Word Meta-D | ||
Delete Line Ctrl-K | ||
|
||
|
||
CURSOR MOVEMENT | ||
|
||
FORWARD BACKWARD | ||
Word Meta-F Meta-B | ||
Line Ctrl-A Ctrl-E | ||
Paragraph Meta-{ Meta-} | ||
Page Ctrl-V Meta-V | ||
Document Meta-< Meta-> | ||
C Function Meta-Ctrl-A Meta-Control-E | ||
FORWARD BACKWARD | ||
character left right C-f C-b | ||
line up down C-n C-p | ||
Word Meta-F Meta-B | ||
Line Ctrl-A Ctrl-E | ||
Paragraph Meta-{ Meta-} | ||
Page Ctrl-V Meta-V | ||
Document Meta-< Meta-> | ||
C Function Meta-Ctrl-A Meta-Control-E | ||
|
||
|
||
SEARCH | ||
|
||
Incremental Search Ctrl-S | ||
Incremental Search Reverse Ctrl-R | ||
Regexp Inc Search Meta-Ctrl-S | ||
Regexp Inc Search Reverse Meta-Ctrl-R | ||
Interactive Search and Replace Meta-% | ||
Goto Line Number Meta-X goto-line | ||
Previous Matching Bracket Meta-Ctrl-B (or ESC Ctrl-B) | ||
Next Matching Bracket Meta-Ctrl-F (or ESC Ctrl-F) | ||
Incremental Search Ctrl-S | ||
Incremental Search Reverse Ctrl-R | ||
Regexp Inc Search Meta-Ctrl-S | ||
Regexp Inc Search Reverse Meta-Ctrl-R | ||
Interactive Search and Replace Meta-% | ||
Goto Line Number Meta-X goto-line | ||
Previous Matching Bracket Meta-Ctrl-B (or ESC Ctrl-B) | ||
Next Matching Bracket Meta-Ctrl-F (or ESC Ctrl-F) | ||
|
||
|
||
WINDOW | ||
|
||
Close Ctrl-X, K | ||
Next Window Ctrl-X, B | ||
Choose Window Ctrl-X, Ctrl-B | ||
Maximize Ctrl-X, 1 | ||
Split Horizontal Ctrl-X, 2 | ||
Split Vertical Ctrl-X, 3 | ||
Switch Focus Between Windows Ctrl-X, O | ||
Activate Menu Bar Meta-` | ||
Close Ctrl-X, K | ||
Next Window Ctrl-X, B | ||
Choose Window Ctrl-X, Ctrl-B | ||
Maximize Ctrl-X, 1 | ||
Split Horizontal Ctrl-X, 2 | ||
Split Vertical Ctrl-X, 3 | ||
Switch Focus Between Windows Ctrl-X, O | ||
Activate Menu Bar Meta-` | ||
|
||
TODO | ||
|
||
Show directory structure and navigate | ||
search whole directory | ||
search for file by name | ||
|
||
REGISTERS | ||
|
||
Copy Selection to Numbered Clipboard Ctrl-X R S [#] | ||
Paste from Numbered Clipboard Ctrl-X R I [#] | ||
Set Numbered Bookmark Ctrl-X R SPC [#] | ||
Jump to Numbered Bookmark Ctrl-X R J [#] | ||
Copy Selection to Numbered Clipboard Ctrl-X R S [#] | ||
Paste from Numbered Clipboard Ctrl-X R I [#] | ||
Set Numbered Bookmark Ctrl-X R SPC [#] | ||
Jump to Numbered Bookmark Ctrl-X R J [#] | ||
|
||
|
||
FORMATTING | ||
|
||
Re-flow Paragraph Meta-Q | ||
Indent Selection Meta-Control-\ | ||
Uppercase Word Meta-U | ||
Lowercase Word Meta-L | ||
Capitalize Word Meta-C | ||
Uppercase Selection Ctrl-X, Ctrl-U | ||
Lowercase Selection Ctrl-X, Ctrl-L | ||
Re-flow Paragraph Meta-Q | ||
Indent Selection Meta-Control-\ | ||
Uppercase Word Meta-U | ||
Lowercase Word Meta-L | ||
Capitalize Word Meta-C | ||
Uppercase Selection Ctrl-X, Ctrl-U | ||
Lowercase Selection Ctrl-X, Ctrl-L | ||
|
||
|
||
MACROS | ||
|
||
Start Recording Ctrl-X, ( | ||
Stop Recording Ctrl-X, ) | ||
Play Macro Ctrl-X, E | ||
Start Recording Ctrl-X, ( | ||
Stop Recording Ctrl-X, ) | ||
Play Macro Ctrl-X, E |
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,15 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile ~/.gitignore_global | ||
|
||
# Ignore bundler config | ||
/.bundle | ||
|
||
# Ignore the default SQLite database. | ||
/db/*.sqlite3 | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/*.log | ||
/tmp |
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,38 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rails', '3.2.6' | ||
|
||
# Bundle edge Rails instead: | ||
# gem 'rails', :git => 'git://github.com/rails/rails.git' | ||
|
||
gem 'sqlite3' | ||
|
||
|
||
# Gems used only for assets and not required | ||
# in production environments by default. | ||
group :assets do | ||
gem 'sass-rails', '~> 3.2.3' | ||
gem 'coffee-rails', '~> 3.2.1' | ||
|
||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', :platforms => :ruby | ||
|
||
gem 'uglifier', '>= 1.0.3' | ||
end | ||
|
||
gem 'jquery-rails' | ||
|
||
# To use ActiveModel has_secure_password | ||
# gem 'bcrypt-ruby', '~> 3.0.0' | ||
|
||
# To use Jbuilder templates for JSON | ||
# gem 'jbuilder' | ||
|
||
# Use unicorn as the app server | ||
# gem 'unicorn' | ||
|
||
# Deploy with Capistrano | ||
# gem 'capistrano' | ||
|
||
# To use debugger | ||
# gem 'debugger' |
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,111 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (3.2.6) | ||
actionpack (= 3.2.6) | ||
mail (~> 2.4.4) | ||
actionpack (3.2.6) | ||
activemodel (= 3.2.6) | ||
activesupport (= 3.2.6) | ||
builder (~> 3.0.0) | ||
erubis (~> 2.7.0) | ||
journey (~> 1.0.1) | ||
rack (~> 1.4.0) | ||
rack-cache (~> 1.2) | ||
rack-test (~> 0.6.1) | ||
sprockets (~> 2.1.3) | ||
activemodel (3.2.6) | ||
activesupport (= 3.2.6) | ||
builder (~> 3.0.0) | ||
activerecord (3.2.6) | ||
activemodel (= 3.2.6) | ||
activesupport (= 3.2.6) | ||
arel (~> 3.0.2) | ||
tzinfo (~> 0.3.29) | ||
activeresource (3.2.6) | ||
activemodel (= 3.2.6) | ||
activesupport (= 3.2.6) | ||
activesupport (3.2.6) | ||
i18n (~> 0.6) | ||
multi_json (~> 1.0) | ||
arel (3.0.2) | ||
builder (3.0.4) | ||
coffee-rails (3.2.2) | ||
coffee-script (>= 2.2.0) | ||
railties (~> 3.2.0) | ||
coffee-script (2.2.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.6.3) | ||
erubis (2.7.0) | ||
execjs (1.4.0) | ||
multi_json (~> 1.0) | ||
hike (1.2.3) | ||
i18n (0.6.4) | ||
journey (1.0.4) | ||
jquery-rails (3.0.4) | ||
railties (>= 3.0, < 5.0) | ||
thor (>= 0.14, < 2.0) | ||
json (1.8.0) | ||
mail (2.4.4) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
mime-types (1.23) | ||
multi_json (1.7.7) | ||
polyglot (0.3.3) | ||
rack (1.4.5) | ||
rack-cache (1.2) | ||
rack (>= 0.4) | ||
rack-ssl (1.3.3) | ||
rack | ||
rack-test (0.6.2) | ||
rack (>= 1.0) | ||
rails (3.2.6) | ||
actionmailer (= 3.2.6) | ||
actionpack (= 3.2.6) | ||
activerecord (= 3.2.6) | ||
activeresource (= 3.2.6) | ||
activesupport (= 3.2.6) | ||
bundler (~> 1.0) | ||
railties (= 3.2.6) | ||
railties (3.2.6) | ||
actionpack (= 3.2.6) | ||
activesupport (= 3.2.6) | ||
rack-ssl (~> 1.3.2) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (>= 0.14.6, < 2.0) | ||
rake (10.1.0) | ||
rdoc (3.12.2) | ||
json (~> 1.4) | ||
sass (3.2.9) | ||
sass-rails (3.2.6) | ||
railties (~> 3.2.0) | ||
sass (>= 3.1.10) | ||
tilt (~> 1.3) | ||
sprockets (2.1.3) | ||
hike (~> 1.2) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sqlite3 (1.3.7) | ||
thor (0.18.1) | ||
tilt (1.4.1) | ||
treetop (1.4.14) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.37) | ||
uglifier (2.1.2) | ||
execjs (>= 0.3.0) | ||
multi_json (~> 1.0, >= 1.0.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
coffee-rails (~> 3.2.1) | ||
jquery-rails | ||
rails (= 3.2.6) | ||
sass-rails (~> 3.2.3) | ||
sqlite3 | ||
uglifier (>= 1.0.3) |
Oops, something went wrong.