Skip to content

Instantly share code, notes, and snippets.

View koficypher's full-sized avatar
🎯
Focusing

Kofi Cypher koficypher

🎯
Focusing
View GitHub Profile
@koficypher
koficypher / .bash_aliases
Created March 23, 2023 14:16 — forked from joshnuss/.bash_aliases
Bash aliases for creating a SvelteKit project with Prisma
# Create a vanilla SvelteKit project
# usage: sk <folder-name>
sk() {
pnpm create svelte@latest $1 \
&& cd $1 \
&& pnpm install \
&& git init \
&& git add . \
&& git commit -m 'Initial commit'
}
@koficypher
koficypher / index.js
Created January 19, 2022 12:06 — forked from akexorcist/index.js
Axios post method requesting with x-www-form-urlencoded content type
const axios = require('axios')
/* ... */
const params = new URLSearchParams()
params.append('name', 'Akexorcist')
params.append('age', '28')
params.append('position', 'Android Developer')
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/')
params.append('awesome', true)
/***
Name: Kofi Cypher
Email: [email protected]
Var
The var keyword is used to declare variables globally or locally within a fucntion block
It is suitable for use when you want to declare variables you would want to throughout your code execution.
Let
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">