Skip to content

Instantly share code, notes, and snippets.

@pdonald
pdonald / LuMiiMorphology.cs
Last active Aug 29, 2015
Formāts: tokens lemma pareizais ~ morpho1 morpho2 morpho3
View LuMiiMorphology.cs
// 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
@pdonald
pdonald / v1.md
Last active Aug 29, 2015
NLP failu formāti
View v1.md

Tokenizēts

Formāts:

  • garums
  • tokens
  • tips
  • pozīcija
  • teikuma numurs
View SecretSanta.cs
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()
View wrap-xml.pl
#!/usr/bin/perl
my $type = shift @ARGV;
$set_id = "myset";
$doc_id = "mydoc";
$sys_id = "mysys";
if ($type eq 'src') {
View gist:5606686
[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
@pdonald
pdonald / gist:8502344
Created Jan 19, 2014
(c) Institute of Mathematics and Computer Science, University of Latvia, 2005-2012 This software is licenced under GNU General Public Licence.
View gist:8502344
atstāt
salt
sasalt
nosalt
pārsalt
pārdot
atdot
aizdot
nedot
iedot
@pdonald
pdonald / rome.geojson
Created Aug 11, 2016
Rome city blocks
View rome.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.