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 os | |
import re | |
import subprocess | |
include_map = {} | |
include_re = re.compile(r'#include "([^"]+)"') | |
for fn in subprocess.check_output(['git', 'ls-files', '*.h', '*.c'], text=True).splitlines(): | |
if fn.startswith('cras/include/'): | |
continue |
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 python3 | |
import datetime | |
import string | |
keys = string.digits + string.ascii_letters | |
now = datetime.datetime.now() |
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
{ | |
"layout": { | |
"id": "com.apple.keylayout.Colemak", | |
"localizedName": "Colemak", | |
"lang": "en" | |
}, | |
"rawMapping": { | |
"KeyA": { | |
"value": "a", | |
"valueIsDeadKey": false, |
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 argparse | |
import sys | |
import tokenize | |
def professional(filename): | |
result = [] | |
line = 0 | |
displacement = 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
import contextlib | |
import mmap | |
import os | |
def floatcmp(a, b): | |
size = os.path.getsize(a) | |
if size != os.path.getsize(b): | |
return False | |
with contextlib.ExitStack() as stack: |
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
package main | |
import ( | |
"fmt" | |
"image" | |
"image/png" | |
"os" | |
) | |
func mustReadImage(filename string) image.Image { |
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 <mpi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) { | |
MPI_Init(&argc, &argv); | |
int rank; | |
int ranks; | |
MPI_Comm_rank(MPI_COMM_WORLD, &rank); |
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
[afg@vbox ~]$ ~/go/bin/yay -S --noconfirm numix-circle-icon-theme-git | |
==> Installing numix-circle-icon-theme-git | |
=> Run Dependencies: | |
==> AUR dependencies: numix-icon-theme-git | |
==> Installing numix-icon-theme-git | |
=> Run Dependencies: | |
==> Repository dependencies: gtk-update-icon-cache | |
resolving dependencies... | |
looking for conflicting packages... |
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
from PyQt5.Enginio import Enginio | |
from PyQt5.Enginio import EnginioClient | |
from PyQt5.Enginio import EnginioClientConnection | |
from PyQt5.Enginio import EnginioIdentity | |
from PyQt5.Enginio import EnginioModel | |
from PyQt5.Enginio import EnginioOAuth2Authentication | |
from PyQt5.Enginio import EnginioReply | |
from PyQt5.QtCore import QAbstractAnimation | |
from PyQt5.QtWidgets import QAbstractButton | |
from PyQt5.QtCore import QAbstractEventDispatcher |
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 python2 | |
import sys | |
import re | |
import subprocess | |
import itertools | |
_find_unsafe = re.compile(r'[^\w@%+=:,./-]').search |
NewerOlder