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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Draw SVG stroke</title> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css"/> | |
| <style> | |
| .content { | |
| max-width: 800px; |
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
| <!DOCTYPE html> | |
| <html ng-app="myApp" ng-controller="myApp.myCtrl"> | |
| <head> | |
| <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.js"></script> | |
| <meta charset="utf-8"> | |
| <title>AngularJS: Isolated scope and function parameter</title> | |
| </head> | |
| <body> | |
| <h1>AngularJS: Isolated scope and function parameter</h1> | |
| <a href="http://jsbin.com/qeqezaqaxo/4/edit?html,js,console">see at jsBin</a> |
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 square = x => x * x; | |
| let triangleArea = (a, h) => a*h/2; | |
| let triangleHeron = (a, b, c) => { | |
| let p = (a + b + c)/2; | |
| return Math.sqrt(p*(p-a)*(p-b)*(p-c)); | |
| }; | |
| let objectify = x => ({ value: x }); |
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
| # /config/environments/development.rb | |
| config.generators.assets = false | |
| config.generators.helper = false | |
| config.generators.view_specs = false | |
| config.generators.helper_specs = false |
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 match<T, S>(value: T) { | |
| let result: ()=>S; | |
| const context = { | |
| caseOf(fn:(value: T) => boolean, payload: ()=>S) { | |
| if (!result && fn(value)) result = payload; | |
| return context; | |
| }, | |
| _(payload: ()=>S) { | |
| if (!result) result = payload; | |
| return context; |
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 cssnext = require("cssnext"); | |
| const fs = require("fs"); | |
| const watch = require("node-watch"); | |
| const program = require("commander"); | |
| program | |
| .version("0.0.1") | |
| .option("-s, --source [path]", "Source file") | |
| .option("-d, --destination [path]", "Destination file") | |
| .option("-w, --watch [path]", "Watch directory") |
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
Show hidden characters
| { | |
| "extends": "airbnb", | |
| "parser": "babel-eslint", | |
| "settings": { | |
| "import/resolver": { | |
| "webpack": { "config": "./webpack/webpack.prod.config.js" } | |
| } | |
| }, | |
| "rules": { | |
| "quotes": ["error", "double"], |
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 hi() { | |
| console.log(`Hi ${this.name}!`); | |
| } | |
| function by() { | |
| console.log(`By ${this.name}!`); | |
| } | |
| function mixin(fn, name = fn.name) { | |
| return target => { |
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
| root=true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
OlderNewer