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 rand(min, max) { | |
| min = Math.ceil(min); | |
| max = Math.floor(max); | |
| return Math.floor(Math.random() * (max - min)) + min; | |
| } | |
| function placeRandom(field) { | |
| field[rand(0, 16)] = rand(0, 100) > 50 ? 2 : 4; | |
| } |
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
| > diskutil list | |
| /dev/disk0 (internal): | |
| #: TYPE NAME SIZE IDENTIFIER | |
| 0: GUID_partition_scheme 251.0 GB disk0 | |
| 1: EFI EFI 314.6 MB disk0s1 | |
| 2: Apple_CoreStorage Macintosh HD 250.0 GB disk0s2 | |
| 3: Apple_Boot Recovery HD 650.0 MB disk0s3 | |
| /dev/disk1 (internal, virtual): | |
| #: TYPE NAME SIZE IDENTIFIER |
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
| [{"category":"category","counter":0,"name":"Product name 1","cost":1999,"sku":[{"id":"string","name":"string","size":2,"cost":2,"description":"string","createdAt":"2017-12-24T18:18:17.271Z"}]},{"category":"category","counter":0,"name":"Product name 1","cost":2400,"sku":[{"id":"string","name":"string","size":2,"cost":2,"description":"string","createdAt":"2017-12-24T18:18:17.271Z"}]}] |
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 setNameAsync(setName) { | |
| // how do you set a name after 2sec. pause ? | |
| setTimeout(setName, 2000); | |
| } | |
| const user = { | |
| name: 'Bill', | |
| setName: function(name) { | |
| this.name = name; |
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
| /* | |
| 1. find pages with 'voj-page-outlet' mension -> get html files | |
| 2. take it's controllers -> get ts files | |
| 3. find class names -> get class name | |
| 4. find navigation nodes with class names -> get files related to navigation nodes | |
| 5. append hasFullHeightContent to navigation nodes | |
| */ | |
| const path = require('path'); | |
| const fs = require('fs'); |
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 calc(_sheet) { | |
| const ROW_OFFSET = 2; | |
| const COL_OFFSET = 2; | |
| const VALUE_COLS_COUNT = 6; | |
| /** | |
| * @type {Sheet} | |
| */ | |
| const sheet = _sheet || SpreadsheetApp.getActiveSheet(); | |
| /** |
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
| <div id="exercise"> | |
| <!-- 1) Start the Effect with the Button. The Effect should alternate the "highlight" or "shrink" class on each new setInterval tick (attach respective class to the div with id "effect" below) --> | |
| <div> | |
| <button @click="startEffect">Start Effect</button> | |
| <div id="effect" :class="effect"></div> | |
| </div> | |
| <!-- 2) Create a couple of CSS classes and attach them via the array syntax --> | |
| <div :class="classes">I got no class :(</div> | |
| <!-- 3) Let the user enter a class (create some example classes) and attach it --> | |
| <div> |
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
| [{ | |
| "id": "ec546d97-f12e-425d-8e95-908cdf693c4b", | |
| "first_name": "Davie", | |
| "last_name": "Castleton", | |
| "email": "dcastleton0@google.es", | |
| "ip_address": "17.202.182.11" | |
| }, { | |
| "id": "4547b224-1d97-4bf1-b62a-74500b01d6f7", | |
| "first_name": "Miguel", | |
| "last_name": "Cornall", |
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
| [ | |
| { | |
| "key": "ctrl+alt+down", | |
| "command": "editor.action.moveLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+alt+up", | |
| "command": "editor.action.moveLinesUpAction", | |
| "when": "editorTextFocus && !editorReadonly" |
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
| *,blockquote,body,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,html,input,label,li,ol,p,pre,td,th,ul { | |
| margin: 0; | |
| padding: 0 | |
| } | |
| table { | |
| border-collapse: collapse; | |
| border-spacing: 0 | |
| } |