Skip to content

Instantly share code, notes, and snippets.

View NeuroWhAI's full-sized avatar
🤔
Thinking

NeuroWhAI NeuroWhAI

🤔
Thinking
View GitHub Profile
@NeuroWhAI
NeuroWhAI / Action.hpp
Last active May 28, 2017 03:30
Parameters like Member variables
#include <memory>
#include <functional>
#include <type_traits>
#include <tuple>
#include <utility>
template <typename... ARGS>
#include <unordered_map>
#include <deque>
#include <functional>
#include <type_traits>
#include <tuple>
#include <utility>
#include <memory>
#include <algorithm>
@NeuroWhAI
NeuroWhAI / TensorFlow-DCGAN-MNIST.py
Last active March 14, 2018 11:29
Generate MNIST images with DCGAN.
#-*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./mnist/data/", one_hot=True)
total_epoch = 100
@NeuroWhAI
NeuroWhAI / tfjs test.html
Created April 1, 2018 04:07
TensorFlow.js test
<!doctype html>
<html>
<head>
<title>TF.js Test</title>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.6.1"></script>
<script type="text/javascript">
// 선형회귀 모델 생성
const model = tf.sequential();
model.add(tf.layers.dense({units: 1, inputShape: [1]}));

Keybase proof

I hereby claim:

  • I am neurowhai on github.
  • I am neurowhai (https://keybase.io/neurowhai) on keybase.
  • I have a public key ASCayBuVkVv56r06LjMRaEeuW13n61qVRZnicPpWfO7phgo

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Anime4K</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<script src='main.js'></script>
</head>
@NeuroWhAI
NeuroWhAI / rocketguide.md
Created December 17, 2019 14:01 — forked from belst/rocketguide.md
Deploy Rocket in production

Deploy Rocket using Letsencrypt and nginx

Information

This guide uses the domain your-domain.tld and its www. prefixed version. It starts the rocket application on 127.0.0.1:1337 and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.

Prerequisites

You need to have nginx, certbot and rust installed.

@NeuroWhAI
NeuroWhAI / rule.rs
Created January 24, 2020 11:34
규칙 찾기 문제 풀다가 머리가 잘 안 돌아가서 뇌 준비운동으로 만듦.
use std::iter::FromIterator;
/// A rule for repositioning characters in a string.
struct Rule(Vec<usize>);
impl Rule {
/// Applies this rule to the input and returns the result.
///
/// # Examples
///
@NeuroWhAI
NeuroWhAI / stereo-visualizer.rs
Created February 22, 2020 12:15
Stereo Visualizer
use ggez::{
audio::{self, SoundSource},
conf::{WindowSetup, WindowMode},
error::GameError,
event, graphics,
input::keyboard,
graphics::DrawParam,
Context, GameResult,
};
use rodio::Source;
@NeuroWhAI
NeuroWhAI / Pews.cs
Last active May 3, 2020 12:21
기상청 실시간 지진 감시 페이지 크롤러.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Threading;
using System.Net.Http;
using System.Net;
using System.IO;