Skip to content

Instantly share code, notes, and snippets.

View dozykeys's full-sized avatar

Duru Chidozie dozykeys

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 600px;
width: 100%;
}
</style>
@dozykeys
dozykeys / Obfuscator.php
Last active June 30, 2022 13:26
This is a php Obfuscator class. It simply obfuscates the php source code while still parsing it correctly when implemented.
<?php
namespace Obfuscator;
/**
* Class Obfuscator
* @author Duru Chidozie
* @copyright 2019
* @version 1.0.0
*
*/
@dozykeys
dozykeys / state_lga.html
Created March 12, 2021 02:04
A simple implementation of dropdown functionality for states and their lgas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<select name="state" id="state">
<option selected="selected">Select State...</option>
@dozykeys
dozykeys / calculator.php
Created March 10, 2021 09:03
A simple calculator in html and php
<?php
$currentValue = 0;
$input = [];
function getInputAsString($values){
$o = "";
foreach ($values as $value){
$o .= $value;
app.get('/payment/verify', async(req,res) => {
const ref = req.query.reference;
let output;
await axios.get(`https://api.paystack.co/transaction/verify/${ref}`, {
headers: {
authorization: "Bearer TEST SECRET KEY",
//replace TEST SECRET KEY with your actual test secret
//key from paystack
"content-type": "application/json",
@dozykeys
dozykeys / graphql-cloudinary-image-upload.js
Last active September 23, 2020 23:57
A simple server file that uploads image to cloudinary using graphql
//import our necessary node modules
require("dotenv").config();
const express = require("express");
const { ApolloServer, gql } = require("apollo-server-express");
const cloudinary = require("cloudinary");
//get port from process.env which is set to 4000
const { PORT } = process.env;
const app = express();
@dozykeys
dozykeys / gist:d3ac1dc052ec147a25d6c89a05677fcf
Created September 23, 2020 22:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dozykeys
dozykeys / scratch.dart
Created February 5, 2020 15:56
Starting Code for Futures/Async/Await Demo
import 'dart:io';
void main() {
performTasks();
}
void performTasks() {
task1();
task2();
task3();