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
# Edit this Gemfile to bundle your application's dependencies. | |
rails_source_path = "/Users/marioch/Development/libraries/rails" | |
directory "#{rails_source_path}", :glob => "{*/,}*.gemspec" | |
git "git://github.com/rails/arel.git" | |
git "git://github.com/rails/rack.git" | |
gem "rails", "3.0.pre", :path => "#{rails_source_path}" | |
%w(activesupport activemodel actionpack actionmailer activerecord activeresource).each do |lib| |
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
using System; | |
public class Bowling | |
{ | |
public Bowling() | |
{ | |
} | |
public void Roll(int pins) | |
{ |
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
using System; | |
public class Bowling | |
{ | |
int score; | |
public Bowling() | |
{ | |
score = 0; | |
} | |
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
Option Explicit On | |
Option Strict On | |
Imports System | |
Imports System.Data | |
Imports System.Data.SqlClient | |
Public Class ConnectionManager | |
Const connectionString As String = "Data Source=TJPAVC087;Initial Catalog=SIGADB;User Id=siga_user;Password=siga_pass;Max Pool Size=80;Min Pool Size=20;Pooling=true;" |
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 Task < ActiveRecord::Base | |
has_many :assets, :as => :attachable, :dependent => :destroy | |
validate :validate_attachments | |
Max_Attachments = 5 | |
Max_Attachment_Size = 1.megabyte | |
def validate_attachments | |
errors.add_to_base("You should attach at least one file") if assets.nil? |
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 charset="UTF-8" /> | |
<title>Aplicacion de demo</title> | |
<style type="text/css" media="screen">@import "./jqtouch/jqtouch.min.css";</style> | |
<style type="text/css" media="screen">@import "./themes/jqt/theme.min.css";</style> | |
<script src="./jqtouch/jquery.1.3.2.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="./jqtouch/jqtouch.min.js" type="text/javascript" charset="utf-8"></script> |
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].[GetFractionInfo] Script Date: 07/02/2010 16:57:10 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROCEDURE [dbo].[GetFractionInfo] | |
( | |
@clientId 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: StoredProcedure [dbo].[GetFractionInfo] Script Date: 07/06/2010 08:58:25 ******/ | |
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
BEGIN TRANSACTION | |
GO | |
CREATE TABLE dbo.Tmp_ClientProgram | |
( | |
Id int NOT NULL IDENTITY (1, 1), | |
ClientId int NOT NULL, | |
Fraction nvarchar(8) NOT NULL, | |
[Rule] nvarchar(20) NULL, | |
Amount money NULL, | |
Charter bit NULL, |
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 | |
CREATE TABLE [dbo].[ClientProgram]( | |
[Id] [int] IDENTITY(1,1) NOT NULL, | |
[ClientId] [int] NOT NULL, | |
[Fraction] [nvarchar](8) NOT NULL, | |
[Rule] [nvarchar](20) NULL, | |
[Amount] [money] NULL, | |
[Charter] [bit] NULL, |
OlderNewer