Skip to content

Instantly share code, notes, and snippets.

def edit
return redirect_to new_user_session_path unless user_signed_in?
return redirect_to dashboard_path unless current_user.login == params[:id]
@user = current_user
end
require 'java'
include_class com.bauer.backend.Card
include_class java.util.ArrayList
include_class java.util.Collections
include_class java.util.List
DECK_SIZE = 52
SUIT_SIZE = 13
SUITES = ['S','H','C','D']
walk a47cc531835448812ba2e3db5496704d36295fb2
Usage: /usr/bin/git-submodule [--quiet] [--cached] [add <repo> [-b branch]|status|init|update] [--] [<path>...]
rake aborted!
/// <summary>
/// Gets the Album
/// </summary>
public String Album
{
get
{
return this.album;
}
}
Collections.shuffle(CardList,shuffle_number)
class KeheDirect::Admin::I27ExportController < KeheDirect::Admin::AdminController
authorized_for :admin
def create
Cart.export_i27
response.headers['Content-Type'] = 'text/csv'
response.headers['Content-Disposition'] = 'attachment; filename=I-27.csv'
render :action => :new
end
end
<!-- This comment keeps IE6/7 in the reliable quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KEHE :: EMPLOYEES<% if @title %>: <%= @page_title %><% end %></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag :defaults %>
<%= yield :head %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
Ethan's Awesome Haml Page
</title>
</head>
<body>
<h1>This is a Page Title!</h1>
!!!
%html
%head
%title
Ethan's Awesome Haml Page
%body
%h1 This is a Page Title!
The is the content
[email protected] do |commit|
=link_to show_commit_path(current_user.login, @repository.name, commit.sha1) do
=commit.message