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 | |
for file in $(git diff --cached --name-only) | |
do | |
if [[ $file == *['!'@#éáàè\$%^\&*()+]* ]] | |
then | |
echo "pre-commit: Aborting commit due to filename with special character ($file)" | |
exit 1 | |
fi | |
done |
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
[ | |
{ | |
"headlineFirstLine": "Demoooo", | |
"headlineSecondLine": "Image", | |
"sublineFirstLine": "Led by passion", | |
"sublineSecondLine": " Zenika", | |
"bgImg": "./img/sw2.png", | |
"rectImg": "./img/sw2.png", | |
"content": "image", | |
"props": { |
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
[ | |
{ | |
"headlineFirstLine": "Coding", | |
"headlineSecondLine": "the World", | |
"isHeadlineVisible": true, | |
"sublineFirstLine": "", | |
"sublineSecondLine": "", | |
"bgImg": "https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2252&q=80", | |
"rectImg": "https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2252&q=80", | |
"logoImg": "https://www.zenika.com/static/logos/logo.png", |
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
# Agnoster prompt customization | |
prompt_context() { | |
EMOJIS=("🐧" "🦄" "🔥" "🐷" "🐱" "🐘") | |
RANDOM=$$$(date +%s) | |
prompt_segment black black "${EMOJIS[$RANDOM % ${#EMOJIS[@]}]}" | |
} |
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
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "rollup_bundle") | |
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package") | |
load("@npm_bazel_typescript//:index.bzl", "ts_library") | |
exports_files(["tsconfig.json"]) | |
# compile | |
ts_library( | |
name = "app", | |
srcs = glob(["*.ts","**/*.tsx"]), |
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
let total = 0; | |
Array.from( | |
document.getElementsByClassName('ghx-backlog-container ghx-everything-else')[0].getElementsByClassName('aui-badge ghx-statistic-badge') | |
).forEach(item => { | |
let content = item.textContent; | |
if(content === '-') { | |
return; | |
} else if(content.endsWith('d')) { | |
total += parseInt(content.replace('d', '')); | |
} else if(content.endsWith('w')) { |
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
s = status -s | |
dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \ | |
&& git fetch origin $BRANCH \ | |
&& git reset --hard origin/$BRANCH | |
find-branch = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -n 1 | xargs git checkout\" | |
pushf = push --force-with-lease |
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
[ | |
{ | |
"props": { | |
"src": "https://user-images.githubusercontent.com/3717296/142225807-6ea086ea-8e76-4f35-8f47-a684a949efb5.png", | |
"width": "55vw", | |
"top": "10%" | |
}, | |
"content": "image", | |
"headlineFirstLine": "Around the world", | |
"headlineSecondLine": "35 offices / 85 countries", |