Skip to content

Instantly share code, notes, and snippets.

@sethidden
sethidden / azuredevops-component-library-demo.md
Last active Feb 8, 2022
AzureDev Ops - hosting and consuming a design system package
View azuredevops-component-library-demo.md
@sethidden
sethidden / vscode-initializeparams.js
Created Nov 23, 2021
Initialzie params that get passed to onInitialize in vscode-languageserver-node
View vscode-initializeparams.js
params = {
trace: "verbose",
workspaceFolders: [
{
uri: "file:///home/artur/dev/classattr",
name: "/home/artur/dev/classattr",
},
],
capabilities: {
window: {
@sethidden
sethidden / index.js
Last active Oct 16, 2021
normalize objects using ramda
View index.js
const R = require('ramda')
module.exports.normalize = R.pipe(
R.indexBy(R.prop('id')),
R.map(R.omit(['id']))
)
/*
module.exports.normalize = R.pipe(
R.map(
R.pipe(
@sethidden
sethidden / surfingkeysrc.js
Last active Jun 27, 2021
surfingkeysrc.js
View surfingkeysrc.js
mapkey('yb', 'Copy azure devops pr branch', () => {
const branchName = document.querySelector('.pr-header-branches > .bolt-link');
Clipboard.write(branchName.text);
});
mapkey('y%', 'Copy current page url', () => Clipboard.write(window.location.href))
map('H', 'S');
map('L', 'D');
map('<Space>q', 'x');
@sethidden
sethidden / azure-pipelines.yaml
Last active Jun 17, 2021
Pipeline for auto-publishing npm package on each new PR
View azure-pipelines.yaml
steps:
- task: Npm@1
displayName: Install deps
inputs:
command: ci
- task: Npm@1
displayName: Build lib
inputs:
command: custom
customCommand: run build
@sethidden
sethidden / repro.scss
Last active Apr 17, 2021
tree-sitter-scss breaking when used with tree-sitter-vue
View repro.scss
.sofar-sogood {
color: red;
}
//oops
$variableandor: red;
$dont-use-or-in-variable-names: red;
$dont-use-and-in-variable-names: red;
// https://sass-lang.com/documentation/values/booleans
@debug true and false or false or true;
@sethidden
sethidden / tonyhawktricks.txt
Created Feb 12, 2021
Tony Hawk's Underground tricks scrapped from ROM image (probably incomplete?)
View tonyhawktricks.txt
360 Flip Tail Grab
Flamingo
Samba Flip
360 Varial McTwist
Barrel Roll
Indy 900
Sit Down Air
Chomp On This
360 Ghetto Bird
Back Spin Air
View ProjectsTable.vue
<template>
<table class="table">
<thead class="table__head">
<tr>
<TableHeader v-for="{ text } in headers" v-text="text" :key="text" />
</tr>
</thead>
<tbody class="table__body">
<tr v-for="item in itemsFormatted" :key="item.id">
<td v-text="item.name" />
@sethidden
sethidden / webpack.config.js
Created Oct 10, 2020
storybook webpack.config.js for vue projec that uses <style module="style" lang="scss"> and <style lang="scss"> interchangeably
View webpack.config.js
// .storybook/webpack.config.js
module.exports = ({ config }) => {
config.module.rules.push({
test: /\.scss$/,
oneOf: [
{
resourceQuery: /module/,
use: [
'vue-style-loader',
{
View launch.json
{
// Vue chrome debug config from: https://github.com/microsoft/vscode-recipes/tree/master/vuejs-cli
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "default: chrome",
"url": "http://localhost:8089",
"webRoot": "${workspaceFolder}/src",