Skip to content

Instantly share code, notes, and snippets.

View peko's full-sized avatar

Vladimir Seregin peko

  • https://peko.github.io/about
  • Frankfurt
View GitHub Profile
This file has been truncated, but you can view the full file.
{"response":{"categories":[{"id":1,"name":"\u041d\u043e\u0432\u044b\u0435 \u0430\u0432\u0442\u043e\u0440\u044b","sort":18,"created_at":null,"updated_at":"2018-01-11 13:12:53","edited":null,"active":true,"pages":[{"id":43597909,"type":2,"name":"\u0420\u0443\u043a\u0430\u0432\u0438\u0446\u0430","category_id":1,"description":"\u041a\u0443\u0440\u0441\u044b \u0441\u0446\u0435\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u0442\u0432\u0430","photo_100":"https:\/\/pp.userapi.com\/c836133\/v836133397\/58ce0\/e-rPYeQr7cI.jpg","photo_200":"https:\/\/pp.userapi.com\/c836133\/v836133397\/58cdf\/LEUs85SkSbU.jpg","photo_400_orig":null,"sort":4465,"created_at":"2018-04-15 19:15:07","updated_at":"2018-04-15 21:15:18","edited":["description"],"active":true,"deleted_at":null,"moderated":true,"future_category_id":14,"activated_at":"2018-04-15 19:15:07","remove_count":0,"new":false,"seven_days_expired":false},{"id":130588435,"type":2,"name":"[\u041e\u0431\u0440\u0430\u0437\u044b \u0412\u04
// The MIT License
// Copyright © 2013 Inigo Quilez
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
// The MIT License
// Copyright © 2013 Inigo Quilez
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@peko
peko / gl-matrix-min.js
Last active June 29, 2017 01:11
Hyper sphere
/**
* @fileoverview gl-matrix - High performance matrix and vector operations
* @author Brandon Jones
* @author Colin MacKenzie IV
* @version 2.3.2
*/
/* Copyright (c) 2015, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
@peko
peko / aitarget_balancer.json
Last active May 29, 2017 21:56
node red balancer
[
{
"id": "801152e3.b71c6",
"type": "subflow",
"name": "To telegram",
"info": "",
"in": [
{
"x": 40,
"y": 40,
@peko
peko / CMakeLists.txt
Created January 27, 2017 15:55
EGL sample
cmake_minimum_required(VERSION 3.6)
project(egl_a)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp)
add_executable(egl_a ${SOURCE_FILES})
target_link_libraries(egl_a GL EGL)
@peko
peko / CMakeLists.txt
Created January 26, 2017 14:15
Get version of FBX file (FBX SDK based)
cmake_minimum_required(VERSION 3.6)
project(fbx_version)
add_definitions(-DFBXSDK_SHARED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp)
add_executable(fbx_version ${SOURCE_FILES})
target_link_libraries(fbx_version fbxsdk m rt uuid stdc++ pthread dl)
@peko
peko / trash-gmail.py
Created January 25, 2017 09:20
Trash gmail
#!usr/bin/python
import email, imaplib
user = 'xxx'
pwd = 'xxx'
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user,pwd)
m.select("some_gmail_label")
@peko
peko / fast_writer.c
Created October 27, 2016 17:12
fast_writer | slow_reader
#include <stdio.h>
int main(int argc, char** argv) {
char buf[256];
for(int i = 0; i < 1000000; i++){
fprintf(stdout, "line %d\n", i);
fprintf(stderr, "[wr] line %d writed\n", i);
}
}
@peko
peko / LiveCoding Instructions
Created October 26, 2016 12:23 — forked from devx00/LiveCoding Instructions
Instructions to setup external streaming and chatting for livecoding.tv streams
// ************** Instructions for connecting to the LiveCoding chatrooms from a 3rd party application. ****************
Step 1a (Ubuntu/ any OS with aptitude (aka apt-get)) :
sudo apt-add-repository ppa:rsrchboy/profanity && sudo apt-get update
apt-get install profanity
--
Step 1b (OSX w/ homebrew):
$ brew install profanity
--------