Skip to content

Instantly share code, notes, and snippets.

use std::{
collections::HashMap,
fmt::{self, Display},
ops::{BitAnd, BitOr},
};
fn main() {
let words = include_str!("words_alpha.txt")
.split('\n')
.map(|word| word.trim())
import test from './test.txt'
class A {
constructor() { }
async loadFile(filename) {
// let data = await (await fetch(filename))
// return data
return fetch(filename)
}
}
# custom two-line bash prompt for git users
#
# example (without formatting):
# [12:34] [✔ 0] [1r/2s] [master abcdefgh N] Some Author Commit message
# username@hostname ~/working/directory $
#
# to install, append this to the end of your ~/.bashrc file
#
# features (in order):
# * current time
@frxstrem
frxstrem / http_proxy_connect.py
Last active March 11, 2024 04:37
Establish a socket connection through an HTTP proxy in Python.
'''
Establish a socket connection through an HTTP proxy.
Author: Fredrik Østrem <frx.apps@gmail.com>
License:
Copyright 2013 Fredrik Østrem
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without