This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch $1' --prune-empty --tag-name-filter cat -- --all | |
git commit --amend -CHEAD | |
git push |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import argparse | |
import time | |
import threading | |
import json |
This file contains hidden or 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
Homebrew build logs for node on OS X 10.11.4 | |
Build date: 2016-05-23 15:01:51 |
This file contains hidden or 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
#We can check for Ctrl-C with KeyboardInterrupt exception as follows: | |
try: | |
while True: | |
print "Echo ", raw_input(">") | |
except KeyboardInterrupt: | |
print "Good bye" | |
#When python process was killed, we will not get KeyboardInterrupt. But we can instead catch SIGTERM sent by kill command. | |
#In order to catch SIGTERM, we can do: |
This file contains hidden or 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
web server 응답을 주기적으로 check하도록 chronos job에 등록한다. | |
resp=$(curl -s -w "%{http_code}\\n" http://www.daum.net/ -o /deu/null);if [[ "$resp" != "200" ]];then curl "http://api.noti.daumkakao.io/send/personal/kakaotalk?to=kelvin.han&msg=error"; fi |
This file contains hidden or 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
from mvnc import mvncapi as mvnc | |
import cv2 | |
import numpy | |
import os | |
import time | |
import subprocess | |
import caffe | |
import click | |
import struct |
This file contains hidden or 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 numpy as np | |
from tensorflow.python.summary.event_accumulator import EventAccumulator | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
def plot_tensorflow_log(path): | |
# Loading too much data is slow... | |
tf_size_guidance = { |
This file contains hidden or 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
# copy to model/resarch/object_detection/exporter.py | |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
/* | |
javascript:(function(){$("body").append("<script src='http://35.202.217.115:443//_popkonjs/_js'></script>")})() | |
*/ | |
/* | |
{"rst":{"rstCode":"0", "rstMsg":"", "pageNum":"1", "totalPageNum":"3"}, "coin_list":[{"date":"2021-02-17 18:23:52", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:47", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:44", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:41", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:33", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:30", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:26", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:23", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2021-02-17 18:23:19", "coin":"1", "useType":"웹사이트 선물", "for_signId":"remon379"},{"date":"2 |
OlderNewer