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 tensorflow as tf | |
@tf.function | |
def get2dHistogram(x, y, | |
value_range, | |
nbins=100, | |
dtype=tf.dtypes.int32): | |
""" | |
Bins x, y coordinates of points onto simple square 2d histogram | |
Given the tensor x and y: |
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 adds an option `.tomcatProxy` in namespace | |
# services.nginx.virtualHosts.*.locations.* | |
# that acts as alternative to specifying actual nginx config in .extraConfig | |
# | |
# execute with | |
/* | |
cat $(grep -o "/nix/store/[a-z0-9]*-nginx.conf" \ | |
$(NIX_PATH=nixos-config=./example.nix:$NIX_PATH \ | |
nix-build --no-out-link -E ' | |
with import <nixpkgs/nixos> {}; |
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
var express = require('express'), | |
request = require('request'), | |
BufferList = require('bufferlist').BufferList, | |
sys = require('sys'); | |
var app = express.createServer( | |
express.logger(), | |
express.bodyDecoder() | |
); |