Skip to content

Instantly share code, notes, and snippets.

View scroobius-pip's full-sized avatar
🏠
Working from home

simdi jinkins scroobius-pip

🏠
Working from home
View GitHub Profile
async function findOrCreateUser(id){
const user = await findUser(id)
if(!user){
return await createUser(id)
}
return user
}
async function getUsers(idList){
async function findOrCreateUser(id){
const user = await findUser(id)
if(!user){
return await createUser(id)
}
return user
}
async function getUsers(idList){
const promiseTasks = idList.map(id=>findOrCreateUser(id))
async function findOrCreateUser(id){
const user = await findUser(id)
if(!user){
return await createUser(id)
}
return user
}
@scroobius-pip
scroobius-pip / moba_privacy.html
Last active September 10, 2020 21:10
Moba privacy policy
Privacy Policy
Moba built the Moba app as a Commercial app. This SERVICE is provided by Moba and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Moba unless otherwise defined in this Privacy Policy.
Information Collection and Use
fetch("https://api.sheetson.com/v2/sheets/"+sheetName, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"X-Spreadsheet-Id": "YOUR_SPREADSHEET_ID",
"Content-Type": "application/json"
},
body: JSON.stringify({name:"name",email:"email"})
})
<html>
<body>
<form action="javascript:submit()">
<label for="name">What's your name ?</label><br>
<input required type="text" id="name" name="name" value=""><br>
<label for="email">What's your email ?</label><br>
<input required type="email" id="email" name="email" value=""><br>
<input type="submit" id="submit" value="Submit">
</form>
MERGE (n1:User {neogen_id: 'b085096ddc66811c2fc0ebe3e6b77ccb27a2e8cb' })
SET n1.id = 'Delfina'
MERGE (n2:User {neogen_id: 'dfbf41b7e4d6c14b1d06ac38234eb201e8133a2e' })
SET n2.id = 'Hosea'
MERGE (n3:User {neogen_id: 'd2662a46f5704641b37ea28c615952285eb8dbd4' })
SET n3.id = 'Lisette'
MERGE (n4:User {neogen_id: '553ddcb46902895213d9e265ee4867a71e23a365' })
SET n4.id = 'Elenor'
MERGE (n5:User {neogen_id: '37f7d48fadc753cf9545179e9801c3c28af42e76' })
@scroobius-pip
scroobius-pip / Entire Guide
Created June 17, 2017 13:40 — forked from cmcsun/Entire Guide
May the Force be with You: A tulpa creation guide by Methos
May the Force be with You
A Tulpa Creation Guide
by Methos
Twitter: @GGMethos
ggmethos@autistici.org
v2.8
Last Edit: 6-Oct-2014
MAY THE FORCE BE WITH YOU
@scroobius-pip
scroobius-pip / Swap.c
Created March 28, 2017 22:28
Swapping with only two variables
void s(int& a, int& b)
{
a = a ^ b;
b = a ^ b;
a = a ^ b;
}
@scroobius-pip
scroobius-pip / reverse.c
Created February 22, 2017 06:13
String reversal function in c
#include <stdio.h>
#include <string.h>
#include <math.h>
char* reverse(char*);
int main(void) {
char s[] = "abcdefghijklmnopqrstuvwxyz";