Skip to content

Instantly share code, notes, and snippets.

View rbin's full-sized avatar

Robin J rbin

View GitHub Profile
@rbin
rbin / index.html
Created January 16, 2015 14:02
Lorde Feedback App Index
{{#if user}}
<section id="feedbackForm" class="topPad">
<div class="container">
<div class="formContainer">
<stamplay form-submit data-form-id='test-form' data-template-url='form-submit.html'></stamplay>
<!-- STAMPLAY Form WIDGET END -->
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World!")
}
#include <stdio.h>
int main ()
{
printf ("Hello World!\n");
}
docker build -t="my_nginx_image" .
Uploading context 25.09 kB
Uploading context
Step 0 : FROM ubuntu
---> 9cd978db300e
Step 1 : MAINTAINER O.S. Tezer, ostezer@gmail.com
---> Using cache
---> 467542d0cdd3
Step 2 : RUN echo "deb http://archive.ubuntu.com/ubuntu/ raring main universe" >> /etc/apt/sources.list
skip_before_action :verify_authenticity_token
Website::Application.routes.draw do
resources :messages, :only => [:index, :show]
post '/message' => 'messages#message'
root 'messages#index'
end
render :json => { "message" => "RIGHT" }, :status => 200
def message
if params['subject'].to_s.strip.downcase == "joke"
Message.create!({ message_type: "joke", from: params['from'], body: params['text'] })
render :json => { "message" => "RIGHT" }, :status => 200
else
def index
@messages = Message.all
end
def show
@messages = Message.find(params[:id])
end
require 'rubygems'
require 'couchbase'
CONFIG = {
:node_list => ["localhost:8091"],
:key_prefix => "pool_",
:pool_size => 3
}
def connection(bucket)