Skip to content

Instantly share code, notes, and snippets.

@nccdr
nccdr / index.html
Created May 21, 2016 18:10 — forked from WickyNilliams/index.html
parseTable.js - convert HTML table to array of objects
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>parseTable</title>
</head>
<body>
<table>
<thead>
<tr>
@nccdr
nccdr / parseTable.php
Last active November 7, 2019 22:07
HTML table to Array
<?php
/**
*
* HTML Table parser
* github.com/nicecodergit
*
*/
function getArrayFromFile( $link )
oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username={$login}&password={$password}
@nccdr
nccdr / sendFakeSticker.php
Last active September 18, 2016 19:28
Отправка фейкового стикера в сообщения ВКонтакте
<?php
class VK
{
private $token;
private $version;
private $url = "https://api.vk.com/method/";
public function __construct($token, $version = "5.54")
@nccdr
nccdr / data.json
Created June 2, 2017 21:32
free-kassa.ru payment methods
{"63":"QIWI \u043a\u043e\u0448\u0435\u043b\u0435\u043a","45":"\u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0435\u043d\u044c\u0433\u0438","94":"VISA\/MASTERCARD RUB","116":"Bitcoin","133":"FK WALLET RUB","106":"OOOPAY RUR","87":"OOOPAY USD","109":"OOOPAY EUR","1":"WebMoney WMR","2":"WebMoney WMZ","114":"PAYEER RUB","64":"Perfect Money USD","69":"Perfect Money EUR","62":"OKPAY USD","60":"OKPAY RUB","61":"OKPAY EUR","82":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u041c\u0435\u0433\u0430\u0444\u043e\u043d","84":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u041c\u0422\u0421","132":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 Tele2","83":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u0411\u0438\u043b\u0430\u0439\u043d","70":"PayPal","137":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u043
<?php
// $apps = 103;
// getNumEnding($apps, ['приложение', 'приложения', 'приложений']);
function getNumEnding($number, $endingArray)
{
$number = $number % 100;
if ($number >= 11 && $number <= 19) {
$ending = $endingArray[2];