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 / response.md
Created March 13, 2024 13:12
Lightning

When it comes to lighting design for residential spaces, there are indeed guidelines and best practices that can help you effectively light each room in your house. Here are some considerations for each of the rooms you mentioned:

First Floor:

  1. Big Room with Kitchen, Living Room, and Dining Room:

    • Given that this is a multi-functional space with different areas, it's best to incorporate multiple light sources to provide flexibility.
    • Consider a combination of overhead lighting for general illumination, task lighting for specific activities (such as pendant lights over the kitchen island or under-cabinet lighting), and accent lighting to highlight architectural features or artwork.
    • Aim for an overall lumen output of around 300-500 lumens per square meter for general lighting, adjusting based on the specific needs of each area.
  2. Toilet:

  • For a toilet or powder room, a single overhead light fixture is usually sufficient.
@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 |

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

Awesome lists

Contents

@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:

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 / 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);
@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 / 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 / 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": "development@vastools.com"

###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