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
UNetWeaver error: Exception :System.ArgumentException: An element with the same key already exists in the dictionary. | |
at System.Collections.Generic.Dictionary`2[System.UInt32,System.UInt32].Add (UInt32 key, UInt32 value) [0x0007e] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404 | |
at Mono.Cecil.MetadataSystem.SetReverseNestedTypeMapping (UInt32 nested, UInt32 declaring) [0x00000] in <filename unknown>:0 | |
at Mono.Cecil.MetadataReader.AddNestedMapping (UInt32 declaring, UInt32 nested) [0x00000] in <filename unknown>:0 | |
at Mono.Cecil.MetadataReader.InitializeNestedTypes () [0x00000] in <filename unknown>:0 | |
at Mono.Cecil.MetadataReader.InitializeTypeDefinitions () [0x00000] in <filename unknown>:0 | |
at Mono.Cecil.MetadataReader.ReadTypes () [0x00000] in <filename unknown>:0 | |
at Mono.Cecil.ModuleDefinition.<get_Types>b__8 (Mono.Cecil.ModuleDefinition _, Mono.Cecil.MetadataReader reader) [0x00000] in <filename unknown>:0 | |
at |
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
package app | |
import java.io.File | |
import java.nio.charset.StandardCharsets | |
import java.nio.file.Files | |
import scala.collection.JavaConverters._ | |
import scala.io.Source | |
import scalaz._, Scalaz._, scalaz.effect._ |
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
/// <summary> | |
/// Fast, allocation free equality comparer for blittable structs with an underlying size of 64 bits or less. | |
/// </summary> | |
public class Blittable64EqComparer<T> : Smooth.Collections.EqComparer<T> { | |
public override bool Equals(T t1, T t2) { | |
Converter converter; | |
converter.value = 0; | |
converter.t = t1; | |
var v1 = converter.value; | |
converter.t = t2; |
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
#pragma once | |
#include <stdint.h> | |
// System.ValueType | |
#include "mscorlib_System_ValueType.h" | |
// com.tinylabproductions.TLPLib.Functional.Unit | |
#include "AssemblyU2DCSharp_com_tinylabproductions_TLPLib_Functional_U.h" | |
// Smooth.Compare.Comparers.Blittable64EqComparer`1/Converter<com.tinylabproductions.TLPLib.Functional.Unit> | |
#pragma pack(push, tp, 1) | |
struct Converter_t8301 | |
{ |
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
#!/usr/bin/env ruby | |
$tracks = [] | |
class Track | |
attr_accessor :no, :hours, :minutes, :seconds, :performer, :song_name | |
def initialize(no, hours, minutes, seconds, title) | |
@no, @hours, @minutes, @seconds = no, hours, minutes, seconds | |
split_title = title.split("-", 2) |
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
def rec(world: World): IO[Unit] = | |
if (world.resourcesLeft > 4) extract(world).flatMap(rec) | |
else for { | |
_ <- IO.putLn("!!! Removing asteroid !!!") | |
w = world.remove(asteroidId) | |
} yield extract(w) |
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
arturas@razor:~/work/tlp-ansible/setup$ ansible-playbook nebula-web.yml | |
SUDO password: | |
Traceback (most recent call last): | |
File "/usr/bin/ansible-playbook", line 323, in <module> | |
sys.exit(main(sys.argv[1:])) | |
File "/usr/bin/ansible-playbook", line 263, in main | |
pb.run() | |
File "/usr/lib/pymodules/python2.7/ansible/playbook/__init__.py", line 310, in run | |
play = Play(self, play_ds, play_basedir, vault_password=self.vault_password) | |
File "/usr/lib/pymodules/python2.7/ansible/playbook/play.py", line 188, in __init__ |
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
- name: link nebula44 server munin plugins | |
file: src={{ home }}/nebula-server/current/script/munin-plugins/{{ item.src }} | |
dest=/etc/munin/plugins/nebula44_{{ item.dest }} | |
state=link | |
with_items: "{{ | |
res = ['metal', 'energy', 'zetium', 'creds'] | |
kinds = ['rates', 'counts'] | |
[ | |
{ | |
'src': 'market_.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
------ laurynas-tretjakovas-try-2/stupid/src/main/scala/stupid/Card.scala ------ | |
index 6d19063..51a8095 100755 | |
@@ -3,11 +3,13 @@ package stupid | |
import stupid.rank.Rank | |
import stupid.suite.Suite | |
-case class Card(suite: Suite, rank: Rank) extends Ordered[Card] { | |
- override def compare(that: Card): Int = Ordering.by[Card, (Rank, Suite)] { c => (c.rank, c.suite) }.compare(this, that) | |
-} | |
+case class Card(suite: Suite, rank: Rank) |
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
response.ids.foldLeft( | |
Task.now(Vector.empty[ApiQuery.OrderResponse]) | |
) { (task, id) => | |
for { | |
responses <- task | |
response <- ApiQuery.Order(id).request(cfg.baseUri, cfg.websiteRetries) | |
} yield responses :+ response | |
} |