Skip to content

Instantly share code, notes, and snippets.

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

Konstantin Padilo300

🏠
Working from home
View GitHub Profile
@Padilo300
Padilo300 / PDO wrapper
Created May 9, 2019 17:42
PDO wrapper
class DB
{
public static $dsn = 'mysql:dbname=table;host=localhost';
public static $user = 'user';
public static $pass = 'password';
/**
* Объект PDO.
*/
public static $dbh = null;
@Padilo300
Padilo300 / CSS
Created December 6, 2017 16:18
JavaScript Date (Работа с датами || расписание на js || график два через два)
#calendarMainWrap{
width: 950px;
outline: 2px solid #000;
background-color: #fff;
padding: 3px 5px;
}
.month{
width: 100%;
text-align: center;
}
@sergeyklay
sergeyklay / phpenv-install.md
Last active March 3, 2024 10:45
Multiple PHP versions using phpenv and php-build

Multiple PHP versions using phpenv and php-build

Install dependecies

Debian/Ubuntu users

sudo apt install \
  autoconf \
  bison \
@phamquocbuu
phamquocbuu / curl_data_port.php
Created January 2, 2014 03:41
PHP CURL post data, port, useragent
<?php
$url = "http://new.sell.dev/distributor";
$post_data = array (
"key" => "jAun729*hA6T6sE2nP3!m3@a4hw",
);
$ch = curl_init();
@anthonyshort
anthonyshort / _media-queries.scss
Created March 13, 2012 10:37
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
@insin
insin / index.html
Last active February 8, 2024 15:14
Export a <table> to Excel - http://bl.ocks.org/insin/1031969
<!DOCTYPE html>
<html>
<head>
<title>tableToExcel Demo</title>
<script src="tableToExcel.js"></script>
</head>
<body>
<h1>tableToExcel Demo</h1>
<p>Exporting the W3C Example Table</p>