Skip to content

Instantly share code, notes, and snippets.

View jupegarnica's full-sized avatar
🔍

Garn jupegarnica

🔍
View GitHub Profile
navigator.connection.downlink;
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
- 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'
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]);
// }
export class DeepProxy {
constructor(target, handler) {
this._preproxy = new WeakMap();
this._handler = handler;
return this.proxify(target, []);
}
makeHandler(path) {
let dp = this;
return {
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:
#!/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#*.}"
today=`date +"%Y-%m-%d"`
for f in *.AVI; do
mv -- "$f" "$today.${f%}"
done
@jupegarnica
jupegarnica / 10-respect-the-aspect.markdown
Created December 22, 2020 08:11
10: Respect the Aspect