Updated JS on Google DriveUpdated CSS on Google DriveUpdated templates.htm on Google Drive
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
| import hashlib | |
| salt = hashlib.sha256("salt").hexdigest()[:5] | |
| password = "yep" | |
| calculated_hash = hashlib.sha256(password + salt).hexdigest() | |
| print [salt, calculated_hash] | |
| # password: yep |
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
| lol |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js ie ie6 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js ie ie7 lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js ie ie8 lt-ie9" lang="en"> <![endif]--> | |
| <!--[if IE 9]> <html class="no-js ie ie9" lang="en"> <![endif]--> | |
| <!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> |
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
| $.when( t.mapTemplate, t.locations ).done( function () { | |
| ... | |
| } | |
| 1. initial ajax call for locations | |
| 2. initial ajax call for template | |
| 3. fire another ajax call for locations | |
| 4. (1) finishes with response: { "data": "location1" } | |
| 5. (2) finishes with response: { "data": "location2" } | |
| 6. (3) finishes |
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
| (function() { | |
| Math.limitRange = function(value, min, max) { | |
| return Math.max(Math.min(value, max), min); | |
| }; | |
| // test cases | |
| var tests = [[50, 0, 100], // 50 | |
| [-25, 5, 15], // 5 | |
| [7, 5, 15], // 7 | |
| [19, 36, 38]]; // 36 |
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
| <div id="main-description" class="row"> | |
| <div class="span5 columns"> | |
| <div id="main-slider" class="carousel slide"> | |
| <!-- Carousel items --> | |
| <div class="carousel-inner"> | |
| <div class="item active"> | |
| <img src="http://placehold.it/470x360"> | |
| </div> | |
| <div class="item"> | |
| <img src="http://placehold.it/470x360"> |
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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>CSS3 List Bullet Demo</title> | |
| </head> | |
| <style> | |
| .custom-bullets { | |
| list-style-type: none; | |
| } |