Awesome Javascript cloth simulation
A Pen by GARCIA Guillaume on CodePen.
Awesome Javascript cloth simulation
A Pen by GARCIA Guillaume on CodePen.
| *----------------------------------------------------------------------* | |
| * CLASS json_util DEFINITION | |
| *----------------------------------------------------------------------* | |
| class json_util definition. | |
| public section. | |
| class-methods: | |
| data_to_json importing data type any | |
| returning value(json) type string, | |
| json_to_data importing json type string | |
| changing data type any. |
| *----------------------------------------------------------------------* | |
| * CLASS json_util DEFINITION | |
| *----------------------------------------------------------------------* | |
| class json_util definition. | |
| public section. | |
| class-methods: | |
| data_to_json importing data type any | |
| returning value(json) type string, | |
| json_to_data importing json type string | |
| changing data type any. |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| box-shadow: none; | |
| outline: none; | |
| } | |
| html, body { height: 100%; } |
| <html> | |
| <!-- Original: http://www.wenda.io/questions/2410986/sapui5-showing-pie-chart-or-bar-chart-using-odata-service-from-hana-db.html --> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <title>Flattened DataSet bound to OData Entity with filter</title> | |
| <link rel="stylesheet" type="text/css" href=""> | |
| <script id="sap-ui-bootstrap" src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js" type="text/javascript" |
| $contrasted-default-dark: #000; | |
| $contrasted-default-light: #fff; | |
| @mixin contrasted($bg, $dark:$contrasted-default-dark, $light:$contrasted-default-light){ | |
| background-color: $bg; | |
| color: get_contrast_yiq($bg, $dark, $light); | |
| } |
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'Par exemple pour être à l'aise avant un JS Total ou un Node.js.
On parle ici du langage pur.
Le cours JavaScript de Codecademy (hors "Objects I/II") : http://www.codecademy.com/fr/tracks/javascript
Le guide JavaScript du MDN, chapitres 1 à 10 : https://developer.mozilla.org/fr/docs/JavaScript/Guide
| function getWatchers(root) { | |
| root = angular.element(root || document.documentElement); | |
| var watcherCount = 0; | |
| function getElemWatchers(element) { | |
| var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
| var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
| var watchers = scopeWatchers.concat(isolateWatchers); | |
| angular.forEach(element.children(), function (childElement) { | |
| watchers = watchers.concat(getElemWatchers(angular.element(childElement))); |