Skip to content

Instantly share code, notes, and snippets.

View BongJaeChoi's full-sized avatar
👋

BongJaeChoi BongJaeChoi

👋
  • 구직 중
  • 대한민국
View GitHub Profile
@BongJaeChoi
BongJaeChoi / 1-1.ts
Last active June 19, 2024 18:47
카닥 클라이언트 챕터 과제 - 최봉재
function stringToArray(target: string) {
return target.split("\n");
}
/**
* 1-1번 문제
*/
function countValidPassword(ar: string): number {
if (!ar.length) {
return 0;
@BongJaeChoi
BongJaeChoi / layout.xml
Created January 22, 2018 06:21 — forked from kamikat/layout.xml
NestedScrollView + SwipeRefreshLayout + RecyclerView
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
₩₩₩java
if (response.isSuccessful()) {
JsonObject success = response.body();
Log.e("success!", success.toString());
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
backFlag = true;
@BongJaeChoi
BongJaeChoi / PostCheckInterceptor.java
Last active October 11, 2017 07:46 — forked from leeyc09/PostCheckInterceptor
Custom error Check Interceptor
package net.stylemilk.app.repository.api;
import android.util.Log;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.stream.MalformedJsonException;
import java.io.EOFException;
import java.io.IOException;

Writing template strings in Markdown

With template strings coming to ES6, the backtick (`) means something in Markdown and in JavaScript. If you write this:

To display a message, write `alert(`hello world!`)`.

it'll render like this:

To display a message, write alert(hello world!).

function SaferHTML(templateData) {
var s = templateData[0];
for (var i = 1; i < arguments.length; i++) {
var arg = String(arguments[i]);
// Escape special characters in the substitution.
s += arg.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
#//객체지향프로그래밍..
##//객체는 무엇인가?? 자바와는 또 다른 문법, 방식!!
###//객체는 이름-값 (name value pair) Map??????
###//그렇다면 이름이나 값 둘중 하나만 알아도 pair가 누구인지 알 수 있겠다!
###//이름 - 값(객체?) 도 가능!!! but 이름 자리에는 자바스크립트 문자열 이 명시! 되어야함
###//사용법은
var work = {
time: "8hour",
isLike:"잘...",
isHard:"매우.."