Skip to content

Instantly share code, notes, and snippets.

{
"chain": [
{
"index": 1,
"previous_hash": 1,
"proof": 100,
"timestamp": 1521515418.229695,
"transactions": []
},
{
@dmonopoly
dmonopoly / generate tensorflow docs error output
Created May 1, 2017 19:59
partial output of error from command: bazel run tools/docs:generate -- --src_dir=`pwd`/tensorflow/docs_src/ --output_dir=/tmp/tfdocs/
...
WARNING: Using default arg, failed lookup: GATE_OP, repr: 1
Writing docs for tf.assert_less (<function assert_less at 0x10db64578>).
Writing docs for tf.gfile.DeleteRecursively (<function delete_recursively at 0x10de7a500>).
Writing docs for tf.image.decode_png (<function decode_png at 0x10dc71848>).
Writing docs for tf.contrib.cloud.BigQueryReader (<class 'tensorflow.contrib.cloud.python.ops.bigquery_reader_ops.BigQueryReader'>).
Writing docs for tf.contrib.keras.backend.log (<function log at 0x110972578>).
Writing docs for tf.contrib.nccl.all_max (<function all_max at 0x110d2aed8>).
Writing docs for tf.contrib.keras.backend.update_sub (<function update_sub at 0x1109719b0>).
Writing docs for tf.get_default_session (<function get_default_session at 0x10d64e398>).
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
struct One {
string name;
vector<string> values;
};
@dmonopoly
dmonopoly / gist:4951167
Created February 14, 2013 07:33
divider_combined_cu_dpu.v
// ----------------------------------------------------------------------
// A Verilog module for a simple divider
// Written by Gandhi Puvvada Date: 7/17/98, 2/15/2008, 10/13/08, 2/21/2010
// File name: divider_combined_cu_dpu.v
// ------------------------------------------------------------------------
// This is an improvement over divider.v
// We combined the two separate case statements in the divider.v
// into one single case statement.
// Notice the following lines added because of this combining
// X <= 4'bXXXX; // to avoid recirculating mux controlled by Reset
@dmonopoly
dmonopoly / gist:4753033
Created February 11, 2013 06:52
ff_reset_verilog.v
//----------------------------------------------------------------------------
// A verilog module for a ff_reset (based on my vhdl module ff_reset.vhd)
// Written by Gandhi Puvvada Date: 2/15/2008
// File name: ff_reset.v
// Analyze and simulate for 550ns in modelsim.
// Answer all questions posted below.
//----------------------------------------------------------------------------
// When you compile this design in synopsys, use the following command so that,
// the mapped design can NOT use complex cells with builtin muxes.
// set_dont_use lcb500kv/FDS*
@dmonopoly
dmonopoly / gist:4752920
Last active December 12, 2015 09:39
ee201_roller.v
`timescale 1ns / 1ps
module ee201_roller(Clk, Reset, NewX, X);
/* INPUTS */
// Clock & Reset
input Clk, Reset;
input NewX;
/**
//////////////////////////////////////////////////////////////////////////////////
// Author: Brandon Franzke
// Create Date: 2013-02-04
// Modified:
// File Name: ee201_clk_60Hz.v
// Description:
//
//
// Revision: 1.1
// Additional Comments:
@dmonopoly
dmonopoly / gist:1513155
Created December 23, 2011 04:35
How do you convert this animate method of jQuery to CoffeeScript?
$('#book').animate({
opacity: 0.25,
left: '+=50',
height: 'toggle'
}, 5000, function() {
// Animation complete.
});
@dmonopoly
dmonopoly / gist:1500327
Created December 20, 2011 04:59
Coffeescript - methods using methods?
# Implementation of Application.Memory.Index class
jQuery ->
@module "Application.Memory", ->
class @Index
# Needed because the height depends on window size
setHeightOfLifeTimeFrame: ->
height = `$(document).height()`
$('#life_time_frame').css('height', height-50 + 'px');
$(".memory").hover ->
memory = $(this).attr('id')
id = memory.split('_')[1] # get id of e.g. memory_4
#find memory
time_frames = <% Memory.find(id).time_frames %>
for time_frame in time_frames
tf_id = time_frame.id
$("#"+tf_id).toggle()