You can combine all these makefiles into one, or, use a master Makefile that calls these.
For auto building you can use watch or if your editor supports build tools call the makefiles on save.
You can combine all these makefiles into one, or, use a master Makefile that calls these.
For auto building you can use watch or if your editor supports build tools call the makefiles on save.
deploy: | |
rsync -a --delete ./ username@hostname:/path/to/web/root | |
.PHONY: deploy |
# BEGIN GZIP | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
</ifmodule> | |
# END GZIP | |
RewriteEngine On | |
# Some hosts may require you to use the `RewriteBase` directive. | |
# If you need to use the `RewriteBase` directive, it should be the |
//Bootstrap 3 grid inception | |
@mixin new-grid($class, $columns, $grid-gutter-width: $grid-gutter-width){ | |
$i: 1; | |
$grid-columns: $columns; | |
@include make-grid-columns($i: 1, $list: ".col-#{$class}-xs-#{$i}, .col-#{$class}-sm-#{$i}, .col-#{$class}-md-#{$i}, .col-#{$class}-lg-#{$i}"); | |
@include make-grid(#{$class}-xs); | |
@media (min-width: $screen-sm-min) { | |
@include make-grid(#{$class}-sm); | |
} |
AddEncoding gzip .gz | |
RewriteEngine on | |
RewriteCond %{HTTP:Accept-encoding} gzip | |
RewriteCond %{HTTP_USER_AGENT} !Konqueror | |
RewriteCond %{REQUEST_FILENAME}.gz -f | |
RewriteRule ^(.*)\.css$ $1.css.gz [QSA,L] | |
RewriteRule ^(.*)\.js$ $1.js.gz [QSA,L] | |
RewriteRule ^(.*)\.html$ $1.html.gz [QSA,L] |
/* Extra small devices (phones, less than 768px) */ | |
/* No media query since this is the default in Bootstrap */ | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: $screen-sm-min) { ... } | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: $screen-md-min) { ... } | |
/* Large devices (large desktops, 1200px and up) */ |
[color] | |
# turn on color | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = auto | |
[color "branch"] | |
current = green bold | |
local = green |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<link rel="stylesheet" type="text/css" media="screen" href="assets/stylesheets/css/master.css" /> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
import codecs | |
from bs4 import BeautifulSoup | |
soup_all = BeautifulSoup(open('Wordpress_all_content.xml')) | |
soup_all_items = soup_all.find_all('item') | |
soup_posts = BeautifulSoup(open('Wordpress_selective_content.xml')) | |
soup_posts_items = soup_posts.channel.find_all('item') | |
def match_post(item): |
jQuery.moo = { | |
substitute: function(str, object, regexp){ | |
return String(str).replace(regexp || (/\\?\{([^{}]+)\}/g), function(match, name){ | |
if (match.charAt(0) == '\\') return match.slice(1); | |
return (object[name] != null) ? object[name] : ''; | |
}); | |
} | |
}; |