const in JS => val
function in JS => def
| FB.getLoginStatus(function(response) { | |
| if (response.status === 'connected') { | |
| var accessToken = response.authResponse.accessToken; | |
| } | |
| } ); |
| static-html-server -p [port] -r [root folder] -f [fallback path if not found] |
| GET /v2.6/{user-id}/accounts HTTP/1.1 | |
| Host: graph.facebook.com |
| <div class="myApp" ng-controller="myAppCtrl"> | |
| <form ng-submit="sendData"> | |
| <h3>Ten Cua ban</h3> | |
| <input type="text" ng-model="fields.name"> | |
| </form> | |
| </div> | |
| <style> | |
| .myApp { | |
| background-color: green; | |
| } |
| [ | |
| { | |
| data1: abc, | |
| data2: abc | |
| }, | |
| { | |
| data1: def, | |
| data2: def | |
| }, | |
| { |
const in JS => val
function in JS => def
| "use strict" | |
| class EventEmitter { | |
| constructor() { | |
| this.listener = [] | |
| } | |
| addListener(event, listener) { | |
| if (this.listener[event]) { | |
| this.listener[event].push(listener) | |
| } else { | |
| this.listener[event] = Array(listener) |
| <?php | |
| function _curl($url, $post = "", $cookie, $ref) | |
| { | |
| $ch = curl_init(); | |
| if ($post) { | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $post); | |
| } | |
| if ($cookie) { | |
| curl_setopt($ch, CURLOPT_COOKIE, $cookie); |
| {"v":"5.5.8","fr":60,"ip":0,"op":240,"w":1000,"h":1000,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Layer 14","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":153,"s":[0]},{"t":223,"s":[160]}],"ix":10},"p":{"a":0,"k":[553.471,524.289,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":153,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":186,"s":[511.29,511.29,100]},{"t":223,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[0,-10.644],[1.985,-1.985],[10.644,0],[1.985,1.985],[0,10.644],[-1.985,1.985],[-10.644,0],[-1.985,-1.985]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty |
| const a = { | |
| foo: "bar" | |
| }; | |
| <Hello {...a} /> | |
| <Hello foo="bar" /> |