(setq kill-buffer-query-functions
(remq 'process-kill-buffer-query-function
kill-buffer-query-functions))
(kill-buffer "wall")
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
#!/bin/bash | |
LOGS=/home/aragaer/.config/obs-studio/logs/ | |
get_status() { | |
result='---' | |
OBSPID=`ps ax | awk '\$5=="obs"{print \$1}'` | |
for pid in $OBSPID; do | |
file=`readlink -f /proc/$pid/fd/6` |
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 | |
def make_container_for(key): | |
if isinstance(key, int): | |
return [None] * (key+1) | |
else: | |
return {} | |
def build(val, path): | |
for key in reversed(path): |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
//#define DEBUG | |
int compares = 0, swaps = 0; | |
void dumps(void *d, int c) { | |
int i; |
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
[ | |
[ | |
{ | |
"a": 7 | |
}, | |
"<i class='badger badger-badger'></i>", | |
"<i class='badger badger-badger'></i>", | |
"<i class='badger badger-badger'></i>", | |
"<i class='badger badger-badger'></i>", | |
"<i class='badger badger-badger'></i>", |
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
(define (msg-type msg) | |
(cdr (assoc 'type msg))) | |
(define (msg-class msg) | |
(cdr (assoc 'class msg))) | |
(define (msg-data msg) | |
(cdr (assoc 'data msg))) | |
(define (msg-cmd msg) |
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 python | |
import argparse | |
import glob | |
import os | |
import sys | |
import numpy as np | |
from PIL import 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
#!/usr/bin/env python3 | |
import json | |
class StreamDecoder(json.JSONDecoder): | |
def __init__(self, *args, buf=None, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.buf = buf or [""] |
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
(use json) | |
(use posix) | |
(use utils) | |
(require-extension srfi-13) | |
(require-extension srfi-18) | |
(require-extension srfi-19) | |
(define api-key '()) | |
(define token '()) |
NewerOlder