Instead of
{
"editor.fontLigatures" = true;
"editor.inlayHints.enabled" = "offUnlessPressed";
"editor.inlayHints.fontSize" = 12;
}
I want to be able to write
import qs from 'npm:qs'; | |
/* | |
ex: | |
var config = { | |
server:'http://example.org', | |
path:'/sites/all/modules/civicrm/extern/rest.php', | |
key:'your key from settings.civicrm.php', | |
api_key:'the user key' | |
}; |
// Adapt all occurrences of `EXAMPLE.org` and `REPLACEME` with the correct values | |
D("EXAMPLE.org", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER), | |
// other records - e.g. | |
//A("@", "1.2.3.4"), | |
//////////// | |
// MIGADU // | |
//////////// | |
TXT("@", "hosted-email-verify=REPLACEME"), |
#!/usr/bin/env bash | |
set -euo pipefail | |
# Docs: https://direnv.net/ | |
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then | |
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=" | |
fi | |
nix_direnv_watch_file devenv.nix |
Instead of
{
"editor.fontLigatures" = true;
"editor.inlayHints.enabled" = "offUnlessPressed";
"editor.inlayHints.fontSize" = 12;
}
I want to be able to write
import React, { FC, useState } from 'react'; | |
const Component = () => { | |
const [barFoo, setBarFoo] = useState(1); | |
return <Foo bar={[barFoo, setBarFoo]} />; | |
}; | |
const Foo: FC<{ bar: StateRef<number> }> = ({ ...state }) => { | |
const [bar, setBar] = state.bar; | |
return <div />; |
const _ = require('lodash') | |
const sanitize = str => _.chain(str) | |
.replace(/[^A-Za-z0-9&.-]/g, '-') // sanitise via whitelist of characters | |
.replace(/-(?=-)/g, '') // remove repeated dashes - https://regexr.com/6ag8h | |
.trim('-') // trim any leading/trailing dashes | |
.truncate({ | |
length: 40, // max length | |
omission: '-' // when the string ends with '-', you'll know it was truncated | |
}) |
# basic bash command | |
wget $(curl -s https://api.github.com/repos/filiph/linkcheck/releases/latest \ | |
| jq -r '.assets | .[] | select(.name|contains("linux-x64.tar.gz")) | .browser_download_url') |
const gulp = require('gulp') | |
const rename = require('gulp-rename') | |
const sharp = require('sharp') | |
var useAsync = require('gulp-use').async | |
export default function convertImages () { | |
return gulp | |
.src('static/original/uploads/*.*') | |
.pipe(useAsync(async function (file, next) { | |
try { |
You (brian) are allowed to change the cleaning code, but nothing else.
Can you reach the throne?
I hereby claim:
To claim this, I am signing this object: