Skip to content

Instantly share code, notes, and snippets.

View buismaarten's full-sized avatar

Maarten Buis buismaarten

View GitHub Profile
.global __aeabi_uidiv
__aeabi_uidiv:
cmp r1, #0
mov r2, r0
beq .L8
mov r3, #1
blt .L3
.L4:
lsls r1, r1, #1
<?php
function getAllTypes(ReflectionParameter $reflectionParameter): array
{
$reflectionType = $reflectionParameter->getType();
if (! $reflectionType) {
return [];
}
<?php
$urls = [];
$string = file_get_contents('https://www.google.com');
preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $string, $matches);
foreach ($matches[0] as $result) {
$result = trim($result);
$result = rtrim($result, '/');
<?php
use SebastianBergmann\Diff\Differ;
use SebastianBergmann\Diff\Output\DiffOutputBuilderInterface;
class MinimalDiffOutputBuilder implements DiffOutputBuilderInterface
{
/**
* @param array $diff
* @return string
br
br_if
br_table
call
call_indirect
current_memory
data.drop
drop
elem.drop
f32.abs