Skip to content

Instantly share code, notes, and snippets.

View PunGy's full-sized avatar
🐼
ем мягкие подольские булки и пью чай

Maksim PunGy

🐼
ем мягкие подольские булки и пью чай
View GitHub Profile
const table = [{"name":"1 Pair of Jeans (Levis 501 Or Similar)","category":"Clothing And Shoes","cost_of_living_factor":0.35,"rent_factor":0},{"name":"1 Summer Dress in a Chain Store (Zara, H&M, ...)","category":"Clothing And Shoes","cost_of_living_factor":0.35,"rent_factor":0},{"name":"1 Pair of Nike Running Shoes (Mid-Range)","category":"Clothing And Shoes","cost_of_living_factor":0.35,"rent_factor":0},{"name":"1 Pair of Men Leather Business Shoes","category":"Clothing And Shoes","cost_of_living_factor":0.35,"rent_factor":0},{"name":"Milk (regular), (1 liter)","category":"Markets","cost_of_living_factor":25,"rent_factor":0},{"name":"Loaf of Fresh White Bread (500g)","category":"Markets","cost_of_living_factor":31,"rent_factor":0},{"name":"Rice (white), (1kg)","category":"Markets","cost_of_living_factor":14,"rent_factor":0},{"name":"Eggs (regular) (12)","category":"Markets","cost_of_living_factor":20,"rent_factor":0},{"name":"Local Cheese (1kg)","category":"Markets","cost_of_living_factor":12,"rent_factor":0
@PunGy
PunGy / webcam_capture.cpp
Last active December 18, 2019 13:22 — forked from mik30s/webcam_capture.cpp
Simple C++ program to capture a webcam frame in Linux
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <linux/ioctl.h>
#include <linux/types.h>
#include <linux/v4l2-common.h>
#include <linux/v4l2-controls.h>
#include <linux/videodev2.h>
#include <fcntl.h>
#include <unistd.h>
@PunGy
PunGy / db.php
Last active August 28, 2018 05:02
Connection PDO
<?php
$driver = 'mysql'; // driver
$host = 'localhost'; // host
$db_name = 'webase'; //name of databases
$db_user = 'user'; //name of user databases
$db_pass = 'pass'; // pass of user
$charset = 'utf8'; // charset
$options = [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
try{
@PunGy
PunGy / blurUp.js
Created May 4, 2018 12:29
a blurring appearance
function toBlur(target){
target.style.display = 'none';
setTimeout(function(){
target.style.opacity = 0;
}, 200);
}
function unBlur(target){
target.style.display = 'block';
setTimeout(function(){
target.style.opacity = 1;
@PunGy
PunGy / Учебник.html
Last active September 4, 2016 06:19
<a href="https://htmlacademy.ru/courses/39/run/13" title="Пример"> Вот пример таблицы</a
<html>
<head>
<meta charset="utf-8">
<title>Главная</title>
</head>
<body>
<link rel="stylesheet" href="style.css">
<h1 align="center">Учебник</h1>
<ol>
<li><a href="#teg" title="Теги">Теги</a></li>