Apply:
git stash apply
Unapply:
git stash show -p|git apply --reverse
# Styling | |
# Import-Module posh-git | |
# Import-Module oh-my-posh | |
# Set-Theme Robbyrussell | |
# See: https://github.com/felixrieseberg/windows-development-environment | |
# Increase history | |
$MaximumHistoryCount = 10000 |
const pipe = (...fns: Function[]) => (x: any) => | |
fns.reduce((v: any, f: Function) => f(v), x); | |
const chunker = (n: number) => (acc: any[], c: any, i: number): any[][] => { | |
(acc[(i / n) | 0] = acc[(i / n) | 0] || []).push(c); | |
return acc; | |
}; | |
const multiplyBy = (n: number) => (x: number[]): number[] => | |
x.map((v) => v * n); |
#!/usr/bin/env sh | |
set -e | |
get_latest_release_version() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | |
} | |
package_installed() { | |
apk info -vv | grep "$1" 1> /dev/null |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# theme | |
## Base16 Material Palenight |
// First, run a Chrome instance on your Mac: | |
// /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 &> /dev/null &; disown | |
const puppeteer = require('puppeteer-core'); | |
const axios = require('axios'); | |
const getBrowserWSEndpoint = async (baseUrl) => { | |
const response = await axios.get(`http://${baseUrl}/json/version`); | |
return response.data.webSocketDebuggerUrl; |
// v2 of the great example of SSE in go by @ismasan. | |
// includes fixes: | |
// * infinite loop ending in panic | |
// * closing a client twice | |
// * potentially blocked listen() from closing a connection during multiplex step. | |
package main | |
import ( | |
"fmt" | |
"log" |
<?php | |
declare(strict_types=1); | |
/** | |
* A Context class that holds typed values | |
* which can be extracted using a callable | |
* | |
* @see http://php.net/manual/fr/language.types.callable.php | |
*/ |
{ | |
"openapi": "3.0.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Swagger Petstore", | |
"description": "A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification", | |
"termsOfService": "http://swagger.io/terms/", | |
"contact": { | |
"name": "Swagger API Team", | |
"email": "apiteam@swagger.io", |
Apply:
git stash apply
Unapply:
git stash show -p|git apply --reverse
package main | |
import ( | |
"context" | |
"fmt" | |
"io" | |
"time" | |
"github.com/cenk/backoff" | |
"github.com/docker/docker/api/types" |