I hereby claim:
- I am brianium on github.
- I am scaturr (https://keybase.io/scaturr) on keybase.
- I have a public key whose fingerprint is E2A3 8685 A6BD F6A5 2D51 33A5 B242 F6DB 4E9C F051
To claim this, I am signing this object:
<?hh //strict | |
namespace HackUnit\Runner; | |
class Options | |
{ | |
protected ?string $testPath; | |
public function setTestPath(string $testPath): this | |
{ | |
$this->testPath = $testPath; |
<?hh | |
type SomeResult = shape('property' => int); | |
function doIoBoundThing(): void { | |
$nums = array( | |
100000000, | |
1000000000, | |
); | |
foreach ($nums as $num) { | |
$i = 0; |
var koa = require('koa'); | |
var app = koa(); | |
var json = require('koa-json'); | |
app.use(json()); | |
app.use(function* (next) { | |
if (this.method != 'GET') return yield next; | |
if (!/x-men/.test(this.originalUrl)) return yield next; |
I hereby claim:
To claim this, I am signing this object:
function Entity() { | |
} | |
Entity.prototype.entityThing = function() { | |
console.log("entity thing"); | |
}; | |
function NPC(name) { | |
Entity.call(this); | |
this.name = name; |
import "time" | |
type Interval struct { | |
Start Time | |
End Time | |
} | |
func NewInterval(start string, end string) Interval { | |
startTime, err := time.Parse(time.RFC3339, start) |
package main | |
import ( | |
"time" | |
"fmt" | |
) | |
type Interval struct { | |
Start time.Time | |
End time.Time |
<?php | |
it('should return the newly created resource', function() { | |
$this->collection->insert($this->currentJson['users'])->willReturn(true); | |
$response = $this->controller->create($this->request); | |
expect($response)->to->have->status(201); | |
expect($response)->json->to->have->deep->property('users->login', 'brian'); | |
}); |
function PromiseObserver() { | |
this.observables = { | |
root: false; | |
}; | |
} | |
/** | |
* @param {object} promise a promise to reserve | |
* @return {object} the observed promise | |
*/ |
defmodule MyList do | |
def span(from, to), do: _span(from, to, []) | |
defp _span(from, to, list) when from == to do | |
list ++ [to] | |
end | |
defp _span(from, to, list) do | |
list ++ [from | _span(from + 1, to, list) ] |