This file contains hidden or 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
SET NOCOUNT ON | |
DBCC UPDATEUSAGE(0) | |
-- DB size. | |
EXEC sp_spaceused | |
-- Table row counts and sizes. | |
CREATE TABLE #t | |
( |
This file contains hidden or 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
// original "seed" code. | |
public void ComputePoints() | |
{ | |
for (int x = 0; x < 20; x++) | |
{ | |
for (int y = 0; y < 20; y++) | |
{ | |
points.Add(new Point { x = x, y = y }); | |
} |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Project11 | |
{ | |
public class Point | |
{ |
This file contains hidden or 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
require 'pp' | |
require 'fileutils' | |
class PerforceFileFix | |
def initialize open_files | |
@open_files = open_files | |
end | |
def self.utf_16_be_bom? file |
This file contains hidden or 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
Hello | |
Spanish: ¡Hola! | |
Russian: здравствуйте! | |
German: Hallo! | |
French: Salut! | |
Dutch: Hallo! Goededag ("GOOH deh dah") | |
Pleased to meet you / nice to meet you |
This file contains hidden or 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
Recipe to create a gitlab server | |
- build an Ubuntu server (12.04) LTS on a 64 bit machine | |
- during the build, choose Basic Linux Server and OpenSSH Server | |
- once complete, log in to the server | |
- $ sudo apt-get update -y | |
- $ sudo apt-get upgrade -y | |
- $ sudo apt-get install wget | |
- check https://www.gitlab.com/downloads and get note the name of the Ubunutu download name | |
- sudo wget <full url of download file name> |
This file contains hidden or 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
require 'benchmark' | |
require_relative './connection.rb' | |
require_relative './person.rb' | |
require_relative './command_create_person.rb' | |
require_relative './documents_repository.rb' | |
$DB ||= Connection.db_cqrs |
This file contains hidden or 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
require 'rspec' | |
require_relative '../person' | |
require_relative '../command_create_person.rb' | |
require_relative '../documents_repository.rb' | |
require_relative '../aggregate_lookup.rb' | |
require_relative '../command_person_correct_ssn.rb' | |
This file contains hidden or 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 AggregatePointer < Hash | |
attr_accessor :aggregate_type, :aggregate_id | |
def initialize aggregate_type, aggregate_id | |
@aggregate_type = aggregate_type | |
@aggregate_id = aggregate_id | |
self['aggregate_type'] = aggregate_type | |
self['aggregate_id'] = aggregate_id |
This file contains hidden or 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
require 'pp' | |
require_relative './aggregate_pointer.rb' | |
class Persistence | |
#--------------------------- | |
# class methods | |
#--------------------------- | |
NewerOlder