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>

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

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

<?php
const SPACING_X = 1;
const SPACING_Y = 0;
const JOINT_CHAR = '+';
const LINE_X_CHAR = '-';
const LINE_Y_CHAR = '|';
$table = array(
array(