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
| license: gpl-3.0 |
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
| # Mastery of Vimscript | |
| A student enquired of Master Wq, "When will I know I have mastered Vimscript?" | |
| Master Wq answered, "When you never use it." |
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 arr = ['a', 'b', 'c']; | |
| for (const [index, elem] of arr.entries()) { | |
| console.log(`index = ${index}, elem = ${elem}`); | |
| } |
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
| -------------------------------- | |
| BASICS | |
| -------------------------------- | |
| i / insert | |
| u / Undo | |
| <ctrl-r> / Redo | |
| :q / quit | |
| :q! / force |
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
| /** | |
| * Attempt for Chrome-style gears with SVG and CSS animations | |
| */ | |
| body { | |
| background-color: #ccc; | |
| } | |
| @keyframes spin { | |
| to { | |
| stroke-dashoffset: -100; |
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
| git log --tags --simplify-by-decoration --pretty="format:%ai %d" |
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
| import name from "module-name"; | |
| import * as name from "module-name"; | |
| import { member } from "module-name"; | |
| import { member as alias } from "module-name"; | |
| import { member1 , member2 } from "module-name"; | |
| import { member1 , member2 as alias2 , [...] } from "module-name"; | |
| import defaultMember, { member [ , [...] ] } from "module-name"; | |
| import defaultMember, * as alias from "module-name"; | |
| import defaultMember from "module-name"; | |
| import "module-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
| $ git log -80 --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges | grep -v 'chef' |
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
| // example using the raf module from npm. try changing some values! | |
| var requestAnimationFrame = require("raf") | |
| var canvas = document.createElement("canvas") | |
| canvas.width = 500 | |
| canvas.height = 500 | |
| document.body.appendChild(canvas) | |
| var context = canvas.getContext("2d") |
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
| /* Pounding heart animation */ | |
| @keyframes pound { | |
| to { transform: scale(1.4); } | |
| } | |
| .heart { | |
| display: inline-block; | |
| font-size: 150px; | |
| color: #e00; |
NewerOlder