I hereby claim:
- I am mgdm on github.
- I am mgdm (https://keybase.io/mgdm) on keybase.
- I have a public key ASDHaQqvHGJCoKwBFuvjgDzHmp_DXOeMRCd9lX9Cfw9avgo
To claim this, I am signing this object:
{ | |
"title": "Prevent unintended command-m minimising", | |
"rules": [ | |
{ | |
"description": "Disable Cmd+m minimise", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"description": "", | |
"from": { |
<?php | |
/** | |
* @param double $cReal | |
* @param double $cImag | |
* @param int $maxIterations | |
* @return int | |
*/ | |
function mandelbrotIteration($cReal, $cImag, $maxIterations) | |
{ |
I hereby claim:
To claim this, I am signing this object:
I was writing some code in Rust 1.8.0, which needed to iterate through all the values of a u8
. My first attempt looked like this:
fn main() {
for i in 0u8..255 {
println!("Iteration {}", i);
}
}
1454016307: Sending CONNACK to mosq/QNQA<M\fj0`IEBIKjk (0, 0) | |
1454016307: Received PUBLISH from mosq/QNQA<M\fj0`IEBIKjk (d0, q2, r0, m1, 'test/mgdm', ... (5 bytes)) | |
1454016307: Sending PUBREC to mosq/QNQA<M\fj0`IEBIKjk (Mid: 1) | |
1454016307: Received PUBREL from mosq/QNQA<M\fj0`IEBIKjk (Mid: 1) | |
1454016307: Sending PUBCOMP to mosq/QNQA<M\fj0`IEBIKjk (Mid: 1) |
all: | |
gcc -g -o plugin main.c | |
gcc -o test.so -g -fPIC -shared test.c |
<?php | |
function ♫() { | |
echo "hello"; | |
} | |
function 😃 () { | |
echo " world!"; | |
} | |
♫(); |
<?php | |
function ♫() { | |
echo "hello"; | |
} | |
♫(); |
<?php | |
const POSTCODE_REGEX = '/^ | |
([A-Z]+[0-9]+[A-Z]?) # outward code, eg G51, EC1A | |
\s*([0-9][A-Z]+)? # inward code, eg 1PQ, optional | |
$/x'; |
#!/bin/sh | |
# Fire up terminal-notifier.app without needing a Ruby wrapper | |
# Stolen from the `mvim` script distributed with MacVim. | |
# | |
# Credits for the MacVim version are: | |
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
# Weber and Bjorn Winckler, Aug 13 2007). | |
# |