This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-type: text/css'); | |
include('../PHamlP_3/sass/SassParser.php'); | |
$sass = new SassParser(array( | |
'vendor_properties'=> array( | |
'appearance' => array('-moz-appearance', '-webkit-appearance'), | |
'border-radius' => array('-moz-border-radius','-webkit-border-radius'), | |
'box-shadow' => array('-moz-box-shadow', '-webkit-box-shadow'), | |
'box-sizing' => array('-moz-box-sizing', '-webkit-box-sizing'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype> | |
<pre> | |
<?php | |
$scss = file($myCssFilePath); | |
$tab = ' '; | |
foreach($scss as $line) { | |
$tabLevel = 0; | |
for($i = 0; $i<50; $i++) { | |
if(substr($line, $i, 1) == $tab) { | |
$tabLevel = $i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var listenedNodes = []; | |
$('*').each(function() { | |
if($(this).data('events') && $(this).data('events').click && $(this).data('events').click.length) { | |
listenedNodes.push(this); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Works only with Modernizr 1.8pre+ | |
Modernizr.addTest('cssscrollbar', function() { | |
// Tested Element | |
var test = document.createElement('div'), | |
// Fake body | |
fake = false, | |
root = document.body || (function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxPrefilter(function(options, original, jqXHR) { | |
console.info('AJAX', options.type.toUpperCase(), options.url, options, jqXHR); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Apple decided to not give control of <audio> & <video> volume... | |
Modernizr.addTest('volume', function() { | |
// Tested Element | |
var test = document.createElement('audio'); | |
test.volume = 0.5; | |
return Modernizr.audio && test.volume === 0.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mouetteView = Backbone.View.extend({ | |
el: '#mouette-container', | |
initialize: function() { | |
this.mouettes = new mouetteList(); // (collection de mouettes) | |
this.mouettes.bind('all', this.render, this); | |
this.mouettes.fetch(); | |
this.template = _.template($('#mouette-template').html()); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@include "icon/*.png"; | |
#{$icon-sprite-base-class} { | |
background-image: inline-sprite($icon-sprites); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Unicode special character support | |
* | |
* Detection is made by testing missing glyph box rendering against star character | |
* If widths are the same, this "probably" means the browser didn't support the star character and rendered a glyph box instead | |
* Just need to ensure the font characters have different widths | |
*/ | |
Modernizr.addTest('unicode', function() { | |
OlderNewer