- Bring up the Command Palette with ⌘+⇧+P
- Type "Configure User Snippets".
- Select "New Global Snippets file".
- Name it whatever you want.
- Paste in the contents of the
.code-snippets
file in this gist.
- Bring up the Command Palette with ⌘+⇧+P
const fs = require('fs'); | |
const path = require('path'); | |
function findFiles(startPath,filter,callback){ | |
if (!fs.existsSync(startPath)){ | |
console.log("Gosh, can't seem to find what you're looking for, my friend! Try a different startPath"); | |
return; | |
} | |
const files=fs.readdirSync(startPath); | |
for (let currentFilePath of files) { |
@import url("https://rsms.me/inter/inter.css"); | |
$color--primary: #030303; | |
$color--accent: #FF0080; | |
$color--background: #fefefe; | |
@mixin inter { | |
font-family: "Inter", sans-serif; | |
@supports (font-variation-settings: normal) { | |
font-family: "Inter var", sans-serif; | |
} | |
} |
// @ts-check | |
/** | |
* @return {String} | |
*/ | |
const someFunc = () => { | |
return 4; // err in VSCode: "Type '4' is not assignable to type 'String' | |
} | |
someFunc('test'); // err in VSCode: "Expected 0 args but got 1" |
{"timestamp":1566339845792,"data":{"ace":[{"timestamp":1566339845792,"stars":36,"forks":6,"issues":0,"repo":"https://github.com/botanicus/ace","updated":"2019-08-13T14:37:58Z","data":{"id":1009145,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA5MTQ1","name":"ace","full_name":"botanicus/ace","private":false,"owner":{"login":"botanicus","id":6171,"node_id":"MDQ6VXNlcjYxNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/6171?v=4","gravatar_id":"","url":"https://api.github.com/users/botanicus","html_url":"https://github.com/botanicus","followers_url":"https://api.github.com/users/botanicus/followers","following_url":"https://api.github.com/users/botanicus/following{/other_user}","gists_url":"https://api.github.com/users/botanicus/gists{/gist_id}","starred_url":"https://api.github.com/users/botanicus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botanicus/subscriptions","organizations_url":"https://api.github.com/users/botanicus/orgs","repos_url":"https://api.github.com/users/botanicus/rep |
*, *:before, *:after { box-sizing: border-box; } |
I hereby claim:
To claim this, I am signing this object:
// This is meant to be a Vue component, cause my site https://henry.codes is built with Nuxt.js. I put the .js extension on there for that fresh Gist syntax highlighting. | |
export default { | |
computed: { | |
postDate() { | |
return new Date(this.post.fields.publishDate).toLocaleDateString("en-US", { month: "short", year: "2-digit" }); | |
} | |
} | |
}; |
$bkpoints: ( | |
xs: 27rem, | |
sm: 37.5rem, | |
md: 56.25rem, | |
lg: 62.5rem, | |
xl: 120rem | |
); | |
// ^ This was for a particular client, you can use whichever | |
breakpoints are best for your use case. |
[...document.querySelectorAll('a')].forEach(a => a.remove()); | |
// ⚓️ anchors away |