It's pretty simple. Example usage:
> python3 wordle.py
banal
"""BigQuery utilities.""" | |
import datetime | |
import typing as t | |
from abc import ABC, abstractmethod | |
from google.cloud import bigquery | |
from google.cloud.bigquery import query | |
type QueryParamValue = str | int | float | datetime.date | datetime.datetime | t.Sequence[ # noqa: E501 |
// note that a lot of code choices here are due to the fact that cloudfront edge uses | |
// a hilariously backwards version of javascript: | |
// | |
// "const", you say? what's that?! | |
// deal with the painful structure that cloudfront edge functions use for query params | |
function getURLSearchParamsString(obj) { | |
var str = []; | |
for (var param in obj) { | |
if (obj[param].multiValue) { |
import time | |
from random import random | |
from typing import Set, Tuple | |
# Set the default BOARD_SIZE to 40 | |
BOARD_SIZE = 40 | |
def init_board_with_n_gliders(n: int) -> Set[Tuple[int, int]]: | |
"""Initialize a board with n gliders.""" |
import fs from "fs"; | |
import url from "url"; | |
import { getCSSLanguageService } from "vscode-css-languageservice"; | |
import { TextDocument } from "vscode-languageserver-textdocument"; | |
/** Human-readable names for the potential diagnostic severities returned. */ | |
const severities = { 1: "ERR", 2: "WARN", 3: "INFO", 4: "HINT" }; | |
/** Format a position in a given file. */ |
It's pretty simple. Example usage:
> python3 wordle.py
banal
tell application "Finder" to eject (every disk whose ejectable is true and local volume is true and free space is not equal to 0) |
// | |
// CertificateSigningRequest.h | |
// Cloak | |
// | |
// Created by Dave Peck on 10/31/16. | |
// Copyright © 2016 Bourgeois Bits LLC. All rights reserved. | |
// Licensed under the MIT license | |
// | |
#import <Foundation/Foundation.h> |
I got hit by the weird group reassignment when I upgraded to Mavericks. In my case the group was macports
(!). I’ve seen one report from a user who got cloakproxy
after the 10.11 upgrade, so apparently the bug is still there.
For some reason the OS X upgrader sometimes picks a group and changes the PrimaryGroupID
to 20
. Here’s the confirm:
dscl . -read Groups/cloakproxy
dscl . -read Groups/staff
And the fix:
It's easy:
iOS-autotools
by @szanni from https://github.com/szanni/ios-autotoolslibarchive 3
from http://www.libarchive.org/cd
into the libarchive
code directoryexport ARCHS="armv7 armv7s arm64"
(or suitable for your needs and your shell of choice)autoframework ArchiveLib libarchive.a
and wait for everything to build!# Levenshtein distance with the ability to reward or punish | |
# longer contiguous matching runs (set contiguousBonus < 1.0 for rewards) | |
stringDistance = (s, t, deleteCost=1, insertCost=1, substitutionCost=1, contiguousBonus=1.0) -> | |
sLength = s.length | |
tLength = t.length | |
d = [] | |
for i in [0..sLength] | |
d[i] = [{score: i, contiguous: 0}] |