- [X] GitHub - mypaint/libmypaint: libmypaint, a.k.a. “brushlib”, is a library for …
- [X] Do we have this in NixOS repos?
- [X] We do. Let’s make default.nix
- [X] Do we have this in NixOS repos?
- [X] GitHub - mypaint/mypaint-brushes
- [X] Do we have this in NixOS repos?
- [X] We do. Let’s add it to default.nix
- [X] Do we have this in NixOS repos?
- [X] python37Packages.setuptools
- [X] python37Packages.pygobject
- [X] python37Packages.python (>= 2.7.4)
This file contains 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
{-# LANGUAGE InstanceSigs #-} | |
module Haph (bfs) where | |
import qualified Data.Set as Set | |
import qualified Data.Map as Map | |
import qualified Data.List.Ordered as O | |
newtype AdjacencyList v = AdjacencyList (Map.Map v [v]) | |
class Graph g where |
This file contains 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
data FingerTree a = Empty | |
| Single a | |
| Deep (Digit a) (FingerTree (Node a)) (Digit a) | |
deriving Show | |
data Digit a = One a | Two a a | Three a a a | Four a a a a deriving Show | |
data Node a = Node2 a a | Node3 a a a deriving Show | |
digitToList :: Digit a -> [a] | |
digitToList (One y1) = [y1] |
This file contains 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 tclsh | |
package require Tk | |
proc snowflake {can x1 y1 n len level} { | |
if {$level <= 0} { | |
return | |
} | |
set pi 3.1415926535897931 |
This file contains 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
import java.util.*; | |
public class Homie<K, V> { | |
public Homie() { | |
this.backend = new HashMap<>(); | |
} | |
public void insertValue(K key, V value) { | |
this.backend.put(key, value); | |
} |
This file contains 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
{-# LANGUAGE DeriveFunctor #-} | |
import Control.Applicative | |
import Control.Monad | |
import System.IO.Unsafe | |
class Monad m => Unwrappable m where | |
unwrap :: m a -> a | |
newtype Compose u m a = Compose { runCompose :: m (u a) } deriving Functor |
This file contains 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
local pivot = { | |
x = 200, | |
y = 200, | |
w = 100, | |
h = 150, | |
} | |
local rect = { | |
x = 0, | |
y = 0, |
This file contains 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
-- Build Instructions | |
-- $ ghc --make Main | |
-- $ ./Main | |
main = putStrLn "Hello, World" |
This file contains 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
#include <assert.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define N (1000 * 1000) | |
void array_print(int *xs, int n) | |
{ |
This file contains 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
// Copyright 2019 Alexey Kutepov <reximkut@gmail.com> | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without | |
// restriction, including without limitation the rights to use, copy, | |
// modify, merge, publish, distribute, sublicense, and/or sell copies | |
// of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |