Skip to content

Instantly share code, notes, and snippets.

View heijmerikx's full-sized avatar

Rutger Heijmerikx heijmerikx

View GitHub Profile
!!! 5
%html
%head
%title= 'Zetetic - ' + yield_for(:title, 'Blog')
%meta{:name => 'description', :content => yield_for(:description, "blarf blarf dorf dorf dorf, hooray it's our blog!")}/
...
!!! 5
%html
%head
%title= 'Zetetic - ' + yield_for(:title, 'Blog')
%meta{:name => 'description', :content => yield_for(:description, "blarf blarf dorf dorf dorf, hooray it's our blog!")}/
...
!!! 5
%html
%head
%title= 'Zetetic - ' + yield_for(:title, 'Blog')
%meta{:name => 'description', :content => yield_for(:description, "blarf blarf dorf dorf dorf, hooray it's our blog!")}/
...
<% form_tag :search, :url => asdf, :html => { :id => 'search_form' } do %>
<%= text_field_tag :search %>
<%= submit_tag 'zoeken' %>
<% end %>
<div id="search_results"></div>
$('#search_form').live('submit', function(event) {
event.preventDefault();
$.post($(this).attr('action'), $(this).serialize(), null, 'script');
});
#!/bin/bash -xe
# Run this script from machine with the credintials and the latest api tools installed
EBS_DEVICE='/dev/sdh'
INSTANCE_ID=$1
AKI=${2:-'aki-5f15f636'}
ARI=${3:-'ari-0915f660'}
ARCH=${4:-'i386'}
SIZE=${5:-10}
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>