I hereby claim:
- I am heracek on github.
- I am heracek (https://keybase.io/heracek) on keybase.
- I have a public key ASBoqZfwTolpr6r17TryznpbF4pBSmSw9yQTKPn7bKPHYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This is the source for the scripts discussed in https://robots.thoughtbot.com/improving-user-experience-with-shell-scripts
Both scripts are in the bin/
directory of the repo that contains all the markdown documents for blog posts.
Users run bin/server
and everything is automatically set up for them to view a local preview of the blog.
bin/server-setup
is a dependency of bin/server
and is never run directly by users.
Maitre-d is the name of the "blog engine" discussed in the article.
- name: Set the Hostname | |
hostname: name=ubuntu | |
- name: upgrade packages | |
apt: upgrade=full | |
- name: install packages | |
apt: > | |
name="{{ item }}" | |
state=latest | |
with_items: | |
- git |
/* | |
Simple serial "one by one" sync/async promises based validation. | |
*/ | |
import validator from 'validator' | |
import Promise from 'bluebird' | |
export function focusInvalidField(reactComponent) { | |
return (error) => { | |
if (error instanceof ValidationError) { | |
if (!error.prop) return |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Show/Hide for AsciiDoctor checklists in pure JS and CSS" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.hide-me > ul > li:nth-child(n + 2), | |
.hide-me > ul > li:first-child > .checklist { | |
display: none; |
### | |
# Template for generate clean sample app at Padrino(Compass, SASS, Slim, Asset pipelines, CoffeeScript, etc…) & Angular | |
# @requirements | |
# => Bundler, Padrino-gen, npm, bower | |
# @uses | |
# => | |
# padrino-gen project testapp --template padrino-sprocktes-compass.rb | |
# bundle exec padrino rake -e production assets:precompile | |
# bundle exec padrino start -e production |
- EDIT_LOCALES.each do |locale| | |
- lang_link = (defined?(@page_url) and not @page_url[locale].blank?) ? @page_url[locale] : url(:home, :index, locale: locale) | |
li class='#{locale == I18n.locale ? 'active' : ''}' | |
a href=lang_link | |
= locale.to_s |
#!/bin/bash | |
cd "$(dirname $0)/../" | |
PROJECT_ROOT_DIR=`pwd` | |
echo '$PROJECT_ROOT_DIR:' "$PROJECT_ROOT_DIR" | |
echo "Linking locations documents" | |
cd "$PROJECT_ROOT_DIR/src/documents/en" && | |
ln -s ../../../src-staging/documents-en/* . |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } | |
.container { | |
font-family: "helvetica neue", helvetica, sans-serif; | |
font-weight: 200; | |
font-size: 30px; | |
top: 40px; | |
height: 300px; | |
width: 400px; | |
margin-top: 50px; |