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 APP = function() { | |
var private_var; | |
function private_method() { | |
// do stuff here | |
} | |
return { | |
method_1 : function() { | |
// do stuff here | |
}, | |
method_2 : function() { |
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 myapp = {}; | |
myapp.FirstClass = function() { ... }; | |
myapp.FirstClass.prototype.method = function() { ... }; | |
myapp.SecondClass = function() { ... }; |
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 DED = function() { | |
var private_var; | |
function private_method() { | |
// do stuff here | |
} | |
return { | |
method_1 : function() { | |
// do stuff here | |
}, | |
method_2 : function() { |
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
// Returns a random number between min and max | |
function getRandom(min, max) | |
{ | |
return Math.random() * (max - min) + min; | |
} | |
// Returns a random integer between min and max | |
// Using Math.round() will give you a non-uniform distribution! | |
function getRandomInt(min, max) | |
{ |
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
<style type="text/css"> | |
p span.displaynone { display:none; } | |
</style> | |
<p>silvanfoobar8@<span class=”displaynone”>null</span>tilllate.com</p> |
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
/* iOS Native App Default Style implemented in CSS */ | |
/* Bootstrapping … */ | |
* { | |
margin: 0; | |
padding: 0; | |
font-size: inherit; | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} |
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
/* iOS Native App Default Style implemented in CSS */ | |
/* Bootstrapping … */ | |
* { | |
margin: 0; | |
padding: 0; | |
font-size: inherit; | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} |
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
/** | |
* Lined paper that follows the text | |
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10 | |
*/ | |
/* Just decorative */ | |
padding: 20px; | |
/* The font. Try changing font-size and see how the lines |
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
/* | |
Search Suggestions | |
Original design by Visual Idiot - http://dribbble.com/shots/377281-Search-Suggestions | |
*/ | |
html { | |
min-height: 100%; | |
background: -webkit-linear-gradient(#dbddde, #b6babb); | |
font-family: Helvetica Neue, Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; |
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
/** | |
* Path icon hover | |
* | |
* Example of the desired effect (hover over the user avatar) https://path.com/p/5Eplz | |
* | |
* Close, but annoying that the animation runs on page load. | |
* Possible solution could be to fade entire page content in while initial | |
* animation runs. | |
*/ | |