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
"""Pseudocode description of the AlphaZero algorithm.""" | |
from __future__ import google_type_annotations | |
from __future__ import division | |
import math | |
import numpy | |
import tensorflow as tf | |
from typing import List |
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
# This example shows how to use keras TensorBoard callback | |
# with model.train_on_batch | |
import tensorflow.keras as keras | |
# Setup the model | |
model = keras.models.Sequential() | |
model.add(...) # Add your layers | |
model.compile(...) # Compile as usual |
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
set $mode_session session [s]elect [r]ename [f]latten | |
bindsym $mod+s mode "$mode_session" | |
mode "$mode_session" { | |
bindsym s exec --no-startup-id ~/bin/way_select_session.py, mode "default" | |
bindsym r exec --no-startup-id ~/bin/way_rename_workspace.py, mode "default" | |
bindsym f exec --no-startup-id ~/bin/way_flatten_sessions.py, mode "default" | |
bindsym Escape mode "default" | |
bindsym Return mode "default" | |
} |
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
#!/bin/python | |
# Replace matching patterns at the specified locations | |
# | |
# On stdin it expects locations (as reported by the rustc compiler): | |
# | |
# --> path/to/file.rs:line:col | |
# | |
# Lines not matching this pattern are ignored: |
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
#!/bin/python | |
# Replace matching patterns at the specified locations | |
# | |
# On stdin it expects locations: | |
# | |
# <file_path>|<line> col <col>| match | |
# | |
# For example: | |
# |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct _btree { | |
int value; | |
struct _btree *left; | |
struct _btree *right; | |
} btree; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define SENTINEL_VALUE -1 | |
typedef struct _list { | |
int value; | |
struct _list *prev; | |
struct _list *next; | |
} list; |
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
# OVERVIEW: | |
# parse command line | |
# write output header | |
# create filter string | |
# read csv -> machines | |
# for machine in machines | |
# Get-WSManInstance wmicimv2/* | |
# -ComputerName ... | |
# -Enumerate |
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
;*************************************************************** | |
;* Feladat: Forgalmi jelzolampa fenyerzekelo ejszakai uzemmoddal | |
;* Rövid leírás: | |
; | |
;* Szerzők: Thaler Benedek EDDO10 | |
;* Mérőcsoport: CDU65 | |
; | |
;*************************************************************** | |
;* "AVR ExperimentBoard" port assignment information: | |
;*************************************************************** |
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
#include <node.h> | |
#include <v8.h> | |
#include <iostream> | |
using namespace v8; | |
using namespace node; | |
class Point | |
:ObjectWrap |
NewerOlder