Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pdonald
pdonald / rome.geojson
Created August 11, 2016 17:03
Rome city blocks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pdonald
pdonald / gist:8502344
Created January 19, 2014 09:19
(c) Institute of Mathematics and Computer Science, University of Latvia, 2005-2012 This software is licenced under GNU General Public Licence.
atstāt
salt
sasalt
nosalt
pārsalt
pārdot
atdot
aizdot
nedot
iedot
[Exception: Exception of type 'System.Exception' was thrown.]
Benchmarks.AspNet.Controllers.JsonController.Index() in JsonController.cs:10
lambda_method(Closure , ControllerBase , Object[] ) +101
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +59
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +435
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +60
System.Web.Mvc.Async.AsyncControllerActionInvoker.InvokeSynchronousActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +50
System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +75
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +44
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +139
#!/usr/bin/perl
my $type = shift @ARGV;
$set_id = "myset";
$doc_id = "mydoc";
$sys_id = "mysys";
if ($type eq 'src') {
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
// algoritms tik elementārs, cik vien iespējams, kā arī neefektīvs
// netiek ņemti vērā speciāl/robežgadījumi
class SecretSanta
{
static void Main()
@pdonald
pdonald / v1.md
Last active August 29, 2015 13:57
NLP failu formāti

Tokenizēts

Formāts:

  • garums
  • tokens
  • tips
  • pozīcija
  • teikuma numurs
@pdonald
pdonald / LuMiiMorphology.cs
Last active August 29, 2015 13:56
Formāts: tokens lemma pareizais ~ morpho1 morpho2 morpho3
// Copyright (C) 2014 Pēteris Ņikiforovs
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the