Skip to content

Instantly share code, notes, and snippets.

@DanielTimLee
DanielTimLee / prototype.py
Created July 24, 2018 16:16 — forked from pazdera/prototype.py
Example of `prototype' design pattern in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Example of `prototype' design pattern
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@DanielTimLee
DanielTimLee / Dockerfile
Last active April 4, 2018 10:42
Docker Final
FROM nvidia/cuda:latest
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 && \
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb.list && \
apt-get update && \
apt-get install -y mongodb-org && \
apt-get install -y python3 python3-pip
RUN pip3 install flask
@DanielTimLee
DanielTimLee / Dockerfile
Last active April 4, 2018 10:46
MongoDB docker?
FROM nvidia/cuda:latest
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 && \
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb.list && \
apt-get update && \
apt-get install -y mongodb-org && \
apt-get install -y python3 python3-pip
RUN pip3 install flask
void T3AI::GetBestMove()
{
Position iList[TOTAL]; /* 현재 게임판에서 놓을 수 있는 좌표 개수, 위치 저장 */
int bestValue = -10000; /* besteval 값 선언 */
int possible = 0; /* 가능한 개수 저장 변수 */
possible = GetPossibleMove(iList); /*현재 가능한 수 좌표, 개수 저장 */
for( int i = 0; i < possible; i++ ) /* 가능한 수 만큼 Minimax 알고리즘을 사용하여 수를 계산 */
{
# asdf
sadfa
sdaf
More details can be found here: [Selenium Headless]
`apt-get install xvfb`
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
@DanielTimLee
DanielTimLee / 0_Boilerplate
Last active December 11, 2017 04:02
Boilerplate
Boilerplate
@DanielTimLee
DanielTimLee / 0_NGINX
Last active December 11, 2017 03:57
NGINX
NGINX conf and other logs.
@DanielTimLee
DanielTimLee / 0_Misc
Last active December 11, 2017 04:07
Misc
Misc
@DanielTimLee
DanielTimLee / 0_Linux Scripts
Last active February 9, 2019 17:20
Linux Scripts
Linux Scripts
Package Manager with pacapt
Cron Build by Travis
Automatic Daily Cron Build by Travis