This file contains hidden or 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
| const factorial = (num) => { | |
| return num === 0 ? 1 : num * factorial(num-1) | |
| } |
This file contains hidden or 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
| // Place your settings in the file "Packages/User/Preferences.sublime-settings", | |
| // which overrides the settings in here. | |
| // | |
| // Settings may also be placed in syntax-specific setting files, for | |
| // example, in Packages/User/Python.sublime-settings for python files. | |
| { | |
| // Sets the colors used within the text area | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| // Note that the font_face and font_size are overridden in the platform |
This file contains hidden or 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
| // Place your settings in the file "Packages/User/Preferences.sublime-settings", | |
| // which overrides the settings in here. | |
| // | |
| // Settings may also be placed in syntax-specific setting files, for | |
| // example, in Packages/User/Python.sublime-settings for python files. | |
| { | |
| // Sets the colors used within the text area | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| // Note that the font_face and font_size are overridden in the platform |
This file contains hidden or 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
| { | |
| "color_scheme": "Packages/Color Scheme - Default/iPlastic.tmTheme", | |
| "font_size": 16, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "rulers": | |
| [ | |
| 70 |
This file contains hidden or 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
| // creates the data object for the grid table to view | |
| // takes a single args object with width, height, rowCount and colCount properties | |
| function gridData(args) { | |
| var data = new Array(); | |
| var xpos = 1; //starting xpos and ypos at 1 so the stroke will show when we make the grid below | |
| var ypos = 1; | |
| var width = args.width; | |
| var height = args.height; | |
| var rowCount = args.rowCount; |
This file contains hidden or 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
| var myarr = [ | |
| {wk:1, mos:"Jan", day:"Mon",date:10,year:2017}, | |
| {wk:1, mos:"Jan", date:9, year:2017}, | |
| {wk:52, mos:"Jan", date:5, year:2018}, | |
| {wk:1, mos:"Jan", date:7, year:2017}, | |
| {wk:1, mos:"Mar", year:2017}, | |
| {wk:2, mos:"Jan", year:2018}, | |
| {wk:3, mos:"Feb",date:22, year:2017}, | |
| {wk:2,mos:"Feb",date:17, year:2017}, | |
| {wk:1, mos:"Feb", date:28, year:2017} |
This file contains hidden or 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
| var React = require('react'); | |
| var Runner = React.createClass({ | |
| propTypes: { | |
| message: React.PropTypes.string.isRequired, | |
| style: React.PropTypes.object.isRequired, | |
| isMetric: React.PropTypes.bool.isRequired, | |
| miles: React.PropTypes.number.isRequired, | |
| milesToKM: React.PropTypes.func.isRequired, | |
| races: React.PropTypes.array.isRequired |
This file contains hidden or 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
| var React = require('react'); | |
| var ReactDOM = require('react-dom'); | |
| var Input = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| userInput:"" | |
| }; | |
| }, |
This file contains hidden or 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
| "use strict()"; | |
| // make a phoneBook object | |
| var phoneBook = {}; | |
| // add some people objects | |
| phoneBook.bob= {name:"Bob",age:35}; | |
| phoneBook.greg= {name:"Greg",age:27}; | |
| phoneBook.nancy= {name:"Nancy", age:65}; |
This file contains hidden or 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
| "use strict()"; | |
| // make a phoneBook object | |
| var phoneBook = {}; | |
| // add some people objects | |
| phoneBook.bob= {name:"Bob",age:35}; | |
| phoneBook.greg= {name:"Greg",age:27}; | |
| phoneBook.nancy= {name:"Nancy", age:65}; |