Skip to content

Instantly share code, notes, and snippets.

View kwoncharles's full-sized avatar
🐎

Charles Kwoncheol Shin kwoncharles

🐎
View GitHub Profile
import tensorflow as tf
import random
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
mnist.train.images.shape
nb_classes = 10
@kwoncharles
kwoncharles / ImageNet with CNN(toy)
Created July 20, 2017 04:09
Reference to 'DeepLearningZeroToAll' MNIST CNN
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
import pickle
def unpickle(file):
with open(file, 'rb') as fo:
dict = pickle.load(fo)
return dict
//
// ViewController.swift
// PickerView
//
// Created by Kwoncheol on 26/08/2017.
// Copyright © 2017 Kwoncheol. All rights reserved.
//
import UIKit
@kwoncharles
kwoncharles / CountdownWithTimeout.js
Created January 7, 2019 05:34
Examples from "JS 비동기 프로그래밍 이해하기[2]"
class Countdown extends EventEmitter {
constructor(seconds, superstitious) {
super();
this.seconds = seconds;
this.superstitious = !!superstitious;
}
go() {
const countdown = this;
const timeoutIds = [];
import React, { Component } from 'react';
import { CookiesProvider } from 'react-cookie';
import Main from './main/Main';
import './App.css';
class App extends Component {
render() {
return (
import React, { useState } from 'react';
import moment from 'moment';
import { withCookies, Cookies, ReactCookieProps } from 'react-cookie';
import PopUpView from '../popup/PopUpView';
import './Main.css'
interface MainProps extends ReactCookieProps {}
function Main(props: MainProps) {
import React, { useState } from 'react';
import './PopUpView.css';
interface PopUpViewProps {}
function PopUpView(props: PopUpViewProps) {
const [selCheck, setSelCheck] = useState<boolean>(false);
const onClosePopUp = (): void => {
class PopUpDC {
public COOKIE_VALUE = 'never-show-up-today';
}
export default new PopUpDC();
import React, { useState, useEffect } from 'react';
import moment from 'moment';
import { withCookies, Cookies, ReactCookieProps } from 'react-cookie';
import PopUpDC from '../popup/PopUpDC';
import PopUpView from '../popup/PopUpView';
import './Main.css'
interface MainProps extends ReactCookieProps {}
@kwoncharles
kwoncharles / PopUpView.tsx
Created February 24, 2019 07:28
complete version of PopUpView
import React, { useState } from 'react';
import './PopUpView.css';
interface PopUpViewProps {
closePopUp: (selCheck: boolean) => void;
}
function PopUpView(props: PopUpViewProps) {
const [selCheck, setSelCheck] = useState<boolean>(false);