Skip to content

Instantly share code, notes, and snippets.

Has a potato PC, but beefy specs

John Cyrill Corsanes jcchikikomori

Has a potato PC, but beefy specs
View GitHub Profile
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
jcchikikomori /
Created Apr 8, 2020 — forked from rajeefmk/
ImageGetter used for loading remote urls from <img> tag when loaded inside textview.
public class PicassoImageGetter implements Html.ImageGetter {
private AppTextView textView = null;
public PicassoImageGetter() {
public PicassoImageGetter(AppTextView target) {
textView = target;
package com.blogspot.ksoichiro.linktest;
import android.text.Layout;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
jcchikikomori /
Created Mar 24, 2020 — forked from nickautomatic/
Setting up Cmder to use bash by default

Set up cmder to use msysgit / bash by default

  • Install cmder_mini (msysgit is already installed, so no need for full version)
  • In Cmder, open settings: Win + Alt + P
  • Under Startup > Tasks, add a task called {bash} with the following settings:
    • Task parameters (set icon):
      • For Cmder icon: /icon "%CMDER_ROOT%\cmder.exe"
      • For Git icon: /icon "C:\Program Files (x86)\Git\etc\git.ico"
    • Commands (open Git's bash shell):
      • "C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
jcchikikomori / media-query.css
Created Mar 17, 2020 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
jcchikikomori / enable-trim.txt
Last active Feb 3, 2020 — forked from h4n2k/gist:a627e16243dfd91ea9c45451dd5680ff
antergos - arch linux enable ssd trim (fstrim)
View enable-trim.txt
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
sudo systemctl status fstrim.timer
jcchikikomori /
Created Feb 3, 2020 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
You can’t perform that action at this time.