This file contains 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 { | |
background-color: black; | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
} | |
.ta-c { | |
text-align: center; | |
} |
This file contains 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains 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
/** | |
* Add dotted pattern to div element | |
* usage: $('div').dottify(); | |
*/ | |
$.fn.dottify = function() { | |
var container = this.parent(); | |
this.css('position', 'relative'); | |
var dottedBG = $('<div/>', { | |
'class': 'dotted-bg', | |
}); |
This file contains 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
[ | |
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }, | |
{ "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } }, | |
{ "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } }, | |
{ "keys": ["ctrl+shift+l"], "command": "expand_selection", "args": {"to": "line"} }, | |
{ | |
"keys": ["ctrl+shift+r"], "command": "browser_refresh", "args": { | |
"auto_save": true, | |
"delay": 0.5, |
This file contains 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://stackoverflow.com/questions/20027715/jquery-check-function-exist | |
// TRUNCATE TEXT IF OVERFLOW | |
if (typeof $.fn.functionName != 'undefined' && $.isFunction($.fn.functionName)) { | |
$('element').functionName(); | |
} |
This file contains 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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<link rel="stylesheet" href=""> | |
<meta property="fb:admins" content=" [ USER_ID ] " /> | |
<meta property="og:title" content="Facebook Comments Test"> | |
<meta property="og:type" content="Article"> |
This file contains 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> | |
<style> | |
body{ | |
margin: 0; | |
padding: 0; | |
} | |
ul, li{ |
This file contains 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
/** | |
* Flash videos issue on IE: | |
* http://stackoverflow.com/questions/9074365/youtube-video-embedded-via-iframe-ignoring-z-index | |
* http://stackoverflow.com/questions/7747133/youtube-video-content-covering-css-drop-down-menus-in-ie-9 | |
*/ | |
//Fix z-index youtube video embedding | |
$('iframe').each(function() { | |
var url = $(this).attr("src"); | |
if ($(this).attr("src").indexOf("?") > 0) { |
This file contains 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
UPDATE wp_posts SET post_content = REPLACE(post_content,'www.domain.com/wp-content/uploads','www.domain.com/images'); | |
UPDATE wp_posts SET guid = REPLACE(guid,'www.domain.com/wp-content/uploads','www.domain.com/images'); |
This file contains 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
@mixin horizontal-menu($conf) { | |
$orientation: map-get($conf, orientation); | |
li { | |
@if $orientation == 'horizontal' { | |
display: block; | |
} @else { |
NewerOlder