Skip to content

Instantly share code, notes, and snippets.

@mysm0722
mysm0722 / zsh-keyboard-shortucts.md
Created June 16, 2023 08:22 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@mysm0722
mysm0722 / LombokVsGeneral.java
Last active December 18, 2019 06:40
[Example] Lombok Java Class vs General Java Class
// 1.@NonNull Example
// ----- [ start
// 1-1.Lombok @NonNull
public class NonNullExample extends Something {
private String name;
public NonNullExample(@NonNull Person person) {
super("Hello");
this.name = person.getName();
}
@mysm0722
mysm0722 / download_egghead_videos.md
Created August 23, 2018 00:47 — forked from ldong/download_egghead_videos.md
download egghead videos

Download videos from egghead

Go to the egghead website, i.e. Building a React.js App

run

$.each($('h4 a'), function(index, video){
  console.log(video.href);
});
@mysm0722
mysm0722 / BasicAuthenticationFilter.java
Created July 13, 2018 00:32 — forked from neolitec/BasicAuthenticationFilter.java
HTTP Basic authentication Java filter
package com.neolitec.examples;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@mysm0722
mysm0722 / basic-auth-servlet-filter.md
Created July 13, 2018 00:31 — forked from zonia3000/basic-auth-servlet-filter.md
Basic-Authentication Servlet Filter
/**
* Some credits to http://stackoverflow.com/a/18363307/771431
*/
public class MyBasicAuthFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }
<script src="https://gist.github.com/P7h/4388881.js"></script>
@mysm0722
mysm0722 / improveIR.js
Last active August 29, 2015 14:23 — forked from yamoo9/improveIR.js
/*! improveIR.js © yamoo9.net, 2014
* CSS (on), Img (off) 로컬호스팅, 웹서버 환경에서만 테스팅 가능
* Windows High Contrast 모드 테스팅은 로컬 환경에서도 가능
*/
// 참조URL
// http://blog.paciellogroup.com/2011/10/detecting-if-images-are-disabled-in-browsers/
// http://blog.paciellogroup.com/2012/08/notes-on-accessible-css-image-sprites/
// http://blog.adrianroselli.com/2012/08/css-background-images-high-contrast-mode.html