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
| // Perlin Noise | |
| var Noise = function () { | |
| var p = [ 151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10, | |
| 23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87, | |
| 174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211, | |
| 133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208, | |
| 89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5, |
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Numerous always-ignore extensions # |
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
| { | |
| "theme": "Material-Theme.sublime-theme", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "draw_white_space": "all", | |
| "fade_fold_buttons": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "highlight_line": true, | |
| "font_size": 13, | |
| "line_padding_bottom": 3, | |
| "line_padding_top": 3, |
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
| body * + * { | |
| margin-top: 1.5rem; | |
| } |
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 hasParent( e, p ) { | |
| if ( !e ) return false; | |
| var el = e.target || e.srcElement || e || false; | |
| while ( el && el != p ) { | |
| el = el.parentNode || false; | |
| } | |
| return ( el!==false ); | |
| } |
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
| /** | |
| * Random integer generator | |
| * @param {Number} min - minimum value | |
| * @param {Number} max - maximum value | |
| */ | |
| function getRandomInt( min, max ) { | |
| return Math.floor( Math.random() * (max - min + 1) ) + min; | |
| } |
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 ColorLuminance(hex, lum) { | |
| // validate hex string | |
| hex = String(hex).replace(/[^0-9a-f]/gi, ''); | |
| if (hex.length < 6) { | |
| hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]; | |
| } | |
| lum = lum || 0; | |
| // convert to decimal and change luminosity | |
| var rgb = "#", c, i; | |
| for (i = 0; i < 3; i++) { |
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
| // first add raf shim | |
| // http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| window.requestAnimFrame = (function(){ | |
| return window.requestAnimationFrame || | |
| window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| function( callback ){ | |
| window.setTimeout(callback, 1000 / 60); | |
| }; | |
| })(); |
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
| // ==================================== | |
| // Self Clear | |
| // ==================================== | |
| @mixin selfclear { | |
| &:after { | |
| content: ''; | |
| display: table; | |
| clear: both; | |
| } |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme", | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": true, | |
| "trim_trailing_white_space_on_save": true, | |
| "auto_complete_cycle": true, | |
| "fade_fold_buttons": false, | |
| "font_size": 13, | |
| "highlight_line": true, | |
| "ignored_packages": |
NewerOlder