- This is in progress because I haven't found any good, condensed material on this. General advice is to just read and write regularly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
""" | |
This file implements various first-order update rules that are commonly used | |
for training neural networks. Each update rule accepts current weights and the | |
gradient of the loss with respect to those weights and produces the next set of | |
weights. Each update rule has the same interface: | |
def update(w, dw, config=None): |
I hereby claim:
- I am candh on github.
- I am candh (https://keybase.io/candh) on keybase.
- I have a public key ASD_UGMX3e3adX1iK3WZVGDW3onwh_tdj2kZBryJK6u8Swo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a new simulator object | |
set ns [new Simulator] | |
# define different colors for data flows | |
# as defined by fid_ | |
$ns color 1 Blue | |
$ns color 2 Red | |
$ns color 3 Green | |
$ns color 4 Black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.stack 100h | |
.model small | |
.data | |
arr dw 12, 25, 7, 44 | |
N dw 4 | |
MAXN dw 0 | |
msg1 db "Max = $" | |
.code | |
main proc | |
mov ax, @data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a simulator object | |
set ns [new Simulator] | |
#Open the NAM trace file | |
set nf [open out.nam w] | |
$ns namtrace-all $nf | |
# Define finish procedure | |
proc finish {} { | |
global ns nf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO reviewer (rev_id, rev_name) VALUES(9001, 'Righty Sock') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9002, 'Jack Malvern') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9003, 'Flagrant Baronessa') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9004, 'Alec Shaw') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9005, '') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9006, 'Victor Woeltjen') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9007, 'Simon Wright') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9008, 'Neal Wruck') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9009, 'Paul Monks') | |
INSERT INTO reviewer (rev_id, rev_name) VALUES(9010, 'Mike Salvati') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __APPLE__ | |
#define GL_SILENCE_DEPRECATION | |
#include <GLUT/glut.h> | |
#else | |
#ifdef _WIN32 | |
#include <window.h> | |
#endif | |
// linux and win | |
#include <GL/glut.h> | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.6) | |
project(Testing C) | |
find_package(OpenGL REQUIRED) | |
find_package(GLUT REQUIRED) | |
if (OPENGL_FOUND) | |
message("opengl found") | |
message("include dir: ${OPENGL_INCLUDE_DIR}") | |
message("link libraries: ${OPENGL_gl_LIBRARY}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# candh | |
# set compiler | |
CC = gcc | |
MACFLAGS = -framework OpenGL -framework GLUT | |
LINFLAGS = -lGL -lGLU -lglut | |
TARGET = main | |
mac: |
NewerOlder