Skip to content

Instantly share code, notes, and snippets.

View ivanpepelko's full-sized avatar
🐧
Kowalski, analysis!

Ivan Pepelko ivanpepelko

🐧
Kowalski, analysis!
View GitHub Profile
@ivanpepelko
ivanpepelko / PotatoBot.md
Last active April 7, 2016 10:48
PotatoBot detailed description

PotatoBot

###Default help message

Bot automatically responds with match stats to text messages containing Dotabuff or YASP link.

<> - required parameters
[] - optional parameters

###UI #####ng2-admin

  • preview
  • github
  • file structure layout, ui components, dev-prod config out of the box
  • multiple color schemes
  • few js components

#####ng2-bootstrap-sbadmin

@ivanpepelko
ivanpepelko / swagger.json
Last active June 27, 2016 11:52
antispam swagger
{
"swagger": "2.0",
"info": {
"title": "Flowly Traffic Engine API",
"description": "Flowly Traffic Engine API for fetching flowly user info, api keys, etc etc etc....\n",
"version": "0.0.1",
"contact": {
"name": "Flowly dev team",
"url": "https://www.flowly.com",
"email": "[email protected]"
@ivanpepelko
ivanpepelko / hamming.js
Last active July 6, 2016 21:59
Simple 7 bit hamming code correction
<!DOCTYPE html>
<html>
<head>
<title>Hamming</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<form>
<label for="binary">Number:</label>
@ivanpepelko
ivanpepelko / slowscroll.js
Created October 4, 2016 12:47
javascript slow scroll
function slowscroll() {
this.current = pageYOffset;
if (this.current < scrollMaxY && this.to > this.current) {
window.scrollBy(0, 100);
setTimeout(slowscroll.bind(this), 1);
}
}
(slowscroll.bind({to:21352}))();
@ivanpepelko
ivanpepelko / fann.stub.php
Last active April 26, 2022 13:13
PHP FANN stub for editors and IDEs
<?php
define('FANN_TRAIN_INCREMENTAL', 0);
define('FANN_TRAIN_BATCH', 1);
define('FANN_TRAIN_RPROP', 2);
define('FANN_TRAIN_QUICKPROP', 3);
define('FANN_TRAIN_SARPROP', 4);
define('FANN_LINEAR', 0);
define('FANN_THRESHOLD', 1);
define('FANN_THRESHOLD_SYMMETRIC', 2);

Keybase proof

I hereby claim:

  • I am ivanpepelko on github.
  • I am ivanpepelko (https://keybase.io/ivanpepelko) on keybase.
  • I have a public key ASChdwMPgaVoYLNNXAq_y1RkcIM1wLk8vGtVHNMEDujtqQo

To claim this, I am signing this object:

@ivanpepelko
ivanpepelko / api.md
Created December 23, 2021 12:05
Brain games API

CORS settings

All requests must include credentials, cookies are used to identify users ( see XMLHttpRequest.withCredentials).

GET /games

Returns game list:

@ivanpepelko
ivanpepelko / .awesome.md
Last active November 29, 2023 14:55
My personal awesome lists

Awesome lists

Contents

@ivanpepelko
ivanpepelko / token-pricing.md
Created February 23, 2024 09:16
ChatGPT token counts & pricing info
Group Input Output
1. 115.0 42.0
2. 110.0 72.0
3. 114.0 57.0
4. 113.0 44.0
5. 114.0 49.0
Average 113.2 52.8

| Model | Input | Output | AVG $ / 100 prompts |