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
# translated from https://github.com/VictorTaelin/abstract-algorithm | |
import math | |
import re | |
# --- name.js --- | |
count = 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
#!/bin/bash | |
gh repo list "$1" --limit 1000 --json "nameWithOwner,isPrivate,description,pushedAt" | jq -r ".[]|[.nameWithOwner,.isPrivate,.description,.pushedAt] | @tsv" | | |
while IFS=$'\t' read -r name private description pushedAt; do | |
if [ -f "$name"/.git/age ]; then | |
currentAge="$(date -d "$(cat "$name"/.git/age)" +%s)" | |
newAge="$(date -d "$pushedAt" +%s)" | |
if [ "$currentAge" -ge "$newAge" ]; then | |
continue | |
fi |
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
const { spawn } = require("child_process"); | |
const net = require("net"); | |
const { | |
createProtocolConnection, | |
HoverRequest, | |
NullLogger, | |
InitializeRequest, | |
DidOpenTextDocumentNotification, | |
DidCloseTextDocumentNotification, | |
InitializedNotification, |
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 <stdlib.h> | |
#include <math.h> | |
static void to_digits(unsigned char *bytes, int n_bytes, unsigned int *digits, | |
int n_digits, unsigned int base) | |
{ | |
for (int i_byte = 0; i_byte < n_bytes; i_byte++) { | |
unsigned char byte = bytes[i_byte]; |
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 lambda(ret, args, body) __extension__({ ret anon args body anon; }) |
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 <plist/plist.h> | |
#define INDENT 4 | |
void plist_dump(plist_t plist, int depth) | |
{ | |
for (int i = 0; i < depth * INDENT; i++) | |
printf(" "); | |
if (PLIST_IS_BOOLEAN(plist)) { |