Skip to content

Instantly share code, notes, and snippets.

ALTER PROCEDURE [dbo].[GetFractionInfo]
(
@clientId int,
@fraction nvarchar(8)
)
AS
SET NOCOUNT ON
DECLARE @NOTFOUND int
ALTER PROCEDURE [dbo].[GetFractionInfo]
(
@clientId int,
@fraction nvarchar(8)
)
AS
SET NOCOUNT ON
DECLARE @NOTFOUND int
USE [Codigos]
GO
/****** Object: Table [dbo].[MaxValues] Script Date: 08/05/2010 11:12:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
USE [Codigos]
GO
/****** Object: StoredProcedure [dbo].[InsClient] Script Date: 08/09/2010 00:39:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
<table>
<!-- aqui va thead -->
<tbody>
<%= render @hotels %>
</tbody>
</table>
En un archivo parcial llamado _hotel.html.erb:
<tr class="<%= cycle("first", "second") %>">
source 'http://rubygems.org'
gem 'rails', '3.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mongoid', '2.0.0.beta.17'
gem 'bson_ext', '1.0.4'
public static class BusinessDays
{
public static bool WorkingDay(this DateTime date)
{
return date.DayOfWeek != DayOfWeek.Saturday && date.DayOfWeek != DayOfWeek.Sunday;
}
/* this function is used only to collect the dates
we are not paying much attention of the implementation */
public static List<DateTime> GetAlldates(DateTime start, DateTime end)
<?xml version="1.0"?>
<configuration>
<configSections>
<!-- custom configuration section for DLR hosting -->
<section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting" requirePermission="false"/>
</configSections>
<system.webServer>
<handlers>
<!-- clear all other handlers first. Don't do this if you have other handlers you want to run -->
<clear/>
@modelos = Modelo.all(:params => {:client => @client_code})
@mariochavez
mariochavez / manos.cs
Created November 29, 2010 18:33
Ejemplo del frameworks ligeros para web apps
public class HelloWorld : ManosApp {
public HelloWorld ()
{
Route ("/", ctx => ctx.Response.End ("Hello, World"));
}
}