Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
Developing Platforms

Prosper Otemuyiwa unicodeveloper

🔥
Developing Platforms
View GitHub Profile
View sp_specifics.js
[
{
serviceProviderID: 9,
specifics: "Egg sauce, Meat"
},
{
serviceProviderID: 7,
specifics: "Beans, Spaghetti"
},
{
View plan_details.js
{"meal":{"frequency":"weekly","item":null,"qty":2,"service_day":"monday"},"laundry":{"frequency":"bi-weekly","item":"wash and fold","qty":2,"service_day":"tuesday"},"cleaning":{"frequency":"weekly","item":"light cleaning","qty":3,"service_day":"wednesday"},"ac":{"frequency":"quarterly","item":"ac","qty":3,"service_day":"thursday"}}
View post-from-spleet-to-eden.js
import 'dotenv/config';
import express from 'express';
import axios from 'axios';
import cors from 'cors';
import crypto from 'crypto';
const app = express();
app.use(cors());
app.use(express.json());
View post-from-spleet-to-eden.php
<?php
$payload = [
'event' => 'customer.subscribed',
'data' => [
'fullName': ‘olori baba’,
'email': ‘givethem@yahoo.com’ ,
'phoneNo': ‘08023975521’ ,
'homeAddress': ‘7, Marlian HQ’ ,
'landmark': ‘Near Mafo Studios’ ,
View post-from-fibre-to-eden.js
import 'dotenv/config';
import express from 'express';
import axios from 'axios';
import cors from 'cors';
import crypto from 'crypto';
const app = express();
app.use(cors());
app.use(express.json());
View post-from-fibre-to-eden.php
<?php
$payload = [
'event' => 'customer.created',
'data' => [
'full_name' => 'Mark Fish',
'email' => 'takeit@chairman.com'
]
];
View individualcomponents.js
const User = ({ id, children }) => {
<Query query={GET_USER} variables={{ userId }}>
{({ loading, data }) => (children({ user: data}))
</Query>
}
const UserStartup = ({ user: { email }, children }) => (
<Query query={GET_HACKERNEWS_STARTUP} variables={{ email }}>
{({ loading, data: { startup } }) => (
<Query query={GET_REPO} variables = {{ startup }}>
View refactored.js
<User id={id}>
{({ user }) => (
<UserStartup user={user}>
{
({ data: { startup, startup: { correspondingRepo: repo }}}) =>
<UI repo={repo} email={user.email} startup={startup}/>
}
</UserStartup>
)}
</User>
View getandshowdata.js
export const GetAndShowData = ({ userId }) => (
<Query query={GET_USER} variables={{ userId }}>
{({ loading, data: { email } }) => (
<Query query={GET_HACKERNEWS_STARTUP} variables={{ email }}>
{({ loading, data: { startup } }) => (
<Query query={GET_REPO} variables = {{ startup }}>
{({loading, error, data: { correspondingRepo } }) => {
if (loading) return <p>Loading...</p>;
if (error) return <p>Error...</p>;
return (
You can’t perform that action at this time.