Skip to content

Instantly share code, notes, and snippets.

View Kcrong's full-sized avatar
🇰🇷
Smile

Henry Kim Kcrong

🇰🇷
Smile
View GitHub Profile
from random import shuffle
tags = ['a', 'b', 'c', 'result']
def get_triangle_type(a, b, c):
if a == 90 or b == 90 or c == 90:
return "직각"
elif a > 90 or b > 90 or c > 90:
return "둔각"
elif a == b == c == 60:
sudo apt-get update
sudo apt-get install python-dev libffi-dev libssl-dev zlib1g-dev libncurses5-dev libsqlite3-dev -y
tar xvf Python-2.7.*.tar.xz
cd Python-2.7.*
./configure
sudo make -j 4
sudo make altinstall
which python2
class A:
def __init__(self, percentage):
self.percentage = percentage
if __name__ == '__main__':
data = [A(12), A(32), A(22)]
@Kcrong
Kcrong / main.cpp
Created May 30, 2016 01:39
neuron_ask_main
#include <iostream>
#include <ctime>
using namespace std;
void main()
{
srand((unsigned)time(NULL)); // Set random seed
Neuron* neuron = new Neuron(2, 0.1);