Skip to content

Instantly share code, notes, and snippets.

View imtaehyun's full-sized avatar

nezz imtaehyun

  • Amazon
  • Vancouver, Canada
View GitHub Profile
@khskekec
khskekec / libre-link-up-http-dump.md
Last active November 15, 2024 00:58
HTTP dump of Libre Link Up used in combination with FreeStyle Libre 3
@keicoon
keicoon / ndic.js
Last active October 22, 2020 07:23
code snippet about naver dictionary request in javascript
new Promise((resolve, reject) => {
var xhr = new XMLHttpRequest();
xhr.open("GET", `https://endic.naver.com/searchAssistDict.nhn?query=${text}`, true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
const content_word = /<div class="box_a">((.|\n)*?)<\/div>/g
const filter_word = /<span class="fnt_k20"><strong>(.+)<\/strong><\/span>/g
const body = xhr.responseText;
let words = [];
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@serithemage
serithemage / aws-study-resource.md
Last active August 29, 2024 07:18
AWS 학습 자료집

AWS 학습 링크집 시리즈

@stiffsteve
stiffsteve / main.dart
Created May 30, 2018 18:51
Flutter app that loads images from the camera roll and displays them in a ListView
import 'dart:io';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
class MyWindow(QMainWindow, form_class):
def __init__(self):
self.calltime=[]
self.count=0
... #생략
def timeout(self):
... #생략
self.stime = 1000*(current_time.hour() * 3600 + current_time.minute() * 60 + current_time.second())+current_time.msec()
self.tcalltime=self.calltime #임시저장
@verystrongjoe
verystrongjoe / Resilience.py
Created March 9, 2017 00:04
주식 회복 탄력성 지수 구하는 모듈
from bs4 import BeautifulSoup
import requests
import urllib
import datetime, time
from prettytable import PrettyTable
## resilience 주식의 회복 탄력성을 계산해주는 로직
class Resilience :
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active November 14, 2024 23:44
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
from bs4 import BeautifulSoup
from selenium import webdriver
import requests
import shutil
import os
url = 'https://www.google.co.kr/search?q={search}&tbm=isch'
search_keyword = '트와이스 모모'
@devStepsize
devStepsize / slack_slash_cmd.py
Created April 21, 2016 23:12
Server-side logic to handle a Slack slash command using Python and Flask
'''
This is an example of the server-side logic to handle slash commands in
Python with Flask.
Detailed documentation of Slack slash commands:
https://api.slack.com/slash-commands
Slash commands style guide:
https://medium.com/slack-developer-blog/slash-commands-style-guide-4e91272aa43a#.6zmti394c
'''