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
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 |
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
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} |
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
class LinkedList | |
include Enumerable | |
def initialize(head, tail) | |
@head = head | |
@tail = tail | |
end | |
attr_reader :head | |
attr_reader :tail |
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
start.include? x | |
end | |
def each(&block) | |
return to_enum(:each) unless block | |
@lists[0].each(&block) if @lists[0] | |
end | |
def insert(x) |
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
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) |
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
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 |
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
% 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. |
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 <iostream> | |
class Test { | |
public: | |
Test() { | |
instance_count++; | |
} | |
static void printCounter() { std::cout << instance_count << std::endl; } | |
private: |
NewerOlder