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
#!/bin/python3 | |
from i3ipc import Connection, Event | |
import subprocess | |
log = print | |
""" | |
Small python utility intended to help me in various ways | |
The goal is to listen, capture and sink keyboard inputs (no input are sent to the windows), no x11 windows should be created. | |
We listen for key press in true vim fashion and do things depending. |
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
#!/bin/sh | |
# meant to be POSIX compliant | |
full_usage() { | |
echo "Usage: around [OPTION]... [FILE] LINE_NUMBER" | |
echo "Output lines adjacents to one particular line in a file" | |
echo "" | |
echo "Options:" |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Poolzor Live;Event name:;Test | |
Teams (below).;;;;;Additional columns (optional) => | |
Reg. ID;Name;Country (xx);Comments;Booth (if defined);Arrived (0/1);city | |
100;We Robot;fr;N'importe quoi;20;1;Aubevoye | |
101;INSA;fr;N'importe quoi;30;1;Paris |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Voronoi Diagram with GPU</title> | |
</head> | |
<body> | |
<div> |
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
import fileinput | |
def load_from_stdin(): | |
inp = fileinput.input() | |
words = [] | |
for line in inp: | |
word = line.strip() | |
# non case sensitive | |
words.append(word.lower()) | |
return words |
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
let sommets_exemple = [0;1;2;3;4;5;6;7;8;9] ;; | |
let arcs_exemple = [(0,1);(1,3);(0,2);(2,3);(3,5);(3,4);(4,2);(4,7);(6,4);(6,7);(7,8);(7,9);(8,9)] ;; | |
type graphe_1 = bool array array ;; | |
type graphe_2 = int list array ;; | |
(* 1.1 *) | |
let construction_1 sommets arcs = | |
let n = (List.length sommets) in |
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
import matplotlib.pyplot as plt | |
import math | |
import random | |
import pprint | |
import json | |
import jsbeautifier | |
def generate_points(n=100): | |
X = [] | |
Y = [] |
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
sdfjsdfsfjjssfd |
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
#include <stdio.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#define MEMORY_SIZE 25 | |
#define MAX_LOOPS 5000 | |
#define MAX_INSTRUCTIONS 10000 | |
#define MAX_INPUT 256 | |
#define MAX_EXECUTION_STEPS 100000 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<circuit> | |
<version>1</version> | |
<attributes/> | |
<visualElements> | |
<visualElement> | |
<elementName>ROM</elementName> | |
<elementAttributes> | |
<entry> | |
<string>AddrBits</string> |
NewerOlder