Skip to content

Instantly share code, notes, and snippets.

View piouPiouM's full-sized avatar
🪄
Tweaking my Neovim configuration

Mehdi Kabab piouPiouM

🪄
Tweaking my Neovim configuration
View GitHub Profile
@piouPiouM
piouPiouM / SassMeister-input.scss
Last active March 25, 2016 14:19 — forked from Kozlika/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Settings
// ===========================================
$fonts-map: (
'sourcesanspro':
@piouPiouM
piouPiouM / countCSSRules.js
Created October 7, 2015 08:59 — forked from psebborn/countCSSRules.js
Count the number of rules and selectors for CSS files on the page. Flags up the >4096 threshold that confuses IE
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
@piouPiouM
piouPiouM / gist:1430342
Created December 4, 2011 14:37 — forked from remy/gist:350433
Storage polyfill
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
#!/usr/bin/env php
<?php
define('FILENAME', 'core.min.js');
define('GATEWAY', 'http://closure-compiler.appspot.com/compile');
$args = array(
'js_code' => file_get_contents($argv[1]),
'compilation_level' => 'SIMPLE_OPTIMIZATIONS',
'output_format' => 'json',
'output_info' => 'compiled_code',