Skip to content

Instantly share code, notes, and snippets.

View tomiwaAdey's full-sized avatar
👨‍🍳
Cooking

Tomiwa Adey tomiwaAdey

👨‍🍳
Cooking
View GitHub Profile
import axios from 'axios';
import * as cheerio from 'cheerio';
import * as fs from 'fs';
import * as path from 'path';
import { parse } from 'json2csv';
interface PlayerBasicInfo {
position: number;
name: string;
nationality: string;
@tomiwaAdey
tomiwaAdey / content.json
Created July 27, 2021 09:27
content (/content/:id)
{
id: 471,
summary: "Abdominal aortic aneurysm (AAA) screening",
summary_content: "Screening for an abdominal aortic aneurysm is extremely important. Doctors refer to this as AAA (pronounced “triple-A”) screening. It looks for any weakness in the biggest blood vessel in your body, the aorta. This runs from your heart through the centre of your chest and your abdomen delivering oxygenated blood to your tissues and organs. Any weakness (aneurysm) can lead to rupture, which causes a life-threatening bleed into your tummy within seconds. Screening is aimed at detecting disease in those most at risk. Men are at higher risk of developing an AAA, and this increases with age, so men aged 65 and over are invited for a test. You’ll receive your invite automatically by post from the local health authority – they'll use your age and the contact details held in your GP records. Owing to the risk profile, this screening is not offered routinely to women, men under 65, or if you’ve already received treatment for an AA
@tomiwaAdey
tomiwaAdey / sameListOfContent.json
Last active July 27, 2021 09:22
Sample list of content
[
{
id: 471,
summary: "Abdominal aortic aneurysm (AAA) screening",
summary_content: "Screening for an abdominal aortic aneurysm is extremely important. Doctors refer to this as AAA (pronounced “triple-A”) screening. It looks for any weakness in the biggest blood vessel in your body, the aorta. This runs from your heart through the centre of your chest and your abdomen delivering oxygenated blood to your tissues and organs. Any weakness (aneurysm) can lead to rupture, which causes a life-threatening bleed into your tummy within seconds. Screening is aimed at detecting disease in those most at risk. Men are at higher risk of developing an AAA, and this increases with age, so men aged 65 and over are invited for a test. You’ll receive your invite automatically by post from the local health authority – they'll use your age and the contact details held in your GP records. Owing to the risk profile, this screening is not offered routinely to women, men under 65, or if you’ve already received treatment
"Dialogue": {
"nodes":[
{
"id":0,
"node_type":"question",
"root_edge_id":0,
"content": [
{
"text":"What are your symptoms?",
"subtext":""
@tomiwaAdey
tomiwaAdey / dialouge.json
Last active June 3, 2019 07:12
Dialogue tree
"Dialouge":{
"nodes":[
{
"id": 1,
"node_type":"question",
"root_edge_id":0,
"content":[
{
"text":"What seems to be the problem?",
@tomiwaAdey
tomiwaAdey / AngelList Markets.csv
Created February 18, 2019 14:53 — forked from eAndrius/AngelList Markets.csv
All AngelList Market tags with market url, id, number of followers, investors, startups and jobs, in no particular order. Scraped from https://angel.co/markets on 04/04/2015
name url id followers investors startups jobs
Information Technology https://angel.co/information-technology 25 6860 2381 84617 12929
Consumers https://angel.co/consumers 24 3969 1268 58531 7753
Enterprises https://angel.co/enterprises 733 3465 1172 36913 6727
Media https://angel.co/media-1 11 4699 1549 10186 1097
Health Care https://angel.co/health-care 13 113123 22508 7750 1154
Education https://angel.co/education 43 11233 3727 7495 993
Finance https://angel.co/finance 321 5029 1681 7143 1362
Life Sciences https://angel.co/life-sciences 9 3871 1285 4467 274
Platforms https://angel.co/platforms 152 3742 1218 4119 669
@tomiwaAdey
tomiwaAdey / CaidrGraph.json
Last active February 15, 2019 11:18
Quick example
"CaidrGraph": {
"nodes":[
{
"id":1,
"label":"question",
"properties": {"text":"Eye"}
},
{
"id":2,
"label":"question",
/**
* Token sale
* Author Tomiwa Adey
*/
// To specify what version of compiler this code will compile with
pragma solidity ^0.4.11;
contract tokensale {
/**
* Deucey
* A simple betting game between two players
* where each player bet an amount of ether
* and the game ends when one player bets exactly twice the amount of the others
* The game ends and the winner takes all
*/
/**
* Author Tomiwa Adey
@tomiwaAdey
tomiwaAdey / Verifier-api
Created April 9, 2018 12:03
A simple function that checks whether an email exists or not
//curl -H "Content-Type: application/json" -X GET https://uzlt9u392f.execute-api.us-east-1.amazonaws.com/dev/verify/captaintommy787@gmail.com
// index.js
const serverless = require('serverless-http');
const bodyParser = require('body-parser');
const emailExistence = require('email-existence');
const express = require('express');
const app = express();