This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
walk a47cc531835448812ba2e3db5496704d36295fb2 | |
Usage: /usr/bin/git-submodule [--quiet] [--cached] [add <repo> [-b branch]|status|init|update] [--] [<path>...] | |
rake aborted! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Gets the Album | |
/// </summary> | |
public String Album | |
{ | |
get | |
{ | |
return this.album; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collections.shuffle(CardList,shuffle_number) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%title | |
Ethan's Awesome Haml Page | |
%body | |
%h1 This is a Page Title! | |
The is the content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] do |commit| | |
=link_to show_commit_path(current_user.login, @repository.name, commit.sha1) do | |
=commit.message |