Skip to content

Instantly share code, notes, and snippets.

View SergSlon's full-sized avatar
😀

Liamin Serhii SergSlon

😀
View GitHub Profile

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

<div class="inliner"></div>
<div class="inlined">
<div class="progress-meter">
<div class="track">
<span class="progress"></span>
</div>
<ol class="progress-points" data-current="4">
<li class="progress-point" data-point="1">
<span class="label">Lorem ipsum</span>
</li>
@SergSlon
SergSlon / index.html
Created April 15, 2013 17:07
A CodePen by SergSlon. Cute CSS3-only animals - Just a fun CSS3 demo as an exercise to use the CSS clip:rect(); property.
<div class="wrapper">
<div class="cat animal">
<div class="head">
<span class="nose"></span>
<div class="ears"></div>
<div class="stripes stripes-right"></div>
<div class="stripes stripes-left"></div>
<div class="tongue"></div>
</div>
<div class="body">
@SergSlon
SergSlon / index.html
Created May 13, 2013 18:39
Spread - CSS Exploration: Origami like plane creation.
<div id="container"></div>
<div id="tag" class="before">
<h1>SPREAD</h1>
<p>Click anywhere to have the plane spread</p>
<ul>
<li><a href="https://github.com/MathiasPaumgarten/spread">Github</a></li>
</ul>
<span>by <a href="http://mathias-paumgarten.com">Mathias Paumgarten</a></span>
</div>

Using closure tables to manage hierarchical relations in MySQL

Create DB tables

Create a table to represent tree nodes.

CREATE TABLE `tree_node` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `data_body` text,

node_deleted datetime DEFAULT NULL,

<?php
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/boot.php';
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Synfony\Component\HttpFoundation\Response;
$app = new Application();
<div id="perspectiva">
<div id="contenedor">
<div class="cara frontal">
<h1>Codepen</h1>
</div>
<div class="cara trasera">
<div id="abrir"></div>
<div id="partes"></div>
<div id="carta">
<i class="icon-cancel"></i>
<div class="particle"></div>
<div class="cells"></div>
<div class="jelly"></div>
<div class="blobbs"></div>
<div class="chase"></div>
@SergSlon
SergSlon / rAF.js
Created June 11, 2013 05:35 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer