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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
texlive = pkgs.texlive.combined.scheme-basic; | |
python = pkgs.python3; | |
textext = python.pkgs.buildPythonPackage rec { | |
pname = "textext"; | |
version = "1.3.1"; | |
src = pkgs.fetchFromGitHub { | |
owner = "textext"; |
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 playground | |
import scala.concurrent.duration._ | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.{Failure, Success, Try} | |
import akka.actor.{Actor, ActorLogging, ActorRef, Props} | |
import akka.util.Timeout | |
import akka.pattern.{ask, pipe} | |
import playground.Parent.{BulkTasks, Finish, TaskCompleted, TaskFailed} |
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/perl | |
use strict; | |
use warnings; | |
my $windows = `wmctrl -l -G`; | |
my $processes = `ps faux`; | |
my $xrandr = `xrandr | grep " connected"`; | |
my @displays = (); |
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
object CompileTimeFactorial { | |
import scala.language.experimental.macros | |
// This function exposed to consumers has a normal Scala type: | |
def factorial(n: Int): Int = | |
// but it is implemented as a macro: | |
macro factorial_impl | |
import scala.reflect.macros.blackbox.Context |
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
/* | |
* Usage: | |
* - open https://updates.xebia.com/smoelenboek/ | |
* - paste this file into chrome developer tools js console | |
* - look at the picture in the top-left corner and choose from the names in the js console | |
*/ | |
images = jQuery('dt.portrait img') | |
answer = [ , , , ] |
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
diff -r d3b0a91b15b3 make/mapfiles/libjava/mapfile-vers | |
--- a/make/mapfiles/libjava/mapfile-vers Tue Oct 06 12:54:22 2015 +0300 | |
+++ b/make/mapfiles/libjava/mapfile-vers Fri Oct 09 22:15:40 2015 +0200 | |
@@ -56,6 +56,7 @@ | |
JNU_ThrowArrayIndexOutOfBoundsException; | |
JNU_ThrowByName; | |
JNU_ThrowByNameWithLastError; | |
+ JNU_ThrowByNameWithLastErrorAndMsg; | |
JNU_ThrowClassNotFoundException; | |
JNU_ThrowIllegalAccessError; |
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
Verifying that +raboof is my blockchain ID. https://onename.com/raboof |
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
html { | |
font-size: 22px | |
} | |
linter-message { | |
font-size: 22px | |
} | |
@media (min-width: 1920px) { | |
[theme-one-dark-ui-layoutmode="auto"] { font-size: @font-size + 10px; } | |
} |
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
type ListMultiMap[A, B] = Map[A, List[B]] | |
implicit class ListMultiMapOps[A, B](val map: ListMultiMap[A, B]) extends AnyVal { | |
/** May be overridden */ | |
def makeList: List[B] = Nil | |
def addBinding(key: A, value: B): ListMultiMap[A, B] = map + (key -> { value :: map.getOrElse(key, makeList) }) | |
def removeBinding(key: A, value: B): ListMultiMap[A, B] = map.get(key) match { | |
case None => map |
NewerOlder