Skip to content

Instantly share code, notes, and snippets.

View karamarimo's full-sized avatar

karamarimo

  • Japan
View GitHub Profile
@karamarimo
karamarimo / wait-for-patch.js
Created October 19, 2017 22:19
periodically check if doto blog has got updated
const http = require('http')
const interval = 3000
console.log('ctrl+c to stop')
checkUpdate()
let dotohtml = null
async function checkUpdate () {
try {
const newhtml = await getPage('http://blog.dota2.com/')
@karamarimo
karamarimo / gist:824a5c0748d85b161da9aa2df2e93b92
Created September 21, 2017 09:57
python3 tkinter file I/O
import tkinter
import tkinter.filedialog
import tkinter.messagebox
import sys
root=tkinter.Tk()
def pass_test():
pass