Skip to content

Instantly share code, notes, and snippets.

View chukwumaokere's full-sized avatar
:octocat:
I create things and stuff on the web

Chukwuma Okere chukwumaokere

:octocat:
I create things and stuff on the web
View GitHub Profile
@chukwumaokere
chukwumaokere / useGesture.ts
Created February 7, 2024 21:47 — forked from KristofferEriksson/useGesture.ts
A custom React Typescript hook for advanced touch gestures in UI
import { useEffect, useRef } from "react";
type GestureType =
| "swipeUp"
| "swipeDown"
| "swipeLeft"
| "swipeRight"
| "tap"
| "pinch"
| "zoom";
@chukwumaokere
chukwumaokere / gist:dc4d9055dec6c0e3275333aa259c2c05
Created April 2, 2023 09:06 — 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:
@chukwumaokere
chukwumaokere / Gradient.js
Created November 8, 2022 01:52 — forked from jordienr/Gradient.js
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/
@chukwumaokere
chukwumaokere / GitCommitEmoji.md
Created September 14, 2022 05:58 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@chukwumaokere
chukwumaokere / gist:35c9533473a32c5b9b11af4fc63d68c3
Created April 6, 2020 02:03 — forked from dsci/gist:1347672
Delete commits from repository.
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# Then do a forced update.
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
# Push specific commit
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f
@chukwumaokere
chukwumaokere / enableHTML5AppCache.java
Created August 26, 2019 19:13 — forked from jaydeepw/enableHTML5AppCache.java
Enabling HTML5 AppCache in Android Webview programatically.
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");
@chukwumaokere
chukwumaokere / divisionexpanded.php
Last active August 9, 2018 14:52
A complication of division
<?php
$x = 80;
$y = 2;
$nonce = 0;
while ($x > 0) {
$x = $x-$y;
if($x >= 0){
$nonce++;