Skip to content

Instantly share code, notes, and snippets.

View yodiz's full-sized avatar

Mikael Kjellqvist yodiz

  • Yodiz AB
  • Sweden
View GitHub Profile
@yodiz
yodiz / BTree.fs
Created April 13, 2017 20:52
F# Binary tree
module BTree
type Node<'a, 'b> = {
Key : 'a
Value : 'b
Left : Tree<'a, 'b>
Right : Tree<'a, 'b>
}
and Tree<'a, 'b> =
BEGIN TRAN
CREATE Table CdrPresentation (
CdrPresentationId INT NOT NULL IDENTITY(1,1),
Description VARCHAR(250) NOT NULL,
ChargePerNumber NUMERIC(7,4) NOT NULL,
ChargeIntervall BIGINT NOT NULL,
BaseUnit char(1) NOT NULL,
package spotify.metadata.proto;
option optimize_for = SPEED;
option java_package = "com.spotify.metadata.proto";
option java_outer_classname = "Metadata";
message TopTracks {
optional string country = 1;
repeated Track track = 2;
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace GLIM.Utilities.Text
{
public enum FieldOption
{
Required = 0,
Optional = 1
SELECT COUNT(*) FROM Cdr
JOIN Contract ON Cdr.BillingClientNr = Contract.ClientNr And Cdr.BillingContractNr = Contract.ContractNr
WHERE BillingClientNr = 44404 And StartTime > '2013-02-01' And StartTime < '2013-03-01' And Cdr.CallType=1
And NumberGroupCode = 'FIXED'
And Contract.ProductNr = 0
And Cdr.BillingPriceListCode like 'T%'
25908
@yodiz
yodiz / gist:5143360
Created March 12, 2013 14:33
asn1 tap 3 11
--
--
-- The following ASN.1 specification defines the abstract syntax for
--
-- Data Record Format Version 03
-- Release 11
--
-- The specification is structured as follows:
-- (1) structure of the Tap batch
-- (2) definition of the individual Tap 'records'
1500444040002639480000000114738TAbonnemang: 042182975
1500444040002639480000000114738T
1500444040002639480000000114738TTrafik (20120202-20120417) Pris/st Antal Intervall Pris/enhet Volym
1500444040002639480000000114738TQall kundtjänst 0,00 5 60s 0,00/min 00:52:00 0,00
1500444040002639480000000114738TInrikes fasttelefoni 0,59 2 60s 0,19/min 00:37:00 8,21
1500444040002639480000000114738T
1500444040002639480000000114738TFakturaavgift (20121210) 30,00
@yodiz
yodiz / s
Created May 18, 2012 12:13
sdsdf
sdfsdf