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
| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
| closely match default behavior on Windows systems. This makes the Command key | |
| behave like Windows Control key. To use Control instead of Command, either swap | |
| Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
| or replace @ with ^ in this file. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers |
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 sys | |
| import os | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import importlib | |
| import pickle | |
| # put nn_layers to your working directory (or set appropriate paths) | |
| import nn_layers as nnl |
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 functools import cached_property | |
| import numpy as np | |
| from numpy.lib.format import descr_to_dtype | |
| from skimage.util.shape import view_as_windows | |
| ####### | |
| # if necessary, you can define additional functions which help your implementation, | |
| # and import proper libraries for those functions. | |
| ####### |
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 sys | |
| import os | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from scipy import stats | |
| import scipy.special as sp | |
| import time | |
| from scipy.optimize import minimize | |
| from collections import Counter |
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 requests | |
| from bs4 import BeautifulSoup | |
| import telegram | |
| from apscheduler.schedulers.blocking import BlockingScheduler | |
| # ๊ฒ์ ํค์๋ | |
| search_word = '์ ํ์ํ' | |
| # ํ ๋ ๊ทธ๋จ ๋ด ์์ฑ |
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
| ์์ด์จ | |
| 84 | |
| 2020-12-23 20:14:55 | |
| 221.โก.64.179 | |
| ๋๊ธ์ ์ง๋ฌธ์ด ํ๋ถ ๊ณ์ ์ ๋์ ๋์๋ผ๊ณ ์ฌ๋ ค๋ด ๋๋ค. | |
| ์์๋๋ถ๋ค์ ์์๊ฒ ์ง๋ง์. ๋น๊ฐ๋ฐ์์ธ ์ผ๋ฐ์ธ๋ถ๋ค๋ ์์๋ฉด ํธํด์... | |
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
| arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
| sudo mkdir -p /opt/homebrew | |
| sudo chown -R $(whoami):staff /opt/homebrew | |
| cd /opt | |
| curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew | |
| export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| alias ibrew='arch -x86_64 /usr/local/bin/brew' |
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
| wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh | |
| arch -x86_64 /bin/bash | |
| conda create --name test python jupyter numpy matplotlib scipy | |
| conda install -c anaconda scikit-learn | |
| conda install -c conda-forge lightgbm | |
| conda activate test | |
| pip install pandas opencv-python torch |
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
| # 10/16 | |
| # high order function | |
| # map, filter, fold | |
| def hd(l): return l[0] | |
| def tl(l): return l[1:len(l)] | |
| def inc_all(l): | |
| if l == []: |
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
| # Exercise 1: Sum from 1 to n | |
| # Write a recursive function that computes the sum from 1 to n. | |
| # >>> sum(10) | |
| # 55 | |
| # >>> sum(100) | |
| # 5050 | |
| def sum(n): | |
| if n==1: return 1 | |
| else: | |
| return n+sum(n-1) |
NewerOlder