Skip to content

Instantly share code, notes, and snippets.

View anilkay's full-sized avatar
🏠
Working from home

Anıl Kaynar anilkay

🏠
Working from home
View GitHub Profile
// Get measurements for a new flower to generate a prediction
// The first argument is the data, and the second is the shape.
const inputData = tf.tensor2d([[4.8, 3.0, 1.4, 0.1]], [1, 4]);
// Get the highest confidence prediction from our model
const result = model.predict(inputData);
const winner = irisClasses[result.argMax().dataSync()[0]];
// Display the winner
console.log(winner);
@xujiaao
xujiaao / android-set-ntp-server.md
Last active December 16, 2025 14:40
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

@Akaame
Akaame / tr.csv
Created December 30, 2017 14:52
Türkiye il yüz ölçümleri, 2016 nüfus sayımı verisi ve nüfus yoğunluğu
id il nufus alan yogunluk kod
1 Adana 2201670 13844 159.03 1
2 Adıyaman 610484 7337 83.21 2
3 Afyonkarahisar 714523 14016 50.98 3
4 Ağrı 542255 11099 48.86 4
5 Aksaray 396673 7659 51.79 68
6 Amasya 326351 5628 57.99 5
7 Ankara 5346518 25632 208.59 6
8 Antalya 2328555 20177 115.41 7
9 Ardahan 98335 4934 19.93 75
anonymous
anonymous / firstreact.markdown
Created July 30, 2017 21:27
firstReact
anonymous
anonymous / index.html
Created July 4, 2017 08:01
LLmJqM
<div id="bir">
</div>
<div id="iki">
</div>
@jeffg-dev
jeffg-dev / anaconda-tensorflow-keras.txt
Created March 29, 2017 00:45
Anaconda Keras / TensorFlow environment setup
Install TensorFlow (CPU), Keras, and some other tools to a new anaconda environment.
Open Anaconda Prompt
conda create --name tensorflow35 python=3.5
conda activate tensorflow35
conda install jupyter
conda install scipy
conda install spyder
pip install tensorflow
@wesbos
wesbos / async-await.js
Created February 22, 2017 14:02
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@EncodeTS
EncodeTS / keras VGG-Face Model.md
Last active February 19, 2024 06:56
VGG-Face model for keras

VGG-Face model for Keras

This is the Keras model of VGG-Face.

It has been obtained through the following method:

  • vgg-face-keras:directly convert the vgg-face matconvnet model to keras model
  • vgg-face-keras-fc:first convert vgg-face caffe model to mxnet model,and then convert it to keras model

Details about the network architecture can be found in the following paper:

@monsonite
monsonite / VTL.ino
Created January 15, 2016 09:06
VTL - A Very Tiny Language for Arduino
// Very Tiny Language T. Nakagawa 2004/05/23 2004/06/26
#include <uart.h>
#include <avr/io.h>
#define F_CPU 16000000UL // define the clock frequency as 16MHz
#define BAUD 115200*2
#include <util/setbaud.h> // Set up the Uart baud rate generator