This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let com = Math.random()*3 | 0 | |
let usr | |
const rps = 'rock paper scissors'.split(' ') | |
const score = 'draw win lose'.split(' ') | |
let usrNum | |
while ((usrNum = rps.indexOf(usr = prompt('choose your move'))) === -1) { | |
alert('invalid move') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.co.benew.util; | |
import java.util.List; | |
import org.apache.ibatis.session.RowBounds; | |
import lombok.Getter; | |
import lombok.Setter; | |
@Getter | |
@Setter | |
public class Pagination<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
import java.util.AbstractMap; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
public class ValueExample { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const testFizzBuzz = (fizzbuzz) => { | |
const assert = (value) => { | |
if (value === true) { | |
return; | |
} else { | |
throw 'Assertion failed'; | |
} | |
}; | |
const input = [ ...Array(15).keys() ].map(e=>e+1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Search Anywhere | |
// @namespace http://tampermonkey.net/ | |
// @version INITIAL | |
// @description Press Alt+D to activate search function within a webpage, Press Alt+D,D(Double Tap) for default browser behavior. | |
// @author tez | |
// @include http://*/* | |
// @include https://*/* | |
// @grant none | |
// ==/UserScript== |
NewerOlder