Skip to content

Instantly share code, notes, and snippets.


Hyuck Kang brainstormot

View GitHub Profile
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.
<!-- a Mono-spaced font-->
<link href="" rel="stylesheet">
ul#console {
list-style-type: none;
gabrieleangeletti /
Last active Jul 27, 2021
Restricted Boltzmann Machine implementation in TensorFlow, before and after code refactoring. Blog post:
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class RBM(object):
myme5261314 /
Last active Apr 10, 2020
RBM procedure using tensorflow
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(
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 / 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;