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
//--------------------------------------------------- | |
//setup | |
var dModel = 256; //dimension of embedding | |
var INPUTSIZE = 1024; //length of input | |
var BLOCKS = 3; | |
var LEARNING_RATE = 0.003; | |
var OPTIMIZER = tf.train.adam(LEARNING_RATE, beta_1 = 0.85, beta_2 = 0.9, epsilon = 1e-9); | |
var LOSS = 'categoricalCrossentropy'; | |
var INITIALIZER = 'GlorotUniform'; |
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 * as tf from "@tensorflow/tfjs-node"; | |
// In my case I have 256x256 pictures | |
const IMG_SIZE = 256; | |
const NUMBER_OF_CHANNELS = 3; | |
// Batch normalisation and ReLU always go together, let's add them to the separate function | |
const batchNormRelu = (input: tf.Tensor4D) => { | |
const batch = tf.layers.batchNormalization().apply(input); | |
return tf.layers.reLU().apply(batch); |
A Pen by Shanqing Cai on CodePen.
ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
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
// MIT License - Copyright (c) 2016 Can Güney Aksakalli | |
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.Sockets; | |
using System.Net; | |
using System.IO; |
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
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
@if(0)==(0) @echo off & rem -*- Javascript -*- | |
CScript.exe //NoLogo //E:JScript "%~f0" %* | |
exit /b 0 | |
@end | |
var excel = new ActiveXObject("Excel.Application"), | |
WshShell = WScript.CreateObject("WScript.Shell"), | |
BIN_DIR = WScript.ScriptFullName.replace(WScript.ScriptName, ""); | |
WINDOW_CLASS = "HTML Application Host Window Class", | |
//WINDOW_CLASS = "Internet Explorer_Server", |
NewerOlder