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 copy | |
import random | |
import time | |
import typing | |
def lomuto_quicksort(arr: typing.List[int]): | |
if len(arr) <= 1: | |
return |
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
<?php | |
class FCGIClient { | |
const VERSION_1 = 1; | |
const BEGIN_REQUEST = 1; | |
const ABORT_REQUEST = 2; | |
const END_REQUEST = 3; | |
const PARAMS = 4; | |
const STDIN = 5; | |
const STDOUT = 6; |
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
#define _GNU_SOURCE | |
#include <stdlib.h> | |
#include <dlfcn.h> | |
typedef unsigned int gsize; | |
typedef double gdouble; | |
typedef struct { | |
gdouble red; |
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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"net" | |
"os" | |
) |
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 os | |
import typing | |
import shutil | |
def walk_dirs(path: str, cb: typing.Callable, skip_dot: bool) -> None: | |
try: | |
entries = os.listdir(path) | |
except PermissionError: | |
return |