Skip to content

Instantly share code, notes, and snippets.

View adridev's full-sized avatar
😀
Coding!!

Adrián Ríos Francia adridev

😀
Coding!!
View GitHub Profile
@adridev
adridev / 1.log
Last active September 12, 2018 02:25
line one
line two
<?php
//...
/**
* @return mixed
*/
protected function buildUserView(\App\Models\User\User $user)
{
$userView = new class($user->getAttribute('id'), $user->getAttribute('email'), $user->getAttribute('name'))
@adridev
adridev / model-algo.txt
Created September 2, 2014 15:38
Algo improved
$questions = array_values($questions);
foreach ($questions as $k => $q) {
$key = (string) 'q' . (++$k);
$questionMapping[$key] = $q;
}
$template = "
MATCH
(u:User)-[:RATES]->(q:Question)
@adridev
adridev / 0_reuse_code.js
Created May 27, 2014 16:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console