Skip to content

Instantly share code, notes, and snippets.

View sickOscar's full-sized avatar
🤖

Oscar Chinellato sickOscar

🤖
View GitHub Profile
@sickOscar
sickOscar / index.html
Created May 20, 2013 14:27
A CodePen by Oscar Chinellato. JQuery KenBurns Effect with fade in - Based on Will MacGugan's jQuery kenBurns plugin, this adds a fade in to the first image displayed.
<html>
<head>
<title>KenBurns Test</title>
</head>
<body>
<canvas id="kenburns"></canvas>
</body>
</html>
/*
_______
These simple SCSS mixins for Foundation4 are made by me to deal with media-queries and have a clean code at the same time! ;)
****IMPORTANT****
Due to Foundation 4 uses mobile-first methodology, every $phone-"X" variable in these mixins defines the value for every screen size.
$desktop-"X" values overrides $phone-"X" values when window width is 768px and above.
So, to simplify this, we can think that way: ($phone-"X" < 768px => $desktop-"X")
@sickOscar
sickOscar / browser-redirect.js
Last active October 19, 2015 23:24
WPML - browser-redirect.js - Fix
/*globals wpml_browser_redirect_params */
jQuery(document).ready(function () {
if (jQuery.cookie !== undefined) {
// Check if cookie are enabled
jQuery.cookie('wpml_browser_redirect_test', '1');
var cookie_enabled = jQuery.cookie('wpml_browser_redirect_test') === '1';
jQuery.removeCookie('wpml_browser_redirect_test');
if (cookie_enabled) {
### Keybase proof
I hereby claim:
* I am sickDevelopers on github.
* I am thatsmeoscar (https://keybase.io/thatsmeoscar) on keybase.
* I have a public key whose fingerprint is DC08 AE05 E109 F60B F1D1 4B5E 3E10 B03C DBD5 5080
To claim this, I am signing this object: