Skip to content

Instantly share code, notes, and snippets.

Avatar

Hyuck Kang brainstormot

View GitHub Profile
@ahmed-musallam
ahmed-musallam / console.html
Created Dec 11, 2017
A simple browser console-like html setup
View console.html
<!--
I use this setup primarely on jsfiddle where I do not want to open chrome console while testing js code.
example: https://jsfiddle.net/wybmxgop/1/
-->
<!-- a Mono-spaced font-->
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<style>
ul#console {
list-style-type: none;
@gabrieleangeletti
gabrieleangeletti / rbm_after_refactor.py
Last active Jul 27, 2021
Restricted Boltzmann Machine implementation in TensorFlow, before and after code refactoring. Blog post: http://blackecho.github.io/blog/programming/2016/02/21/refactoring-rbm-tensor-flow-implementation.html
View rbm_after_refactor.py
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class RBM(object):
@myme5261314
myme5261314 / rbm_MNIST_test.py
Last active Apr 10, 2020
RBM procedure using tensorflow
View rbm_MNIST_test.py
import tensorflow as tf
import numpy as np
import input_data
import Image
from util import tile_raster_images
def sample_prob(probs):
return tf.nn.relu(
tf.sign(
@addyosmani
addyosmani / package.json
Last active Apr 21, 2022
npm run-scripts boilerplate
View package.json
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@masahirompp
masahirompp / Author.ts
Last active Feb 25, 2021
typescript + mongoose
View Author.ts
/// <reference path="../typings/tsd.d.ts" />
import db = require('../db/db');
import IAuthorDocument = require('../db/IAuthorDocument');
class Author {
private _author:IAuthorDocument;
constructor(author:IAuthorDocument) {
this._author = author;