Skip to content

Instantly share code, notes, and snippets.

View Jah524's full-sized avatar

Jah524 Jah524

View GitHub Profile
@Jah524
Jah524 / README.md
Last active February 11, 2018 09:32
Clojure: Sign up / Sign in with Google

Set up

  1. Build project at Developer Console
  2. Get client-id and client-secret from project you build and set up redirect-url (see project.clj)
  3. Implement OAuth flow (see following work flow and google.clj

Work flow

  1. Goto http://127.0.0.1:3449/auth/google on your browser (use your host and port).
  2. Your application redirects the user to Google.
  3. User grants permissions.
@Jah524
Jah524 / feedforward.clj
Last active January 26, 2016 08:49
Clojureで0からのニューラルネット構築(フィードフォワードモデル)と隠れ層の挙動調査
(ns feedforward
(:require [incanter.core :refer [exp sin view]]
[incanter.charts :refer [function-plot add-function set-stroke-color]]))
(defn sigmoid [x]
(/ 1 (+ 1 (exp (- x)))))
(defn unit-output [input-list w-list bias activate-fn-key]
(let [activate-fn (condp = activate-fn-key
:sigmoid sigmoid