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 | |
OUTPUT=eDP-1 | |
mode() { | |
kscreen-doctor "output.${OUTPUT}.mode.${1}" | |
return $? | |
} | |
case "$1" in | |
"60") mode 2;; | |
"120") mode 1;; | |
*) |
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 csv | |
import sys | |
import xml.etree.ElementTree as ET | |
opml = ET.Element("opml") | |
xmldoc = ET.ElementTree(element=opml) | |
body = ET.SubElement(opml, "body") | |
with open(sys.argv[1], "r") as f: |
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
;; -*- lexical-binding: t; -*- | |
(eval-and-compile | |
(require 'cl-lib)) | |
(defun ansible-doc (plugin) | |
(interactive "MPlugin: \n") | |
(let* (buffer | |
(sentinel (lambda (proc status) | |
(with-current-buffer buffer | |
(cond |
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
#!/usr/bin/env python3 | |
import json | |
import os | |
import os.path | |
import subprocess | |
import sys | |
progname = sys.argv[0] | |
os.chdir(os.path.dirname(os.path.realpath(__file__))) |
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
use std::{borrow::Cow, collections::HashMap, ops::Range}; | |
use std::error::Error; | |
pub struct FetchActivitiesParams { | |
term: u8, | |
cookies: HashMap<Vec<u8>, Vec<u8>>, | |
} | |
fn get_client() -> reqwest::Client { | |
return reqwest::Client::new(); |
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 "file.h" | |
ssize_t add(ssize_t, ssize_t); // exported definition |
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
; vim: set ft=nasm | |
global _main | |
extern _puts | |
section .data | |
hello: db "hello, " | |
hello_len: equ $-hello | |
section .text | |
_main: |
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
class EdgeList: | |
# feel the edge... | |
def __init__(self): | |
self.list = [] | |
def insert(self, person1, person2): | |
if (person1, person2) not in self.list: | |
list.append((person1, person2)) | |
def friends_of(self, person): |
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> | |
#define NOT ! | |
while_loop() { | |
int i = 0; | |
// loop_head: | |
while (i < 10) { | |
i = i + 1; | |
} |
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
; vim: set ft=nasm | |
global _main | |
extern _printf | |
section .data | |
fmt: db `%p\n` | |
section .text | |
align 8 | |
_main: |
NewerOlder