I hereby claim:
- I am ygpark2 on github.
- I am ygpark2 (https://keybase.io/ygpark2) on keybase.
- I have a public key whose fingerprint is 3E3D C59D EA4B B475 B7FE 6AFF 0A84 0C16 3528 17B7
To claim this, I am signing this object:
from queue import Queue, PriorityQueue | |
from threading import Thread | |
class DisplayManager(Thread): | |
def __init__(self, observer): | |
Thread.__init__(self) | |
self.queue = Queue() |
I hereby claim:
To claim this, I am signing this object:
package com.kdn.evcs.service; | |
import kr.co.smartro.xpg_pay.crypt; | |
import org.apache.commons.codec.binary.Base64; | |
import org.apache.commons.codec.digest.DigestUtils; | |
import org.apache.commons.codec.net.URLCodec; | |
import org.aspectj.lang.annotation.Before; | |
import org.codehaus.jackson.JsonProcessingException; | |
import org.json.simple.JSONObject; |
package com.kdn.evcs.service; | |
import Kisinfo.Check.IPINClient; | |
import NiceID.Check.CPClient; | |
import com.kdn.evcs.common.BaseConstant; | |
import com.kdn.evcs.common.LogHelper; | |
import org.springframework.stereotype.Service; | |
import java.util.HashMap; | |
import java.util.Map; |
import random | |
a = [random.randint(1,100) for _ in range(20)] | |
sorted_array = [] | |
def swap(a, ppos, cpos): | |
a[ppos],a[cpos] = a[cpos],a[ppos] | |
print(a[ppos], a[cpos], ppos, cpos) |
Options: | |
-c, --connection-limit=N connection limit for role (default: no limit) | |
-d, --createdb role can create new databases | |
-D, --no-createdb role cannot create databases (default) | |
-e, --echo show the commands being sent to the server | |
-E, --encrypted encrypt stored password | |
-i, --inherit role inherits privileges of roles it is a | |
member of (default) | |
-I, --no-inherit role does not inherit privileges |
List.fill(9)(1 to 9).zipWithIndex.map{ case(v, i) => v.map(a => f"$a%02d * ${i+1}%02d = ${a*(i+1)}%02d") }.flatten.map(println) | |
(1 to 9).flatMap( x => (1 to 9).map( (x, _) )).map(x => f"${x._1}%02d * ${x._2}%02d = ${x._1 * x._2}%02d").foreach(println) |
def http_client(url, method, headers={}, body=nil) | |
require 'net/http' | |
uri = URI.parse("#{url}") | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true if uri.scheme == "https" | |
request = "Net::HTTP::#{method.capitalize}".constantize.new(uri.request_uri) | |
headers.keys.each do |key| | |
request[key] = headers[key] | |
end | |
if body.is_a?(Hash) |
MOVE | |
MOVE | |
MOVE | |
RIGHT | |
MOVE | |
REPORT | |
RIGHT | |
MOVE | |
RIGHT | |
MOVE |
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |