This file contains 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 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 |
This file contains 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 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 |
This file contains 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
// | |
// ViewController.swift | |
// PickerView | |
// | |
// Created by Kwoncheol on 26/08/2017. | |
// Copyright © 2017 Kwoncheol. All rights reserved. | |
// | |
import UIKit |
This file contains 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
class Countdown extends EventEmitter { | |
constructor(seconds, superstitious) { | |
super(); | |
this.seconds = seconds; | |
this.superstitious = !!superstitious; | |
} | |
go() { | |
const countdown = this; | |
const timeoutIds = []; |
This file contains 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 React, { Component } from 'react'; | |
import { CookiesProvider } from 'react-cookie'; | |
import Main from './main/Main'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( |
This file contains 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 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) { |
This file contains 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 React, { useState } from 'react'; | |
import './PopUpView.css'; | |
interface PopUpViewProps {} | |
function PopUpView(props: PopUpViewProps) { | |
const [selCheck, setSelCheck] = useState<boolean>(false); | |
const onClosePopUp = (): void => { |
This file contains 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
class PopUpDC { | |
public COOKIE_VALUE = 'never-show-up-today'; | |
} | |
export default new PopUpDC(); |
This file contains 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 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 {} |
This file contains 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 React, { useState } from 'react'; | |
import './PopUpView.css'; | |
interface PopUpViewProps { | |
closePopUp: (selCheck: boolean) => void; | |
} | |
function PopUpView(props: PopUpViewProps) { | |
const [selCheck, setSelCheck] = useState<boolean>(false); |
OlderNewer