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
{ | |
"ignored_packages" : [ "Vintage" ], | |
"color_scheme" : "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"theme" : "Material-Theme.sublime-theme", | |
"font_size" : 15, | |
"always_show_minimap_viewport" : true, | |
"bold_folder_labels" : true, | |
"font_options" : ["gray_antialias", "subpixel_antialias"], // On retina Mac & Windows | |
"indent_guide_options" : ["draw_normal", "draw_active"], // Highlight active indent | |
"line_padding_bottom" : 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
<?php | |
/** | |
* PHP Regex to validate a Twitter hashtag | |
* | |
* Useful for validating a text input (an HTML form in your CMS or custom application) that must be a valid Twitter hashtag. | |
* Valid examples: #a, #_, #_1, #_a, #1a, #áéìôü, #123hàsh_täg446 | |
* Invalid examples: #1, ##hashtag, #hash-tag, #hash.tag, #hash tag, #hashtag!, (any hashtag that is more than 140 characters long, hash symbol included) | |
* | |
* Regex explanation: | |
* First, the lookahead assertion (?=.{2,140}$) checks the minimum and max length, as explained here http://stackoverflow.com/a/4223213/1441613 |
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
<?php | |
class Invokable { | |
function __invoke(Callable $function, array $params = []) { | |
if (is_callable($function)) return (call_user_func_array($function, $params)); | |
} | |
} | |
$return = new Invokable(); | |
$canTrue = 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
function autodetectCC( num ) { | |
if ( /^5[1-5]/.test( num ) ) { | |
selectCC( "mcrd" ); | |
} | |
else if ( /^4/.test( num ) ) { | |
selectCC( "visa" ); | |
} | |
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
[ | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } }, | |
{ "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof"} }, | |
{ "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof"} }, | |
{ "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} }, | |
{ "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} } | |
] |
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
"patterns": | |
{ | |
"BUG": "@BUG[\\s]*?:+(?P<bug>.*)$", | |
"CHANGED": "@CHANGED[\\s]*?:+(?P<changed>\\S.*)$", | |
"FIXME": "@FIX ?ME[\\s]*?:+(?P<fixme>\\S.*)$", | |
"NOTE": "@NOTE[\\s]*?:+(?P<note>.*)$", | |
"TODO": "@TODO[\\s]*?:+(?P<todo>.*)$" | |
}, | |
"todo": |
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
http://uifaces.com/faces/_twitter/jacobseethaler_128.jpg | |
http://uifaces.com/faces/_twitter/garrettgee_128.jpg | |
http://uifaces.com/faces/_twitter/nckjrvs_128.jpg | |
http://uifaces.com/faces/_twitter/kirkouimet_128.jpg | |
http://uifaces.com/faces/_twitter/ShaunMoynihan_128.jpg | |
http://uifaces.com/faces/_twitter/VinThomas_128.jpg | |
http://uifaces.com/faces/_twitter/Mr_Stezz_128.jpg | |
http://uifaces.com/faces/_twitter/kolage_128.jpg | |
http://uifaces.com/faces/_twitter/jayman_128.jpg | |
http://uifaces.com/faces/_twitter/cameronmoll_128.jpg |
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
.hexagon { | |
width: 120px; | |
height: 60px; | |
position: relative; | |
} | |
.hexagon, .hexagon:before, .hexagon:after { | |
background: red; | |
border-radius: 5px | |
} | |
.hexagon:before, .hexagon:after { |
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
p { | |
-webkit-transform: rotate3d(-1, -1, -1, 0.01deg); | |
} |
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
header:before { | |
display: block; | |
content: ''; | |
height: 5px; | |
background-image: -webkit-linear-gradient(right, #b145c7 9%,#7646d6 9%,#7646d6 18%,#4a5adb 18%,#4a5adb 27%,#4a78e4 27%,#4a78e4 36%,#3a9dcf 36%,#3a9dcf 45%,#38bf73 45%,#38bf73 54%,#80c83b 54%,#80c83b 63%,#cad839 63%,#cad839 72%,#e7ba37 72%,#e7ba37 81%,#e77337 81%,#e77337 90%,#e9411f 90%,#e9411f 100%,#b145c7 100%); | |
background-image: -moz-linear-gradient(right, #b145c7 9%,#7646d6 9%,#7646d6 18%,#4a5adb 18%,#4a5adb 27%,#4a78e4 27%,#4a78e4 36%,#3a9dcf 36%,#3a9dcf 45%,#38bf73 45%,#38bf73 54%,#80c83b 54%,#80c83b 63%,#cad839 63%,#cad839 72%,#e7ba37 72%,#e7ba37 81%,#e77337 81%,#e77337 90%,#e9411f 90%,#e9411f 100%,#b145c7 100%); | |
background-image: -o-linear-gradient(right, #b145c7 9%,#7646d6 9%,#7646d6 18%,#4a5adb 18%,#4a5adb 27%,#4a78e4 27%,#4a78e4 36%,#3a9dcf 36%,#3a9dcf 45%,#38bf73 45%,#38bf73 54%,#80c83b 54%,#80c83b 63%,#cad839 63%,#cad839 72%,#e7ba37 72%,#e7ba37 81%,#e77337 81%,#e77337 90%,#e9411f 90%,#e9411f 100%,#b145c7 100%); | |
background-image: line |
NewerOlder