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
navigator.connection.downlink; |
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 { | |
assertEquals, | |
} from "https://deno.land/[email protected]/testing/asserts.ts"; | |
import { spy } from "https://deno.land/x/[email protected]/mod.ts"; | |
import type { Spy } from "https://deno.land/x/[email protected]/mod.ts"; | |
import { delay } from "https://deno.land/[email protected]/async/delay.ts"; | |
type Callable = (...arg:any[])=>any |
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
- name: Git commit and push | |
uses: github-actions-x/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
push-branch: 'master' | |
commit-message: 'update docs' | |
force-add: 'true' | |
files: docs/* | |
name: gh-pages | |
rebase: 'true' |
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
type AnyObject = { [key: string ]: any }; | |
const makeHandler = (path: Keys) => { | |
return { | |
set(target: AnyObject, key: string, value: any, receiver: AnyObject) { | |
throw new Error("Inmutable data"); | |
// if (typeof value === "object") { | |
// value = deepProxy(value, [...path, key]); | |
// } |
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
export class DeepProxy { | |
constructor(target, handler) { | |
this._preproxy = new WeakMap(); | |
this._handler = handler; | |
return this.proxify(target, []); | |
} | |
makeHandler(path) { | |
let dp = this; | |
return { |
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
default: | |
@printf "$$HELP" | |
# Docker commands | |
docker-build: | |
docker-compose up -d | |
@docker exec -it kata-test bash -c "composer install --prefer-source --no-interaction" | |
docker-down: |
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
#!/bin/sh | |
#Get the highest tag number | |
VERSION=`git describe --abbrev=0 --tags` | |
VERSION=${VERSION:-'0.0.0'} | |
echo $VERSION | |
#Get number parts | |
MAJOR="${VERSION%%.*}"; VERSION="${VERSION#*.}" | |
MINOR="${VERSION%%.*}"; VERSION="${VERSION#*.}" | |
PATCH="${VERSION%%.*}"; VERSION="${VERSION#*.}" |
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
today=`date +"%Y-%m-%d"` | |
for f in *.AVI; do | |
mv -- "$f" "$today.${f%}" | |
done |
A Pen by Una Kravets on CodePen.