Skip to content

Instantly share code, notes, and snippets.

View joshuamabina's full-sized avatar
🎯
Focusing

Joshua Mabina joshuamabina

🎯
Focusing
View GitHub Profile
@joshuamabina
joshuamabina / users.json
Created July 21, 2021 01:12
i18n object structure / users.json
{
"users": {
"inputs": {
"title": {
"label": "Title",
"placeholder": "Your title",
"description": "Your title e.g. Mr/Ms/Mrs/Sir/Madam",
"header": "Title"
},
"firstName": {
@joshuamabina
joshuamabina / awesome.md
Last active July 12, 2024 12:32
My curated list of awesome things!

AWESOME

My curated list of awesome things!

Project Management and Code Collaboration

  • Dive into Git & GitHub
    • Simple Guide - Just a simple guide for getting started with Git. No deep shit ;)
    • Git Handbook - 10 minute read about Git & GitHub.
    • How to GitHub - Fork, Branch, Track, Squash and Pull Request
@joshuamabina
joshuamabina / index.js
Last active April 11, 2021 21:09
Interview Question: Given a text, return the most repeated letter.
'use strict';
/**
* @function mostRepeatedLetter
* @returns object the highest repeating letter and count
*
* @description
*
* Given a text: `I want to rock this interview`, return the most repeating letter.
*
@joshuamabina
joshuamabina / clear.txt
Last active June 20, 2020 06:41
Clear/Reset Expo
watchman watch-del-all && rm -rf node_modules/ && npm cache verify && npm install && expo r -c
@joshuamabina
joshuamabina / Dockerfile
Last active June 2, 2020 08:47
My HALO jump into containerizing Node.js apps using Docker - [link here]
# We first specify the image node version we want Docker to grab.
# Docker images live in harmony at Docker Hub (hub.docker.com).
# It still seems to be the easiest way to share images.
FROM node:8
# Below, describes to our soon to be Docker image,
# where to place all the application source code.
WORKDIR /usr/src/app
# We then move on to copying and installing our app's
# dependencies into the Docker image.
# Notice how, using a wild-card, we've managed to subtly
@joshuamabina
joshuamabina / extend.sh
Last active February 7, 2020 05:22
Extend non-HiDPI external display above HiDPI internal display
#!/bin/sh
# Forked from https://gist.github.com/bhaskarkc/
#
# extend non-HiDPI external display on DP* above HiDPI internal display eDP*
# see also https://wiki.archlinux.org/index.php/HiDPI
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1`
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1`
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Hello world from a worker</title>
</head>
<body>
<script charset="utf-8">
var worker = new Worker('worker.js');
/**
* The Call Stack
*/
function foo () {
throw new Error('WTF is the call stack?');
}
function bar() {
<!--
Gist file for "Explaining web workers" blog issue #4.
https://github.com/joshuamabina/blog/issues/4
Joshua Mabina
mabinajoshua-at-gmail-dot-com.
WTFPLv2
@joshuamabina
joshuamabina / random-is-evil.html
Last active April 13, 2018 12:21
Gist file for "Explaining web workers" blog issue #4. https://github.com/joshuamabina/blog/issues/4
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>My Medicine Ball</title>
<style type="text/css" media="screen">