Skip to content

Instantly share code, notes, and snippets.

Daniel Kolman kolman

Block or report user

Report or block kolman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kolman / gol.clj
Created Jan 31, 2015
Game of Life in Clojure, slightly modified from original here:
View gol.clj
(defn neighs [[x y]]
(for [dx [-1 0 1]
dy [-1 0 1]
:when (not (= 0 dy dx))]
[(+ x dx) (+ y dy)]))
(defn should-be-alive [nc is-alive]
(or (= nc 3)
View gist:7889661

Vážení a milí účastníci!

Sobotní CodeRetreat se blíží a tak nám dovolte seznámit Vás s organizačními informacemi:

Co budete potřebovat?

Vemte si notebook s rozchozeným IDE nějakého jazyka, ve kterém umíte napsat a spustit test. Na jazyku nezáleží, vyberte si takový, který je vám sympatický:)

Jak budeme programovat?

View gist:6281615
at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4CTTIoer.processError(
at oracle.jdbc.driver.T4C8Oall.receive(
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(
View gist:1761691
<Style TargetType="Sarcasm">
<Setter Property="FontWeight" Value="Heavy" />
<Sarcasm.Content>You know what would be great? If we could code everything in XAML.</Sarcasm.Content>
kolman / gist:1427422
Created Dec 3, 2011
Game of Life rules
View gist:1427422
module CodeRetreat
open Xunit
type Cell =
| DeadCell of int
| LiveCell of int
let hasChanceToLife (cell:Cell) =
match cell with
kolman / gist:1297625
Created Oct 19, 2011
Test WSDL generated by WCF
View gist:1297625
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Description;
using System.Text;
using System.Xml.Schema;
using Gmc.Fido.WebServices.Api.SurveyDataService;
using NUnit.Framework;
using ServiceDescription = System.Web.Services.Description.ServiceDescription;
View A Message from Planet XAML
<Label Content="(default)">
<Style TargetType="Label">
<DataTrigger Binding="{Binding Path=DefaultOutput, Converter={x:Static Converters:StringIsEmptyConverter.Instance}}" Value="False">
<Setter Property="Visibility" Value="Collapsed" />
You can’t perform that action at this time.