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
| <button data-target="#target">Toggle</button> | |
| <div id="target">Toggle me</div> |
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
| jQuery.validator.addMethod("phone", function(value, element) { | |
| return this.optional(element) || /^[1-9]\d{2}([-\ /\.])?[1-9]\d{2}([-\ /\.])?\d{4}$/.test(value); | |
| }, "wrong phone"); |
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
| // Basic Form | |
| var APP = {}; | |
| APP.MyModule = (function() { | |
| var privateVariable = 1; | |
| var publicVariable = 2; | |
| var publicFunction = function() {return 3;} | |
| return { | |
| publicVariable: publicVariable, | |
| publicFunction: publicFunction | |
| }; |
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
| echo "--- Update OS package list ---" | |
| sudo apt-get update | |
| echo "--- Update Timezone ---" | |
| sudo cp /usr/share/zoneinfo/America/Montreal /etc/localtime | |
| echo "--- Installing Git-core ---" | |
| sudo apt-get install -y git-core | |
| echo "--- Updating default ruby ---" |
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
| <!-- non-retina iPhone pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon57.png" sizes="57x57"> | |
| <!-- non-retina iPad pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon72.png" sizes="72x72"> | |
| <!-- non-retina iPad iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon76.png" sizes="76x76"> | |
| <!-- retina iPhone pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon114.png" sizes="114x114"> | |
| <!-- retina iPhone iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon120.png" sizes="120x120"> |
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
| if(Modernizr){ | |
| if (!Modernizr.svg || !Modernizr.backgroundsize) { | |
| Y.all("img[src$='.svg']").each(function(node) { | |
| node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png'); | |
| }); | |
| } | |
| } |
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
| GITLAB_BASE_URL = "" | |
| GITLAB_TOKEN = "" | |
| # Retrieve the repositories and commits in gitlab | |
| SCHEDULER.every '5m', :first_in => 0 do |job| | |
| uri = URI("#{GITLAB_BASE_URL}projects?private_token=#{GITLAB_TOKEN}") | |
| response = Net::HTTP.get(uri) | |
| data = JSON.parse(response) |
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
| @mixin vertical-align { | |
| position: relative; | |
| top: 50%; | |
| -webkit-transform: translateY(-50%); | |
| -ms-transform: translateY(-50%); | |
| transform: translateY(-50%); | |
| } | |
| .element p { | |
| @include vertical-align; |
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
| <ul class="m-items"> | |
| <li> | |
| <input type="checkbox"/> | |
| </li> | |
| <li> | |
| <input type="checkbox"/> | |
| </li> | |
| <li> | |
| <input type="checkbox"/> | |
| </li> |