Skip to content

Instantly share code, notes, and snippets.

View target-v's full-sized avatar

Vladislav Gorodnichiy target-v

  • Ukraine
  • 23:53 (UTC +02:00)
View GitHub Profile
@target-v
target-v / bench.php
Created May 8, 2016 04:38
PHP Benchmark Performance Script v1.0.6
#!/usr/bin/php
<?php
/*
##########################################################################
# PHP Benchmark Performance Script #
# © 2010 Code24 BV #
# #
# Author : Alessandro Torrisi #
# Author : Sergey Dryabzhinsky #
# Company : Code24 BV, The Netherlands #
@target-v
target-v / gulpfile.js
Created May 8, 2016 04:22 — forked from sagalbot/gulpfile.js
Laravel Elixir + Vueify + Hot Reload. This will get you up and running with Browserify HMR + Vueify + BrowserSync in no time.
var elixir = require('laravel-elixir');
var gutil = require('gulp-util');
// If 'gulp watch' is run
if (gutil.env._.indexOf('watch') > -1) {
// Enable watchify for faster builds
elixir.config.js.browserify.watchify.enabled = true
@target-v
target-v / class.database.php
Created May 8, 2016 04:17 — forked from jonashansen229/class.database.php
PHP OOP Database class using MySQLI and Singleton pattern. Only one instance of the class will be made, this requires less memory.
<?php
/*
* Mysql database class - only one connection alowed
*/
class Database {
private $_connection;
private static $_instance; //The single instance
private $_host = "HOSTt";
private $_username = "USERNAME";
private $_password = "PASSWORd";
@target-v
target-v / Custom.css
Created May 8, 2016 04:13 — forked from olexpono/Custom.css
Crate -- a Dark gray/orange Theme for Chrome DevTools
/**********************************************/
/*
/*
/* Crate -- Theme for Chrome DevTools
/* Last Update :: September 2013
/*
/* based on:
/* mnml by Michael P. Pfeiffer
/* Based on a Gist by Ben Truyman. Further attr:
/* https://gist.github.com/3040634
@target-v
target-v / admin.html
Created May 8, 2016 04:12 — forked from kmiyashiro/admin.html
Mocha HTML spec
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../libs/mocha.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="mocha"></div>
<script src="../libs/mocha.js" type="text/javascript" charset="utf-8"></script>
@target-v
target-v / VideoStream.php
Created May 8, 2016 04:09 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
<?php
// get constants defined by the application
// All constants available
$constants = get_defined_constants(TRUE);
// just constants from the app in question
$app_constants = $constants['user'];
echo '<pre>';
@target-v
target-v / csv-to-json.php
Created May 8, 2016 04:02 — forked from robflaherty/csv-to-json.php
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
;(function($, win){
win.Assets = {
_ress: {},
require: function(ress, callback, failcallback) {
var req = [],
ress = $.isArray(ress) ? ress:[ress];
composer create-project slim/slim-skeleton slim
composer create-project cakephp/app cakephp
composer create-project laravel/laravel laravel
composer create-project laravel/lumen lumen
composer create-project pagekit/pagekit pagekit