Skip to content

Instantly share code, notes, and snippets.

View target-v's full-sized avatar

Vladislav Gorodnichiy target-v

  • Ukraine
  • 19:53 (UTC +02:00)
View GitHub Profile
@target-v
target-v / 0_reuse_code.js
Created November 15, 2016 19:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@target-v
target-v / advice-css-anim.md
Created October 16, 2016 23:13
Советы, библиотеки и дополнительные материалы по CSS-анимации

Советы, библиотеки и дополнительные материалы по CSS-анимации

![Советы, библиотеки и дополнительные материалы по CSS-анимации][1]

Введение

Была глубокая ночь. В темную комнату через деревянные окна проникал лунный свет. Он недостаточно освещал мой деревянный стол с ноутбуком, блокнотом и синей ручкой. Поэтому я протянул свою руку к настольной лампе и включил её.

На компьютере был открыт текстовой файл со списком статей и библиотек про веб-разработку. Он постоянно пополнялся новыми данными.

<?php
namespace App;
class Time
{
/**
* @var Текущее время
*/
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@target-v
target-v / VideoThumb.php
Created August 31, 2016 23:48 — forked from cmsx/VideoThumb.php
Класс для получения превью и информации о ролике RuTube, Vimeo, Youtube по ссылке.
<?php
/**
* Использование:
* $v = new VideoThumb($link);
* $v->getVideo(); //Ссылка на видео
* $v->getTitle(); //Название ролика
* $v->fetchImage($path) //Скачать самое большое превью ролика
*
* Прогнать тест:
@target-v
target-v / js-task-1.md
Created August 31, 2016 23:44 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)
// Icon Shortcode Using Fontawesome by 3200creative
// to use this shortcode use the following markup [fa-icon id="option-id" class="custom-class" type="arrow" size="24" color="#ff9900"]
<?php
function icon_func( $atts ) {
$a = shortcode_atts( array(
'type' => 'Add Icon Type',
//ID is optional
'id' => '',
'size' => 'Add Size',
@target-v
target-v / sfProgressBar.php
Created August 30, 2016 04:08 — forked from bshaffer/sfProgressBar.php
sfProgressBar
<?php
/**
* sfProgressBar
*
* Draw a nifty progress bar for command-line tasks
*
* USAGE:
* // Create Progress Bar instance, pass number of increments
* $progressBar = new sfProgressBar($eventDispatcher);
* $progressBar->start($numItems);
[{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":1063,"y":14},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"c
@target-v
target-v / bower.json
Last active June 22, 2016 01:18
Bower.JSON
{
"name": "usable",
"dependencies": {
"jquery": "^2.2.1",
"font-awesome":"*",
"jquery": "*",
"jquery-ui": "*",
"bootstrap": "^3.3.4",