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 ApartmentsController < ApplicationController | |
def index | |
@apartments = Apartment.all | |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Radio</title> | |
</head> | |
<body> | |
<audio src="http://malla.softnet.si:8000/" controls preload> </audio> | |
</body> | |
</html> |
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
\documentclass[letterpaper]{article} | |
\usepackage{color,hyperref,geometry,subfigure,fancyhdr,sectsty,pstricks} | |
\usepackage[utf8x]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage[sc,osf]{mathpazo} | |
\usepackage{adforn} | |
\usepackage{soul} | |
\usepackage{setspace} | |
\usepackage{scrextend} |
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
// Based on http://snipt.net/boriscy/datetime-jquery-formtastic/ | |
$.tools.dateinput.localize("ja", { | |
months: '1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月', | |
shortMonths: '1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月', | |
days: '日曜日,月曜日,火曜日,水曜日,木曜日,金曜日,土曜日', | |
shortDays: '日,月,火,水,木,金,土' | |
}); | |
$.tools.dateinput.conf.format = 'yyyy-mm-dd'; |
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
/* | |
=form_for :sendemail, :url => :sendemail_index,:remote => true, :html => { :"data-name" => "Contact ASC Admin", :"data-cancelable" => true } | |
*/ | |
var Asc = { | |
center: $(window).width() / 2, | |
_init: function(){ | |
Asc.notice_fade() |
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
module Paperclip | |
class PdfToSwf < Processor | |
attr_accessor :params | |
def initialize file, options = {}, attachment = nil | |
super | |
@file = file | |
@params = options[:params] | |
@current_format = File.extname(@file.path) |
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
/** | |
* Returns location search parameters as hash, so we can | |
* use them more naturally in our javascript. Like...cough... rails :P | |
* | |
* Example url: http://my_domain.ext/?page=products&condition=cheap | |
* | |
* | |
* var params = get_params(); | |
* | |
* alert( params['page'] ); // => products |
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
<?php | |
class SoapClientDebug extends SoapClient | |
{ | |
public function __doRequest($request, $location="", $action="", $version=0, $one_way=0) { | |
echo "<pre>" . preg_replace('/></', '><br><', htmlentities($request)) . "</pre>"; | |
return parent::__doRequest($request, $location, $action, $version); | |
} | |
} |
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
<?php | |
/** | |
* | |
* Eogs (V .4) class is a collection of methods used to communicate with cvr.dk SOAP | |
* service. | |
* | |
* Details on @link http://archprod.service.eogs.dk/cvronline/metacvronline/urls.htm | |
* | |
* @note .4 contains only adapters for two interfaces. |
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
# minimal rails3 app | |
require 'action_controller' | |
Router = ActionDispatch::Routing::RouteSet.new | |
Router.draw do | |
root :to => 'site#index' | |
end | |
class SiteController < ActionController::Metal |
OlderNewer