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
jcchikikomori / UserAgentInterceptor.java
Created Jun 3, 2020 — forked from twaddington/UserAgentInterceptor.java
Injects a User-Agent header into outgoing OkHttp requests.
View UserAgentInterceptor.java
package com.enlighthq.mobile.http;
import android.os.Build;
import java.io.IOException;
import java.util.Locale;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
@jcchikikomori
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,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,big,cite,code,del,em,img,ins,q,s,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,nav,section{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
html{height:100%;margin-bottom:1px;} /* always show scroll bar */
/* =GLOBAL ELEMENTS
--------------------------------------------------------------
Vertical Rhythm: 18px vertical grid
*/
body {
color:#222;
font-family:"Helvetica Neue",Helvetica,Arial,"Liberation Sans","FreeSans",sans-serif;
@jcchikikomori
jcchikikomori / 000_REQUIREMENTS.MD
Last active Apr 23, 2020
Download any web videos thru the knowledge of Web & Cloud development
View 000_REQUIREMENTS.MD
@jcchikikomori
jcchikikomori / PicassoImageGetter.java
Created Apr 8, 2020 — forked from rajeefmk/PicassoImageGetter.java
ImageGetter used for loading remote urls from <img> tag when loaded inside textview.
View PicassoImageGetter.java
public class PicassoImageGetter implements Html.ImageGetter {
private AppTextView textView = null;
public PicassoImageGetter() {
}
public PicassoImageGetter(AppTextView target) {
textView = target;
View LinkUtils.java
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;
import android.text.style.ClickableSpan;
import android.text.style.URLSpan;
@jcchikikomori
jcchikikomori / cmder.md
Created Mar 24, 2020 — forked from nickautomatic/cmder.md
Setting up Cmder to use bash by default
View cmder.md

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
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) {
//CSS
@jcchikikomori
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
jcchikikomori / multiple_ssh_setting.md
Created Feb 3, 2020 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

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 "your_email@youremail.com"
You can’t perform that action at this time.