Skip to content

Instantly share code, notes, and snippets.

View pablolobos's full-sized avatar

Pablo Lobos pablolobos

  • i2p.cl
  • Santiago, Chile
View GitHub Profile
@pablolobos
pablolobos / css-animations.css
Created November 6, 2013 15:51
css_animations.css
/*
==============================================
CSS3 ANIMATION CHEAT SHEET
==============================================
Made by Justin Aguilar
www.justinaguilar.com/animations/
Questions, comments, concerns, love letters:
@pablolobos
pablolobos / youtubevideo_tracking.js
Created October 30, 2013 15:56
js_youtube_video_tracking
<script type="text/javascript">
var tag = document.createElement('script');
tag.src = "http://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player1;
function onYouTubePlayerAPIReady() {
player1 = new YT.Player('player1', {
@pablolobos
pablolobos / fluid_video.css
Created October 30, 2013 15:10
css_Fluid video
.video-fluido {
position: relative;
padding-bottom: 56.25%;
padding-top: 0;
height: 0;
overflow: hidden;
}
.video-fluido iframe,
.video-fluido object,
@pablolobos
pablolobos / clearfix.css
Created October 10, 2013 17:29
Clearfix
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
@pablolobos
pablolobos / youtube_no_info_no_controls.html
Created September 23, 2013 16:04
youtube_no_info_no_controls.html
?HD=1;rel=0;showinfo=0;controls=1;autohide=1
@pablolobos
pablolobos / js_intentionjs_responsive_images
Created September 5, 2013 15:06
js: Intention responsive images
<img
intent
in-mobile-src="source.jpg"
in-standard-src="source.jpg" />
@pablolobos
pablolobos / mixin_absolute-position.scss
Created August 6, 2013 13:08
mixin: absolute-position
@mixin absolute($args) {
$offsets: top right bottom left;
@each $o in $offsets {
$i: index($args, $o);
@if $i
and $i + 1 <= length($args)
and type-of( nth($args, $i + 1) ) == number {
#{$o}: nth($args, $i + 1);
@pablolobos
pablolobos / compass_hyphenation.scss
Created August 1, 2013 22:14
compass: hyphenation
@include hyphenation;
@pablolobos
pablolobos / js_screen-width-load-script.js
Created August 1, 2013 19:37
js: screen-width-load-script
yepnope([{
test: 320 < screen.width // devices 320 and up
, yep: [ "jquery.min.js", "response.min.js" ]
}]);
@pablolobos
pablolobos / js_modernizr-load-respond.js
Created August 1, 2013 19:35
js: modernizr-load-respond.js
<script>
Modernizr.load({
test: Modernizr.mq('only all'),
nope: 'js/libs/respond.min.js'
});
</script>