For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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 *fibonacci(amount = 0) { | |
| let counter = 0; | |
| let [prev, next] = [1, 0]; | |
| while(counter < amount) { | |
| yield next; | |
| [prev, next] = [next, prev + next]; | |
| counter++; | |
| } |
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
| chainWebpack(config, { webpack }) { | |
| config.module.rule('graphql-tag') | |
| .test(/\.(graphql|gql)$/) | |
| .use('raw') | |
| .loader('graphql-tag/loader') | |
| }, |
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
| // This works only till num = 64 | |
| function isPrime(num) { | |
| if(num > 1) { | |
| const accum = [1]; | |
| for (let i = 0; i < num; accum[0] = -accum[0], i++) { | |
| accum[1 + i] = 1; | |
| for (let j = i; j > 0; j--) { | |
| accum[j] = accum[j - 1] - accum[j]; |
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
| /* Balsamic regular */ | |
| @font-face { | |
| font-family: "BalsamicSans"; | |
| src: url("./BalsamiqSans-Regular.ttf") format('truetype'); | |
| font-weight: 400; | |
| font-style: normal; | |
| } | |
| /* Balsamic regular italic */ |
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
| { | |
| "window.zoomLevel": 0, | |
| "breadcrumbs.enabled": true, | |
| "editor.renderControlCharacters": false, | |
| "editor.renderWhitespace": "all", | |
| "workbench.colorTheme": "Miami", | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.formatOnSave": true |
- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.gitsudo nano ~/.bash_profile
- Add
export PATH=/path/to/depot_tools:"$PATH"(it's important that depot_tools comes first here)
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 GUID = () => { // GUID unique ID getter | |
| return ((((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + "-" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + "-4" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1).substr(0, 3) + "-" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + "-" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1) + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)).toLowerCase(); | |
| }; |
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 () { | |
| _.map($('[data-widget-collection=data-widget-collection]'), function (node) { | |
| let observer = new MutationObserver(function (mutations) { | |
| mutations.forEach(function (mutation) { | |
| if (mutation.addedNodes.length) { | |
| console.log(mutation); | |
| } | |
| }); | |
| }); |
NewerOlder