Skip to content

Instantly share code, notes, and snippets.

Thread 1 "vulkan_bug" received signal SIGSEGV, Segmentation fault.
0x00007fffef6fba69 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
(gdb) bt
#0 0x00007fffef6fba69 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#1 0x00007fffef70305f in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#2 0x00007fffef703363 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#3 0x00007fffef984da7 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#4 0x00007fffef738db0 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#5 0x00007fffef72f96c in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67
#6 0x00007fffef72f9e6 in _nv002nvvm () from /usr/lib/libnvidia-glvkspirv.so.550.67
declare
% Prend une liste de liste et les concatène toutes en une seule liste.
fun {Concat Xs} {FoldL Xs Append nil} end
% Applique F à chaque élément de Xs puis concatène tous les résultats.
fun {ConcatMap F Xs} {Concat {Map Xs F}} end
fun {Mul2 A B}
{ConcatMap fun {$ X} {Map B fun {$ Y} X#Y end} end A}
class LinkedList
include Enumerable
def initialize(head, tail)
@head = head
@tail = tail
end
attr_reader :head
attr_reader :tail
start.include? x
end
def each(&block)
return to_enum(:each) unless block
@lists[0].each(&block) if @lists[0]
end
def insert(x)
magit.git")
(:name popup :type elpa)
(:name fringe-helper
:type http
:url "http://nschum.de/src/emacs/fringe-helper/fringe-helper.el"
:features fringe-helper
:compile "fring-helper.el")
(:name flymake)
(:name flymake-point)
pop_with_fitness = population.map { |individual|
[individual, individual.fitness]
}
Array.new(breeding_pool_size) do
norm = pop_with_fitness.map(&:last).max
if norm.zero?
pop_with_fitness.pop.first
else
@Mon-Ouie
Mon-Ouie / Tetris.oz
Last active December 25, 2015 01:39
% Un tetris tout à fait normal.
%
% Mon record est de 7 lignes.
%
% Le programme est un peu lent au début.
%
% Je n’ai pas fait en sorte que les blocs commencent à tomber plus vite toutes
% les 10 lignes. Aucun être humain ne l’a encore remarqué. Allez savoir
% pourquoi.
#include <iostream>
class Test {
public:
Test() {
instance_count++;
}
static void printCounter() { std::cout << instance_count << std::endl; }
private: