Skip to content

Instantly share code, notes, and snippets.

View abonec's full-sized avatar

Alexander abonec

  • Russian, Moscow
View GitHub Profile
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <UniversalTelegramBot.h>
// Initialize Wifi connection to the router
char ssid[] = "xxx"; // your network SSID (name)
char password[] = "xxx"; // your network key
// Initialize Telegram BOT
#define BOTtoken "xxx" // your Bot Token (Get from Botfather)
@abonec
abonec / plot_decision_boundary.py
Created August 15, 2017 19:42 — forked from dennybritz/plot_decision_boundary.py
plot_decision_boundary.py
# Helper function to plot a decision boundary.
# If you don't fully understand this function don't worry, it just generates the contour plot below.
def plot_decision_boundary(pred_func):
# Set min and max values and give it some padding
x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
y_min, y_max = X[:, 1].min() - .5, X[:, 1].max() + .5
h = 0.01
# Generate a grid of points with distance h between them
xx, yy = np.meshgrid(np.arange(x_min, x_max, h), np.arange(y_min, y_max, h))
# Predict the function value for the whole gid
{"color": "Orange", "annotates": [{"type": "gps_coords"}, {"type": "actor_name"}], "separator": ", "}
@abonec
abonec / sortable.go
Created January 23, 2019 12:59
sortable
package main
import (
"fmt"
"sort"
"time"
)
type Sortable interface {
Copy() Sortable
@abonec
abonec / shared_request.go
Last active February 14, 2019 13:24
shared request
package main
import (
"net/http"
"sync"
)
type Response struct {
}
type Request struct {