Skip to content

Instantly share code, notes, and snippets.


John Cyrill Corsanes jcchikikomori

View GitHub Profile
jcchikikomori / qs.js
Created May 19, 2021 — forked from cvan/qs.js
get query-string parameters (alternative to `URLSearchParams`)
View qs.js
var queryParams ='&').reduce(function (qs, query) {
var chunks = query.split('=');
var key = chunks[0];
var value = decodeURIComponent(chunks[1] || '');
var valueLower = value.trim().toLowerCase();
if (valueLower === 'true' || value === 'false') {
value = Boolean(value);
} else if (!isNaN(Number(value))) {
value = Number(value);
View iphone-x-all.scss
* Targetting iPhone X Series of Smartphones
$iphone-x-main-nav-height: 80px;
$iphone-x-main-nav-padding: calc(#{$iphone-x-main-nav-height} / 2);
$iphone-x-header-height: $header-height;
$iphone-x-height-offset: $iphone-x-main-nav-height + $iphone-x-header-height;
jcchikikomori / shareit-blacklist.txt
Last active Mar 22, 2021
ShareIt App domain blacklist
View shareit-blacklist.txt
jcchikikomori /
Created Mar 13, 2021 — forked from ld100/
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux


Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Here the SDK is under /usr/local/share/android-sdk because I may switch to a different Catalina user in the future, but it works fine under /Users/<your_user>/Library/Android/sdk as well.


See for brew, python3 and NodeJS on nvm see gist

Java 14

jcchikikomori / nullaway-build.gradle
Created Aug 24, 2020 — forked from msridhar/nullaway-build.gradle
self-contained build.gradle for using NullAway on an Android app
View nullaway-build.gradle
buildscript {
repositories {
maven {
url ""
// for android gradle plugin 3
dependencies {
jcchikikomori /
Created Jun 3, 2020 — forked from twaddington/
Injects a User-Agent header into outgoing OkHttp requests.
import android.os.Build;
import java.util.Locale;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
jcchikikomori / jQuery resize listener
Created May 6, 2020 — forked from lstanard/jQuery resize listener
Resize listener to call functions based on window size
View jQuery resize listener
$(document).ready(function() {
var mobile,
w = $(window),
breakpoint = 640,
sw = document.documentElement.clientWidth,
sh = document.documentElement.clientHeight;
w.on('resize orientationchange', function() {
sw = document.documentElement.clientWidth;
View reset-and-typography.css
html{height:100%;margin-bottom:1px;} /* always show scroll bar */
Vertical Rhythm: 18px vertical grid
body {
font-family:"Helvetica Neue",Helvetica,Arial,"Liberation Sans","FreeSans",sans-serif;
jcchikikomori / 000_REQUIREMENTS.MD
Last active Apr 23, 2020
Download any web videos thru the knowledge of Web & Cloud development