This file contains 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
https://github.com/CaoKha/tenisu-app | |
+ playwright (getByRole) | |
+ vite / vitest: template ? | |
+ vercel <3 | |
+ minimal css global (:root / variables / fontfaces) | |
? tenis-card: onClick -> Link router, className ?, css-in-js vs css variables DX (autocomplete?) | |
? searchbar.spec: filterPlayer = pure -> test without duplication, use import, refactor to use store | |
? store: context <3, API low level, why not move app logic to context? | |
? detailPage: DRY components, Architecture refactor: embed API call or data retrieval (refresh error message is a limitation) |
This file contains 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 url('https://fonts.googleapis.com/css?family=Roboto'); | |
button { | |
cursor: pointer; | |
} |
This file contains 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 language to English | |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US | |
export LC_ALL=en_US.UTF-8 | |
#export LC_MESSAGES=en_US | |
#export LC_MESSAGES=C | |
# GIT PS1 FTW |
This file contains 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
>>> skeleton-init-common Fixing libtool files | |
>>> skeleton-init-common Installing to target | |
rsync -a --ignore-times --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS --chmod=u=rwX,go=rX --exclude .empty --exclude '*~' system/skeleton/ /media/myCloudDrive/SkiffOS/workspaces/default/target/ | |
/usr/bin/install -d -m 0755 /media/myCloudDrive/SkiffOS/workspaces/default/target/bin | |
/usr/bin/install -d -m 0755 /media/myCloudDrive/SkiffOS/workspaces/default/target/sbin | |
/usr/bin/install -d -m 0755 /media/myCloudDrive/SkiffOS/workspaces/default/target/lib | |
ln -snf lib /media/myCloudDrive/SkiffOS/workspaces/default/target/lib32 | |
ln -snf lib /media/myCloudDrive/SkiffOS/workspaces/default/target/usr/lib32 | |
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt /media/myCloudDrive/SkiffOS/workspaces/default/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM | |
>>> skeleton-init-sysv Extracting |
This file contains 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
var mf = (function () { | |
'use strict'; | |
function warn () { | |
/* eslint no-console: off, prefer-spread: off */ | |
console.warn.apply(console, arguments) | |
} | |
function error (message) { | |
/* eslint no-var: off */ |
This file contains 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
// see https://tools.ietf.org/html/rfc4122#section-4.4 | |
function uuid () { | |
var seeds = random(12) | |
// inspired by https://github.com/broofa/node-uuid/blob/v2.0.0/uuid.js#L362 | |
seeds[5] = (seeds[5] & 0x0fff) | 0x4000 // version bits | |
seeds[7] = (seeds[7] & 0x3fff) | 0x8000 // clock_seq_hi_and_reserved bits | |
return 'xx-x-x-x-xxx'.replace(/x/g, function (x, index) { return hex(seeds[index]) }) | |
function random (n) { // get n random 16-bit unsigned integers |
This file contains 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
#!/usr/bin/env node | |
/** | |
* plural.js – simple CLDR plural rules parser | |
* https://gist.github.com/adriengibrat/817140a89cfd4893b4155a2ac913904d | |
* | |
* This program is free software. It comes without any warranty. | |
* Released under the WTFPL license – http://www.wtfpl.net | |
* | |
* Usage: |
This file contains 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": "parseDuration", | |
"version": "0.0.1", | |
"main": "./parseDuration.es5.js" | |
} |
This file contains 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
cd ~ | |
mkdir .gyp | |
nano .gyp/include.gypi | |
paste the following | |
{ | |
'variables': { | |
'linux_use_gold_binary' : 0, | |
'linux_use_gold_flags' : 0, | |
'target_arch': 'arm', | |
'disable_nacl': 1, # NaCL does not build for ARM. |
This file contains 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
(function( $ ) { | |
var d = $(document), | |
log = function (event) { d.on(event, function(e) { console.log(event, e.type, e.namespace, e.namespace_re) }) } | |
log("test") | |
log("test.a") | |
log("test.b") | |
log("test.b.a") | |
log("test.c") |
NewerOlder