This is very useful if you want to keep empty directories in your repository.
find . -type d -empty -exec touch {}/.gitignore \;
or:
find . -type d -empty -exec touch {}/.gitkeep ;
This is very useful if you want to keep empty directories in your repository.
find . -type d -empty -exec touch {}/.gitignore \;
or:
find . -type d -empty -exec touch {}/.gitkeep ;
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
BOX_HOSTNAME = "brioche" | |
BOX_NAME = "precise64-3.8" | |
BOX_URL = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/ubuntu-12.04.3-amd64-vbox.box" | |
$script = <<SCRIPT | |
wget -qO- https://get.docker.io/ | sh |
if (navigator.userAgent.match(/iP[ha][od].*OS 7/)) { | |
document.write('<style type="text/css">body{padding-top:20px}header{margin-top:20px}</style>'); | |
} |
language: node_js | |
script: make test | |
notifications: | |
email: | |
- marcus.andre@crowdtopic.de | |
node_js: | |
- "0.11" | |
- "0.10" | |
services: | |
- redis |
/** | |
* Module dependencies. | |
*/ | |
var moment = require('moment'); | |
// weekdays | |
var weekdays = [ |
@media (min-width: 37.5em) { | |
.row { width: 100%; display: table; table-layout: fixed; } | |
.col { display: table-cell; } | |
} |
update wp_options set option_value = replace(option_value,'http://old_domain.com','http://new_domain.com'); | |
update wp_postmeta set meta_value = replace(meta_value,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set post_content = replace(post_content,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set guid = replace(guid,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set pinged = replace(pinged,'http://old_domain.com','http://new_domain.com'); | |
update wp_comments set comment_content = replace(comment_content,'http://old_domain.com','http://new_domain.com'); |
package bubble | |
func sort(arr []int) { | |
for itemCount := len(arr) - 1; ; itemCount-- { | |
swap := false | |
for i := 1; i <= itemCount; i++ { | |
if arr[i-1] > arr[i] { | |
arr[i-1], arr[i] = arr[i], arr[i-1] | |
swap = true | |
} |
<div style="text-align: center;">
<div class="inline-block">Element</div>
<div class="inline-block">Element</div>
<div class="inline-block">Element</div>
</div>
.inline-block {