- Create a folder source\scss\compiled-custom
- Move custom.template.scss to source\scss\compiled-custom
- Run "npm install jit-grunt --save-dev"
- Run "npm install grunt-string-replace --save-dev"
- Copy "config.rb" to the root
- Replace the code in "gruntfile.js"
- Run "compass watch"
- Run "grunt sass"
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 l = console.log; | |
| chai.should(); | |
| mocha.setup('bdd'); | |
| // Pre-config ⇡⇡⇡⇡⇡ | |
| class MoneyTracker { | |
| constructor() { | |
| this.income = []; |
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
| function triangle (width, symbol = '#') { | |
| width > 0 ? (console.log(symbol), triangle(width-1, symbol+symbol[0])) : null ; | |
| } |
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
| function power (num, pow) { | |
| return (pow === 0) ? 1 : num * power(num, pow-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
| String.prototype.renderize = function (type, className, idName) { | |
| return typeof type != 'undefined' ? | |
| `<${type}${ typeof className != 'undefined' ? ' class=\'' + className + '\'' : '' }${typeof idName != 'undefined' ? ' id=\'' + idName + '\'' : ''}> ${this} </${type}>` | |
| : new Error ('Unspecified HTML DOM element type (1st argument)') | |
| } | |
| String.prototype.render = function (type, className, idName) { | |
| document.write(this.renderize(type,className,idName)) | |
| } |
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
| let student = { | |
| init: function (name, field, year) { | |
| let instance = Object.create(this) | |
| instance.name = name | |
| instance.field = field | |
| instance.year = year | |
| return instance | |
| } | |
| } |
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
| function addXNumbers () { | |
| let numbers = Array.prototype.slice.call(arguments) | |
| return numbers.reduce((acc, current) => acc + current) | |
| } |