Skip to content

Instantly share code, notes, and snippets.

View rscarrera27's full-sized avatar
👊
Keep Going

Sunghyun Kim rscarrera27

👊
Keep Going
View GitHub Profile
@rscarrera27
rscarrera27 / AND.py
Created August 3, 2017 12:26
퍼셉트론 AND 게이트
def AND(x1, x2):
w1, w2, theta = 0.5, 0.5, 0.7
tmp = (x1 * w1) + (x2 * w2)
if tmp <= theta:
return 0
elif tmp > theta:
return 1
@rscarrera27
rscarrera27 / AND_bias.py
Created August 3, 2017 12:45
편향을 사용한 AND 퍼셉트론
def AND(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.7
tmp = np.sum(w*x) + b
if tmp <= 0:
return 0
else:
return 1
@rscarrera27
rscarrera27 / XOR.py
Created December 22, 2017 11:40
다층 퍼셉트론을 응용한 XOR분류
def AND(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.7
tmp = np.sum(w*x) + b
if tmp <= 0:
return 0
else:
return 1
@rscarrera27
rscarrera27 / myscanf.c
Created January 26, 2018 09:35
myscanf
#include <stdio.h>
#include <stdlib.h>
int myscanf(char type[2], void *var);
int gets(char *address);
int main(void){
/*
char temp[16];
myscanf("%c", temp);

Keybase proof

I hereby claim:

  • I am devArtoria on github.
  • I am devartoria (https://keybase.io/devartoria) on keybase.
  • I have a public key whose fingerprint is 58DB 9834 14E8 8675 9FA7 2C39 BEF8 51B8 75A0 5B6B

To claim this, I am signing this object:

import random
from sanic import Sanic
from sanic.response import json
from sanic.request import Request
from sanic_jwt_extended import (
JWTManager, jwt_required, create_access_token,
create_refresh_token)
import uuid
from sanic_jwt_extended.tokens import Token
from sanic import Sanic
from sanic.response import json
from sanic.request import Request
from sanic_jwt_extended import (
JWTManager, jwt_required, create_access_token,
create_refresh_token, jwt_refresh_token_required)
from sanic_jwt_extended.tokens import Token
from sanic_jwt_extended.blacklists import InMemoryBlacklist