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
| '''지정한 폴더의 weekly .md 파일들에서 사용자가 작성한 부분들을 뽑아내서 한 파일로 만들어줍니다.''' | |
| import glob | |
| import re | |
| import pathlib | |
| def getBasename(path): | |
| '''경로에서 파일 이름만 추출. (a/b/c.md에서 c.md만 추출.)''' | |
| return pathlib.Path(path).name |
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
| # pip install imdbpy로 imdbpy 라이브러리 설치해야됨. | |
| # (안 되면 python -m pip install imdbpy) | |
| from imdb import IMDb | |
| def printMovie(movie): | |
| # movie['title']: 제목만, movie['long imdb title']: 연도도 같이. | |
| title = movie['long imdb title'] | |
| movieID = movie.movieID |
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
| pragma solidity ^0.5.7; | |
| contract BC3D { | |
| // ====================================================== | |
| // Types. | |
| struct Project { | |
| bytes32 id; | |
| string name; | |
| string keyword; |
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
| var w = 31; | |
| var ct = 0; | |
| var ic = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); | |
| function rp(s, n) { | |
| var line = ""; | |
| var i; | |
| for (i = 0; i < n; i++) { | |
| line += s; |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class FlyCamera : MonoBehaviour { | |
| /* | |
| Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care. | |
| Converted to C# 27-02-13 - no credit wanted. | |
| Simple flycam I made, since I couldn't find any others made public. | |
| Made simple to use (drag and drop, done) for regular keyboard layout |
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
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <chrono> | |
| #include <thread> | |
| #include <cmath> | |
| template<typename T> | |
| int cut(T value, int bottom, int top) { | |
| int intValue = static_cast<int>(value); |
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
| Original: | |
| A: (0, 0, 0) | |
| |-B: (0, 0, 0) | |
| |-D: (0, 0, 0) | |
| |-F: (1, 0, 0) | |
| |-G: (2, 0, 0) | |
| |-E: (0, 0, 0) | |
| |-C: (0, 0, 0) | |
| |-H: (0, 1, 0) | |
| |-I: (0, 2, 0) |
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 math | |
| # ============================================================= | |
| # 2-dimensional matrix | |
| class Matrix: | |
| """| 1 2 | -> Matrix([1, 2, 3, 4]) | |
| | 3 4 | | |
| """ | |
| def __init__(self, elems): |
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 cs1robots as cs | |
| import time | |
| # patch some methods | |
| def add_beeper(self, av, st, num=None): | |
| if num is None: | |
| self.beepers[(av, st)] = 1 | |
| else: | |
| self.beepers[(av, st)] = num |
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 | |
| py_major, py_minor = sys.version_info[:2] | |
| if py_major <= 2: | |
| import Tkinter as tk | |
| else: | |
| import tkinter as tk | |
| data_star = ''' |
NewerOlder