### A project by Sil
Sil is developer from Holland living in Malta and always busy creating new little open source tools and projects. A few of his other projects;
__Tools__
- [Bemm](https://bemm.sil.mt), simple function to create easy and consequent BEM classes.
- [CLI Block](https://cli-block.sil.mt), for good looking scripts.
- [Gieter](https://gieter.sil.mt), creates small websites based on Markdown in seconds
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
git add . && git commit --fixup [COMMIT_HASH] && GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash [COMMIT_HASH]^ |
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
const characters = ['A', 'A', 'B', 'B', 'C']; | |
const uniqueCharacters = [...new Set(characters)]; | |
console.log(uniqueCharacters); |
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
<template> | |
<input type="text" v-model="value" /> | |
</template> | |
<script lang="ts" setup> | |
const props = defineProps({ | |
modelValue: { | |
type: String, | |
default: "" |
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
// Wrong | |
enum MyEnum { | |
MT = 'Malta', | |
NL = 'Nederland', | |
UK = 'United Kingdom' | |
} | |
// Right | |
const MyEnum = { | |
MT: 'Malta', |
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
#!/bin/bash | |
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
staged=$(git diff --name-only --cached) | |
yellow=`tput setaf 3` | |
blue=`tput setaf 4` | |
reset=`tput sgr0` | |
bold=`tput bold` | |
dim=`tput dim` |
I hereby claim:
- I am silvandiepen on github.
- I am silvandiepen (https://keybase.io/silvandiepen) on keybase.
- I have a public key ASBLg2G2Dgx4yHFZgz1OUblkUOVpIeAiwVKxGb-F2Bdlrgo
To claim this, I am signing this object:
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
GITHUB_API_KEY=[YOUR_API_KEY] |
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
<template> | |
<BuildSections | |
v-if="page && page.fields && page.fields.layout_content" | |
:sections="page.fields.layout_content" | |
></BuildSections> | |
</template> | |
<script> | |
import BuildSections from '~/components/build-sections.vue'; | |
export default { |
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
{ | |
"javascript": ["js-custom-properties"], | |
"css": ["flexbox","css-grid"], | |
"misc": ["lowercase","publish-tag"] | |
} |
NewerOlder