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
void AsciiString::ensureUniqueBufferOfSize(int numCharsNeeded, Bool preserveData, const char* strToCopy, const char* strToCat) | |
{ | |
validate(); | |
if (m_data && | |
m_data->m_refCount == 1 && | |
m_data->m_numCharsAllocated >= numCharsNeeded) | |
{ | |
// no buffer manhandling is needed (it's already large enough, and unique to us) | |
if (strToCopy) |
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
fn main() { | |
let event_loop = EventLoop::new(); | |
let window = WindowBuilder::new() | |
.with_resizable(false) | |
.with_inner_size(winit::dpi::PhysicalSize::<u32>::new(1024, 576)) | |
.build(&event_loop) | |
.unwrap(); | |
std::panic::set_hook(Box::new(console_error_panic_hook::hook)); | |
console_log::init().expect("could not initialize logger"); |
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
# License: Public Domain | |
import base64 | |
import hashlib | |
import random | |
import string | |
import sys | |
salt = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase + | |
string.digits, k = 16)).encode() |
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
aarch64-apple-ios | |
aarch64-unknown-fuchsia | |
aarch64-unknown-linux-gnu | |
arm-apple-ios | |
arm-linux-androideabi | |
arm-unknown-linux-gnueabi | |
arm-unknown-linux-gnueabihf | |
arm-unknown-nacl | |
armv7-apple-ios | |
armv7s-apple-ios |
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 | |
# Public Domain | |
import json | |
import os | |
import subprocess | |
import sys | |
import threading | |
import time |
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
from subprocess import Popen, DEVNULL | |
from urllib.request import urlopen | |
from bs4 import BeautifulSoup | |
BASE_URL = 'http://example.com/Album%20Name/' | |
html_doc = urlopen(BASE_URL) | |
soup = BeautifulSoup(html_doc, 'html.parser') | |
urls = [] | |
for link in soup.find_all('a'): |
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
data/ | |
scratch/ # anything goes | |
my/ # work I made | |
src/ # code projects I made | |
art/ # non-code projects I made | |
doc/ # documents | |
db/ # databases and other data | |
key/ # ssh and cyrptographic keys | |
notes/ # plaintext documents | |
recipes/ |