This file contains 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
/* | |
* | |
* Garber-Irish Implementation : | |
* http://viget.com/inspire/extending-paul-irishs-comprehensive-dom-ready-execution | |
* http://www.diegolago.co.uk/development/organise-your-javascript-and-make-your-life-easier/ | |
* | |
* Modif pour se baser sur X element dans la page et non sur le body | |
* http://techblog.treenodes.com/index.php/2012/04/19/organize-javascript-and-jquery-events-dom-ready-execution/ | |
* | |
* plus simple, mais dans le même esprit : |
This file contains 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
/* | |
This javascript is the main javascript for the sites actions. | |
*/ | |
// -------------------------------------------------------------------------------------------------------------- | |
// set up a master object | |
var UI_NAMESPACE = window.UI_NAMESPACE || {}; |
This file contains 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
a { | |
&:link { | |
color:@linkColor; | |
} | |
&:visited { | |
color:@linkColorVisited; | |
} | |
&:hover { /* a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective! */ | |
color:@linkColorHover; | |
} |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
/* ========================================================================= | |
${1:section-comment-block-name} | |
========================================================================= */ | |
${0} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>scb</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains 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
// BAD | |
var name = 'Jeffrey'; | |
var lastName = 'Way'; | |
function doSomething() { | |
// do something | |
} | |
console.log(name); // Jeffrey -- or window.name | |
// BETTER |
This file contains 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 html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>TEST API Google Map</title> | |
<style> | |
html, body, #map-canvas { | |
background: blue; | |
height: 100%; | |
width: 100%; |
This file contains 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
<div class="playlist clearfix" data-playlist="PLO9aNMUaQmH9Hdhq5ICGHOC6zrjJ0NQID"></div> | |
<div class="playlist clearfix" data-playlist="PLliN_STKLPP2_aiUEeewQA-R8GuS9o-25"></div> | |
$('.playlist').youtubePlaylist(); |
This file contains 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
# ----------------------------------------------------------------------- | |
# Defining MIME types to ensure the web server actually knows about them. | |
# ----------------------------------------------------------------------- | |
# ----------------------------------------------------------------------- | |
# | Proper MIME types for all files | | |
# ----------------------------------------------------------------------- | |
<IfModule mod_mime.c> | |
# Audio |
This file contains 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
<a id="foo" | |
href="#" | |
data-str="bar" | |
data-bool="true" | |
data-num="15" | |
data-json='{"id":"2", "fizz":["buzz", "pariatur", "esse", "cillum"], "lat":"48.861395", "lon":"2.35136", "title":"Paris", "number" : 12584, "bool": true}' | |
data-json2='{"id":"3", "fizz":[{"id": 0, "name": "Imelda Dalton"},{"id": 1,"name": "Kayla Padilla"}], "lat":"48.861395", "lon":"2.35136", "title":"Paris"}'>foo!</a> |
This file contains 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
.font-face(@fontname, @fontfile, @fontweight:normal, @fontstyle:normal) { | |
font-family: "@{fontname}"; | |
src: url("@{fontfile}.eot"); | |
src: url("@{fontfile}.eot?#iefix") format("embedded-opentype"), | |
url("@{fontfile}.woff") format("woff"), | |
url("@{fontfile}.ttf") format("truetype"), | |
url("@{fontfile}.svg#@{fontname}") format("svg"); | |
font-weight: @fontweight; | |
font-style: @fontstyle; | |
} |