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
input[type='checkbox'], | |
input[type='radio'] { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
background: white; | |
border: 2px solid #000; | |
width: 16px; | |
height: 16px; | |
} |
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 myRevealingModule = (function () { | |
var privateVar = "Ben Cherry", | |
publicVar = "Hey there!"; | |
function privateFunction() { | |
console.log( "Name:" + privateVar ); | |
} | |
function publicSetName( strName ) { |
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 myStr = "The quick brown fox jumps over the lazy dog."; | |
var subStr = myStr.match("quick(.*)lazy"); |
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
sudo gem install sass |
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
1st draw: [0,1,2,3] | |
2nd draw: [1,2,3,0] | |
3rd draw: [2,3,0,1] | |
4th draw: [3,0,1,2] | |
arr[i] = (arr[i]+1)%arr.length; | |
arr[i] = arr[ (i + 1) % arr.length ]; |
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
# Redirection vers HTTPS | |
#RewriteCond %{SERVER_PORT} ^80$ [OR] | |
#RewriteCond %{HTTPS} =off | |
#RewriteRule ^(.*)$ https://site.tld/$1 [R=301,L] | |
# Redirection du www vers non-www en HTTPS | |
#RewriteCond %{HTTP_HOST} ^www\.site\.fr [NC] | |
#RewriteRule ^(.*)$ https://site.tld/$1 [R=301,L] |
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
[attribute^=value] { /* starts with selector */ | |
/* Styles */ | |
} | |
[attribute$=value] { /* ends with selector */ | |
/* Styles */ | |
} | |
[attribute*=value] { /* contains selector */ | |
/* Styles */ |
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
//OLD | |
https://www.instagram.com/a_e_a_i_/media | |
//NEW | |
https://www.instagram.com/thenineclubshow/?__a=1 | |
https://www.instagram.com/thenineclubshow/?__a=1&max_id=[Last id on previous cal] |
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
$(window).scroll(function(){ | |
clearTimeout(window.resizedFinished); | |
window.resizedFinished = setTimeout(function(){ | |
$(".tpl-section").each(function(idx, el){ | |
if($(el).isInViewport()){ | |
//console.log(idx) | |
$(".sub-menu a").removeClass("active"); | |
$(".sub-menu li").eq(idx).children("a").addClass("active") | |
} | |
}) |