Skip to content

Instantly share code, notes, and snippets.

# 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|
using System;
public class Bowling
{
public Bowling()
{
}
public void Roll(int pins)
{
using System;
public class Bowling
{
int score;
public Bowling()
{
score = 0;
}
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;"
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?
<!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>
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,
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
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,
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,