Skip to content

Instantly share code, notes, and snippets.

@mariochavez
mariochavez / covalente.rb
Created October 14, 2014 17:26
Covalente
require 'ruby-prolog'
context = RubyProlog::Core.new
context.instance_eval do
friend['Mateo', 'Daniela'].fact
friend['Diego', 'Gabriela'].fact
friend['Tomas', 'Emma'].fact
friend['David', 'Martina'].fact
friend['Daniel', 'Daniela'].fact
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1

or

WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0
# 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,