Skip to content

Instantly share code, notes, and snippets.

View singhshivam's full-sized avatar
:octocat:
I think, therefore I am

Shivam Singh singhshivam

:octocat:
I think, therefore I am
View GitHub Profile
@singhshivam
singhshivam / wpinstall
Created March 27, 2019 08:45
WordPress creator
#!/bin/bash
for i in "$@"
do
case $i in
-p=*|--path=*)
path="${i#*=}"
shift # past argument=value
;;
-u=*|--url=*)
url="${i#*=}"
@singhshivam
singhshivam / Immutable JS Examples
Last active August 5, 2023 19:16
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);