This document is still a scratch
You’ll want a directory to do this in so that you don’t screw up your machine.
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
| { | |
| /* | |
| * UI関係 | |
| */ | |
| // カラー&スキーマ | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", // カラー | |
| "theme": "Soda Dark.sublime-theme", // スキーマ | |
| // カーソルのスタイル ("smooth", "phase", "blink", "wide", "solid") | |
| "caret_style": "smooth", |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
質問はTwitterへ #RESTudy をつけてどうぞ。
以前に出てきた用語が多いので、理解が不安なときはその都度前のページを振り返って復習しながら進みましょう。
| // Bonfire: Title Case a Sentence | |
| // Author: @kkas | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-title-case-a-sentence# | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function titleCase(str) { | |
| var newStrAry = str.split(' ').map(function(word) { | |
| return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); | |
| }); | |
| // Bonfire: Return Largest Numbers in Arrays | |
| // Author: @kkas | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays# | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function largestOfFour(arr) { | |
| // You can do this! | |
| return arr.map(function(elemAry) { | |
| return elemAry.sort(function(a, b) { return a - b;})[elemAry.length - 1]; | |
| }); |
| // Bonfire: Confirm the Ending | |
| // Author: @kkas | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-confirm-the-ending# | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function end(str, target) { | |
| // "Never give up and good luck will find you." | |
| // -- Falcor | |
| var subStrAry, | |
| subLen, |
| // Bonfire: Repeat a string repeat a string | |
| // Author: @kkas | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-repeat-a-string-repeat-a-string# | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function repeat(str, num) { | |
| // repeat after me | |
| if (num < 0) { | |
| return ""; | |
| } |