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
ALTER PROCEDURE [dbo].[GetFractionInfo] | |
( | |
@clientId int, | |
@fraction nvarchar(8) | |
) | |
AS | |
SET NOCOUNT ON | |
DECLARE @NOTFOUND int |
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
ALTER PROCEDURE [dbo].[GetFractionInfo] | |
( | |
@clientId int, | |
@fraction nvarchar(8) | |
) | |
AS | |
SET NOCOUNT ON | |
DECLARE @NOTFOUND int |
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
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 |
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
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 |
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
<table> | |
<!-- aqui va thead --> | |
<tbody> | |
<%= render @hotels %> | |
</tbody> | |
</table> | |
En un archivo parcial llamado _hotel.html.erb: | |
<tr class="<%= cycle("first", "second") %>"> |
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
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' |
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
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) |
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
<?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/> |
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
@modelos = Modelo.all(:params => {:client => @client_code}) |
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
public class HelloWorld : ManosApp { | |
public HelloWorld () | |
{ | |
Route ("/", ctx => ctx.Response.End ("Hello, World")); | |
} | |
} |