Skip to content

Instantly share code, notes, and snippets.

clip-path: polygon( 0% 0%,100% 0%,100% 85.974%,100% 85.974%,99.883% 88.249%,99.546% 90.407%,99.005% 92.419%,98.28% 94.257%,97.388% 95.891%,96.349% 97.293%,95.181% 98.434%,93.901% 99.284%,92.529% 99.816%,91.082% 100%,8.919% 100%,8.919% 100%,8.213% 99.956%,7.515% 99.825%,6.83% 99.61%,6.159% 99.312%,5.506% 98.932%,4.873% 98.474%,4.265% 97.939%,3.683% 97.329%,3.131% 96.646%,2.612% 95.892%,2.612% 95.892%,2.132% 95.075%,1.698% 94.207%,1.31% 93.293%,0.97% 92.336%,0.679% 91.341%,0.438% 90.314%,0.248% 89.26%,0.111% 88.181%,0.028% 87.084%,-0% 85.974%,0% 0% );
@kkasaei
kkasaei / Image Sprites
Created November 27, 2023 11:30
Image Sprites
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stars</title>
<style>
.star,
@kkasaei
kkasaei / Version 2
Last active December 7, 2023 20:58
css-slider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slideshow</title>
<style>
.card {
height: 200px;

Install Minikube with virtual-box VM driver

$ brew update && brew install kubectl && brew cask install docker minikube virtualbox
$ brew cask reinstall minikube
$ minikube delete
$ rm -fr ~/.minikube/
@kkasaei
kkasaei / Amplify.yaml
Created October 5, 2019 02:18
Amplify.yaml Template
version: 0.1
backend:
phases:
build:
commands:
- '# Get Amplify CLI Cloud-Formation stack info from environment cache'
- export STACKINFO="$(envCache --get stackInfo)"
- '# Execute Amplify CLI with the helper script'
- amplifyPush --environment $AWS_BRANCH - '# Store Amplify CLI Cloud-Formation stack info in environment cache'
- >
https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac
SHOW TABLE:
Postgres psql needs escaping for capital letters.
Database=# \d+ "TestTable1"
Describe Table:
\d "myTable" describe table
\d+ "myTable"
Switch Database
\c tableName
@kkasaei
kkasaei / README.md
Created January 3, 2018 23:33
Sequelize + Express + Migrations + Seed Starter
@kkasaei
kkasaei / postgres-cheatsheet.md
Created December 16, 2017 12:10 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
function searchWikipedia (term) {
return $.ajax({
url: 'https://en.wikipedia.org/w/api.php',
dataType: 'jsonp',
data: {
action: 'opensearch',
format: 'json',
search: term
}
}).promise();