Skip to content

Instantly share code, notes, and snippets.

@danyeah
danyeah / sublime.txt
Created March 25, 2013 14:17
My sublime settings
// Distraction Free.sublime-settings
// http://www.sublimetext.com/docs/2/distraction_free.html
{
"line_numbers": true,
"gutter": true,
"draw_centered": true,
"wrap_width":0,
"word_wrap": true,
"scroll_past_end": true
}
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@danyeah
danyeah / Fetch.sublime.settings
Created April 4, 2013 09:19
Sublime Fetch Packages
{
"files":
{
"CSS colorbox": "https://raw.github.com/jackmoore/colorbox/master/example1/colorbox.css",
"JS colorbox": "https://raw.github.com/jackmoore/colorbox/master/jquery.colorbox-min.js",
"jQuery 1.8.3": "http://code.jquery.com/jquery-1.8.3.min.js",
"jQuery latest": "http://code.jquery.com/jquery.min.js"
},
"packages":
{
@danyeah
danyeah / default.sublime-keymap
Created April 22, 2013 15:17
Sublime key bindings
[
{ "keys": ["ctrl+shift+u"], "command": "sftp_upload_file" },
{ "keys": ["f1"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}},
{ "keys": ["ctrl+."], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+."], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["shift+f3"], "command": "css_sorter" },
{ "keys": ["ctrl+alt+f"], "command": "use_it" }
]
@danyeah
danyeah / respnsive-tables.html
Created April 23, 2013 13:19
Responsive tables with mobile approach
<!DOCTYPE html>
<html>
<head>
<title>test table</title>
<style>
.row-head {
display:none;
}
.cell {
@danyeah
danyeah / legibility.css
Created May 1, 2013 13:40
Optimize Legibility
body {
-webkit-font-smoothing:antialiased;
text-rendering:optimizelegibility;
}
.element {
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
}
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
{
"line_numbers": true,
"gutter": true,
"draw_centered": true,
"wrap_width":0,
"word_wrap": true,
"scroll_past_end": true
}