Skip to content

Instantly share code, notes, and snippets.

prettier eslint-plugin-simple-import-sort eslint-plugin-prettier eslint-config-react-app eslint-config-prettier
@wunnle
wunnle / .bash_aliases
Last active January 29, 2020 06:22
.bash_aliases for wsl / ubuntu
alias cdsway='cd /mnt/c/SwayPay'
alias cdsavi='cd /mnt/c/SwayPay/www-savibook && code .'
alias cddash='cd /mnt/c/SwayPay/www-dashboard/dashboard && code .'
alias cdpms='cd /mnt/c/SwayPay/api-pms-sync/Scripts'
alias codedash='cd /mnt/c/SwayPay/www-dashboard/dashboard && code . && yarn start'
alias codesavi='cd /mnt/c/SwayPay/www-savibook && code . && yarn start'
alias codesway='cd /mnt/c/SwayPay/www-b2c/src/www/swaypay.io && code . && yarn start'
alias codeportfolio='cd /mnt/c/w-projects/next-md-portfolio/ && code . && yarn next'
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
@wunnle
wunnle / gatsby .eslintrc.js
Last active December 19, 2019 09:03
eslint config for gatsby
module.exports = {
"extends": [
"eslint:recommended",
"react-app",
"plugin:prettier/recommended"
],
"plugins": [
"simple-import-sort"
],
"rules": {
@wunnle
wunnle / profiles.json
Created November 27, 2019 06:46
Windows Terminal settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
let allMails = [
{
date: '23 Jan',
from: 'Susanne',
subject: 'About holiday at July',
mail: 'Dear Leyda,as you probably know...',
isFavorited: false,
},
{
date: '22 Jan',
// 1. returnNumber
// bir sayi alip onu return eden bir function yaz.
// test: console.log(returnNumber(5)) yapildiginda console'da 5 olmali
// 2. doubleNumber
// bir sayi alip onun iki katini return eden bir function yaz
// test: console.log(doubleNumber(5)) yapildiginda console'da 10 olmali
// 3. total
// iki sayi alip bu ikisinin toplamini return eden bir function yaz
.toggle-checkbox {
// visually hidden but accessible
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px
}
.toggle-checkbox:checked + .toggle {
background: #4079F5;
transition: background 0.5s ease;
.toggle-pill {
margin-left: calc(100% - 12px);
}
}
.toggle-checkbox:focus + .toggle {
@wunnle
wunnle / regex.js
Created March 13, 2019 05:39
Regex for capturing data-attribute and innerHTML
<.+ data-lang="(\S+)".*>(.+)<\/.+>