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
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
# Usage: $echo "This is google translator." | python google_trans.py [-i <Input Language>] [-o <Output Language>] [-s] | |
import sys | |
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import urllib | |
import re | |
import getopt | |
import os |
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
ODROIDXU-UBOOT-CONFIG | |
# source by kenken> http://forum.odroid.com/viewtopic.php?f=98&t=6643#p64051 | |
setenv dtb_addr_r 0x42000000 | |
setenv dtb_path /exynos5422-odroidxu3.dtb | |
setenv kernel_addr_r 0x60000000 | |
setenv kernel_path /zImage | |
setenv xen_addr_r 0x50000000 | |
setenv xen_path /xen |
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
#!/usr/bin/python | |
#-*- coding: utf-8 -*- | |
from gtts import gTTS | |
import os | |
import json | |
import sys | |
owner = '๋ธ๋ผ์ด์ธ' | |
while True: |
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
#!/bin/bash | |
for i in {0..10} | |
do | |
burnCortexA9& | |
done | |
clear | |
for i in {1..60} | |
do | |
sleep 1 |
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
#!/usr/bin/env python | |
# $ sudo apt install youtube-dl ffmpeg | |
import bs4 | |
import requests | |
import os | |
# ์๋ URL ์์ . ์ต์ ๊ฐ์๊ฐ ์ฌ๋ผ์ค๋ ์ ํ๋ธ ์ฑ๋๋ก URL๋ก ๋ณ๊ฒฝ | |
channel_url = 'https://www.youtube.com/channel/UC8inZoPlovl-QsPUbKFv5JQ/videos' | |
base_url = 'https://www.youtube.com/watch?v=' |
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
#!/usr/bin/env python | |
# Usage> | |
# $ pip install luigi | |
# $ python luigi_test.py FrameExtractTask --filename small_file.mp4 --local-scheduler | |
import os | |
import luigi | |
import sys | |
import time | |
import subprocess |
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
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: media-works- | |
spec: | |
entrypoint: media-works-ffmpeg | |
volumes: | |
- name: workdir | |
persistentVolumeClaim: | |
claimName: azure-managed-disk |
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 tensorflow as tf | |
from tensorflow.core.util import event_pb2 | |
from pathlib import Path | |
train_metrics = [ | |
"Loss/classification_loss", | |
"Loss/localization_loss", | |
"Loss/normalized_total_loss", | |
"Loss/regularization_loss", | |
"Loss/total_loss", |
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 azureml.core import Experiment, Workspace, Run | |
import pprint | |
import os | |
resource_group = os.environ["AUZURE_RESOURCE_GROUP"] | |
workspace_name = os.environ["AUZRE_WORKSPACE_NAME"] | |
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"] | |
ws = Workspace( |
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 tensorflow.compat.v1 as tf | |
tf.disable_v2_behavior() | |
from tensorflow.python.saved_model import signature_constants | |
from tensorflow.python.saved_model import tag_constants | |
export_dir = './saved' | |
graph_pb = 'frozen_inference_graph.pb' | |
builder = tf.saved_model.builder.SavedModelBuilder(export_dir) |