Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃

simdi jinkins scroobius-pip

🙃
View GitHub Profile
View 65615bee2adb_snippet3.js
async function findOrCreateUser(id){
const user = await findUser(id)
if(!user){
return await createUser(id)
}
return user
}
async function getUsers(idList){
View 65615bee2adb_snippet2.js
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))
View 65615bee2adb_snippet1.js
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 Sep 10, 2020
Moba privacy policy
View moba_privacy.html
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
View mediumarticleemaillistpreview.html
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"})
})
View emaillist.html
<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>
View cypher_export.cql
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 Jun 17, 2017 — forked from cmcsun/Entire Guide
May the Force be with You: A tulpa creation guide by Methos
View Entire Guide
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 Mar 28, 2017
Swapping with only two variables
View Swap.c
void s(int& a, int& b)
{
a = a ^ b;
b = a ^ b;
a = a ^ b;
}
@scroobius-pip
scroobius-pip / reverse.c
Created Feb 22, 2017
String reversal function in c
View reverse.c
#include <stdio.h>
#include <string.h>
#include <math.h>
char* reverse(char*);
int main(void) {
char s[] = "abcdefghijklmnopqrstuvwxyz";