Skip to content

Instantly share code, notes, and snippets.

View crodas's full-sized avatar

C crodas

View GitHub Profile
@crodas
crodas / EVM_Regex_Decompiler.md
Created December 29, 2022 14:22 — forked from vicnaum/EVM_Regex_Decompiler.md
EVM Regex Decompiler
<?php
function reporte() {
$this->layout = 'control_panel';
$query1 = "
SELECT name as label, (SELECT extract(hour from SUM(end_date-init_date)) as value FROM service_orders)
FROM contacts;
";
$rows = [];
<?php
$a = array();
$b = array();
for ($i = 0; $i <50; $i+=1) {
$a[$i] = $i;
$b[] = $i;
}
@crodas
crodas / gist:7239460
Last active December 27, 2015 00:39 — forked from anonymous/gist:7239403
Utilizo esse codigo:
<label>
<span>E-mail:</span>
<input type="email" name="email" value="<?php if(empty($cad['email'])) echo $cad['email'];?>" />
OR
<input type="email" name="email" value="<?=empty($cad['email']) ? '' : $cad['email']?>" />
</label>
@crodas
crodas / install-node.sh
Created June 9, 2011 03:50 — forked from gleicon/zemitter.js
ZeroMQ and Node.js pub/sub emitter
#!/bin/bash -x
# crodas
# get code from git
if [[ ! -d node ]]
then
git clone git://github.com/joyent/node
fi
cd node/