Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Kicking Ass

Francis Sunday codehakase

🎯
Kicking Ass
View GitHub Profile
@codehakase
codehakase / Country Currency Codes JSON
Created Apr 12, 2020 — forked from soubhikchatterjee/Country Currency Codes JSON
currency symol, name, plural, and decimal digits for all major and minor currencies
View Country Currency Codes JSON
[
{
"USD" : {
"symbol" : "$",
"name" : "US Dollar",
"symbol_native" : "$",
"decimal_digits" : 2,
"rounding" : 0,
"code" : "USD",
"name_plural" : "US dollars"
View keybase.md

Keybase proof

I hereby claim:

  • I am codehakase on github.
  • I am codehakase (https://keybase.io/codehakase) on keybase.
  • I have a public key ASA6l5ozh92hZt_LqDrHT_9ivQgMaUXGYO5WbEfFsLF5vwo

To claim this, I am signing this object:

View firebase-phone-auth-sample.js
function getUiConfig() {
return {
'callbacks': {
// Called when the user has been successfully signed in.
'signInSuccess': function(user, credential, redirectUrl) {
handleSignedInUser(user);
// Do not redirect.
return false;
}
},
@codehakase
codehakase / stats.json
Last active Mar 27, 2018
JSON dump for ac stats
View stats.json
{
"status": "success",
"code": 200,
"source": "live",
"data": {
"users": {
"count": 3000,
"users": [
{
"phone": "xxx-xxx-xxx",
View imp.js
// questions is a map of questions
let questions = [
{
question: "Care for Some Lorem Ipsum?",
options: [
"yes",
"maybe",
"I don't mind"
],
correct_option: "I don't mind"
@codehakase
codehakase / api-info.md
Last active Jan 10, 2018
ViVA mock api info
View api-info.md

vivaxd-onboarding-api

A RESTful api built (quickly) to add to tasks for new devs onboarding ViVA XD

Info

URL - https://viva-api-test.herokuapp.com/api

Authentication - Bearer

Endpoints

All endpoints are using the GET HTTP verb

View blockstack
Verifying my Blockstack ID is secured with the address 13mgHsXQWM3doSostdaRLFgmoTRqFA45i4 https://explorer.blockstack.org/address/13mgHsXQWM3doSostdaRLFgmoTRqFA45i4
@codehakase
codehakase / todo.php
Created Nov 4, 2017
A simple todo list app with PHP
View todo.php
<?php
session_start();
// db configs
try {
$db = new PDO('mysql:host=localhost;dbname=DBNAME', 'DBNAME', 'DBPASS');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
echo $e->getMessage();
}
View signup
<!DOCTYPE html>
<html>
<head>
<title>User Auth Demo - Signup</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<style>
.signup-form {
margin-top: 20vh;