Skip to content

Instantly share code, notes, and snippets.

View mamorunl's full-sized avatar

Bas Hepping mamorunl

  • Groningen, The Netherlands
View GitHub Profile
<template>
<tr>
<td>
<select name="invoice_lines[1][product_id]" class="form-control _select-product_id" v-on:change="fillFields" v-model="product_id">
<option value="0">@lang('mamorunl::invoices.invoice_lines.messages.select_product_id')</option>
<option v-for="(id, name) in products" :value="id">{{ name }}</option>
</select>
<input type="hidden" name="invoice_lines[1][product_code]" value="" v-model="product_code">
</td>
<td>
@mamorunl
mamorunl / AOC_4.php
Created December 4, 2015 09:22
AOC_4.php
$input = "yzbqklnj";
$result = "00000";
for($i = 0; $i < 999999999999; $i++) {
$md5 = md5($input . "" . $i);
if(!strcmp(substr($md5, 0, strlen($result)), $result)) {
echo substr($md5, 0, strlen($result)), "<br>";
echo $i . "=" . $md5;
break;
@mamorunl
mamorunl / AOC_1.php
Last active December 1, 2015 14:03
AOC
<?php $f=$b=0;foreach(str_split(file('i')[0])as$p=>$d)($f-=$d=='('?-1:1)>=0|$b?:$b=$p+1;echo"$f $b";