Skip to content

Instantly share code, notes, and snippets.

curl 'https://api.valleysound.xyz/service-user/user/walletConnect/connectPush' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Authorization: eyJraWQiOiJiaXl0UG1lNzRxTnQ3Z3BHQ2hGakZcL01HQm9KcVBVT3dWQkRCZEVtRnNVST0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI3ZjM5ODI3My1iOWI1LTRkYjQtODMwYy1iZWIxYWFjNDAwM2YiLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAuYXAtc291dGhlYXN0LTEuYW1hem9uYXdzLmNvbVwvYXAtc291dGhlYXN0LTFfNGRxUVdOTU4yIiwiY2xpZW50X2lkIjoiNWowOGQ0dWNwZ2U3MDNzZmczY2F1OGNrNjQiLCJvcmlnaW5fanRpIjoiMWMyNTdjMTctNzJlMi00MWRhLTlmZGUtNzkwZTk3NmRjYmUyIiwiZXZlbnRfaWQiOiJkMGEwM2M4MC1lMmM5LTQ3YmYtOTljZi01MThjNzYzMzE3ZTMiLCJ0b2tlbl91c2UiOiJhY2Nlc3MiLCJzY29wZSI6ImF3cy5jb2duaXRvLnNpZ25pbi51c2VyLmFkbWluIiwiYXV0aF90aW1lIjoxNjgwNzU1NjEwLCJleHAiOjE2ODA4NDIwMDksImlhdCI6MTY4MDc1NTYxMCwianRpIjoiNzAxMTVkMGEtZWI2NS00ZGQxLWExZjMtYzcxMzg5MDVmODg0IiwidXNlcm5hbWUiOiJiY2ViYTI4Njg4ZjliMWRhIn0.Wyp0-ER8jqMzSlvRQpOevOUXwaQHybJq_uHgypR5VNftDVIfHJFjG5ReBMslgXuvUF6Q6MVLjm5cUsT63w7xQJj4_aRFhJ5X7-MA82B9BhUOCHTD
@junjchen
junjchen / .bashrc
Created January 22, 2018 13:45
my local config
b() {
case "$1" in
"app")
cd /c/src/Viagogo.Site && ./bin/build.bat
;;
"js")
cd /c/src/Viagogo.Site/Viagogo.Site.Script && gulp scripts
;;
"less")
cd /c/src/Viagogo.Site/Viagogo.Site && gulp styles:local
@junjchen
junjchen / smb.conf
Last active December 4, 2016 14:38
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-rc1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.1/pako.min.js"></script>
</head>
<body>
<form id="my-form">
<input type="file" name="file">
/*
* --------------------------------------------------------------------------------------------
* what's in the console, and explian what happened (async programming)
* --------------------------------------------------------------------------------------------
*/
console.log("New york");
setTimeout(function(){console.log("Vienne");}, 1000);
setTimeout(function(){console.log("London");});
console.log("Ottawa");
function factorial(num) {
if(num <= 1) return num;
return num * factorial(--num);
}
function factorialSmart(num) {
function factorial(acc, num) {
if(num <=1) return acc;
return function() { return factorial(acc * num, --num); }
}