I hereby claim:
- I am nic-hartley on github.
- I am nichartley (https://keybase.io/nichartley) on keybase.
- I have a public key whose fingerprint is 7A66 2C29 83BD 687C B737 4B50 5DB5 846B 8EDA 60D1
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
""" | |
englishish.py is a quick-and-dirty prototype of a project I plan to work on | |
more later: A generator for text which obeys English spelling and grammar | |
rules, but whose output is nonsensical. The output of this script does tend | |
to make sense, but that's a product of the dictionary. If it was larger, it | |
would generate sentences which are grammatical but not sensical. | |
The next step is implementing this with a bigger dictionary, cleaner code, and |
// TODO: Replace with real crypto | |
#[derive(Debug, Clone)] | |
pub struct PublicKey(u8, String); | |
impl PublicKey { | |
pub fn of(name: &str) -> PublicKey { | |
let sum = name.as_bytes().iter().fold(0u8, |a, i| a.wrapping_add(*i)); | |
PublicKey(sum, name.to_owned()) | |
} |
I hereby claim:
To claim this, I am signing this object:
asdf asdf fkjdkjf
General notes, first:
/* | |
This gist demonstrates an issue with Clang-Tidy, I think. | |
Basically, you shouldn't be required to initialize all members of a | |
union, for obvious reasons, but Clang-Tidy doesn't care that the | |
"missing" members are part of a union, and tries to get them to be | |
initialized anyway. | |
*/ | |
struct Type { |
{ | |
"diffEditor.ignoreTrimWhitespace": false, | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"editor.detectIndentation": false, | |
"editor.fontSize": 12, | |
"editor.fontFamily": "Source Code Pro, 'Courier New', monospace", | |
"editor.formatOnType": true, | |
"editor.insertSpaces": true, | |
"editor.minimap.enabled": true, | |
"editor.minimap.renderCharacters": false, |
((initialCommands, undefined) => { | |
const readline = require('readline'); | |
let commands = typeof initialCommands !== 'object' ? {} : initialCommands; | |
function replaceCommand(name, func) { | |
commands[name] = [func]; | |
} | |
function addCommand(name, func) { |
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Windows.Forms; | |
namespace ColorWalker | |
{ | |
class Walker | |
{ | |
private int _lastX = 0, _lastY = 0; |