This file contains 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
clc; % Clear the command window. | |
clear; % Clear workspace variable | |
close all; % Clear figure windows | |
% Read the captured image file in MATLAB. | |
bmp = imread('RGB.bmp'); | |
% Display the image on the screen. | |
imshow(bmp); |
This file contains 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 PIL import Image | |
import os | |
print("현재 위치 = " + os.curdir) | |
old_dir = os.listdir(os.path.join('.', 'old') | |
rename_dir = os.path.join('.', 'rename') | |
if not os.path.exists(rename_dir): | |
os.mkdir(rename_dir) |
This file contains 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
# Output example | |
# Running: 100% [######################################################] 10 of 10 | |
from progressbar import ProgressBar, Percentage, Bar, SimpleProgress | |
widgets = ['Running: ', Percentage(), ' ', | |
Bar(marker='#', left='[', right=']'), | |
' ', SimpleProgress()] | |
pbar = ProgressBar(widgets=widgets, maxval=rangeOfFile.__len__()).start() |
This file contains 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 bs4 import BeautifulSoup | |
from progressbar import Bar, SimpleProgress, Percentage, ProgressBar | |
import urllib | |
blog1 = "blog_url" # url input | |
input1 = 1 # temporary input var | |
input2 = 41 | |
def replaceTxt(f, txt): |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// def const val | |
#define SAMPLING_BIT 16 | |
// def struct confficients for IIR | |
typedef struct __IIRConfficients { | |
double b0, b1, b2; |
This file contains 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
clc; % Clear the command window. | |
clear; % Clear workspace variable | |
close all; % Clear figure windows | |
% original file | |
file_name = 'sound.snd'; | |
file_id = fopen(file_name ,'r'); | |
file_info = dir(file_name); | |
file_size = file_info.bytes; |
This file contains 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
# Re: [WARNING] Intel Skylake/Kaby Lake processors: broken hyper-threading | |
# https://lists.debian.org/debian-user/2017/06/msg01011.html | |
# Copyright 2017 Uwe Kleine-König | |
# | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License version 2 as published by the | |
# Free Software Foundation. | |
open(my $cpuinfo, "</proc/cpuinfo") or die "failed to open cpuinfo\n"; |
This file contains 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
#include <cassert> | |
#define assert_false assert(false) | |
#define STATIC_TODO static_assert(false, "TODO") | |
#ifndef C_PLUS_PLUS_VERSION | |
#define C_11_UNDER 199711L | |
#define C_11_AFTER 201103L | |
#define C_14_AFTER 201402L | |
#define C_17_AFTER 201703L |
OlderNewer