Skip to content

Instantly share code, notes, and snippets.

View ViliamKopecky's full-sized avatar
🤡
clowning

Viliam Kopecký ViliamKopecky

🤡
clowning
View GitHub Profile
@ViliamKopecky
ViliamKopecky / less-refresh-bookmark.js
Created April 25, 2012 02:30
LESS/CSS each-second-refresh bookmark js
// ON/OFF switch LESS refreshing bookmark
(function(){
window.lessRefreshing = !window.lessRefreshing;
console.log('LESS refreshing: '+(window.lessRefreshing ? 'ON' : 'OFF'));
var rf = function(){
if(window.lessRefreshing) {
less.refresh();
setTimeout(rf, 1000);
} else {
<?php
require_once __DIR__ . '/clevis/Eleda/libs/Nette/loader.php';
require_once __DIR__ . '/clevis/Eleda/libs/dibi/dibi.php';
use Nette\Utils\Strings as Strings;
dibi::connect(array(
'host' => 'localhost',
'username' => 'root',
@ViliamKopecky
ViliamKopecky / less-path-variables.less
Created December 14, 2011 02:35
Personal suggestion for LESS path variables
/**
*
* Suggestion for LESS syntax - path variables (2011-12-14)
* By Viliam Kopecky <enoice(at)gmail>
*
**/
// LESS SOURCE
/browser/ {