I hereby claim:
- I am camilopayan on github.
- I am camilopayan (https://keybase.io/camilopayan) on keybase.
- I have a public key ASAK6DUdOHq98-trskPrKGroId-pKF2XeHLsmjRdNOfScwo
To claim this, I am signing this object:
<ul class="event_list"> | |
{{ range (.Data.Pages.ByParam "event_data.date") }} | |
{{ if isset .Params "event_data" }} | |
{{ if ge (time (.Param "event_data.date")).Unix now.Unix }} | |
<li class="grid-margin-x grid-x"> | |
<div class="cell medium-3 date"> | |
<div class="inner_date">{{ dateFormat "Jan 2" (.Param "event_data.date") }}</div> | |
</div> | |
<div class="cell auto"> | |
<a href="{{.Permalink}}" class="title h4">{{.Title}}</a> |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class AnimalParade | |
{ | |
private function getMonkey() | |
{ | |
try { | |
return $dataSource->wrangleAMonkey(); | |
} catch (NotFoundException $e) { | |
// The null object pattern, quick and dirty-like |
<?php | |
class AnimalParade | |
{ | |
public march() | |
{ | |
$animals = [ $this->getMonkey(), $this->getDog(), $this->getLion() ]; | |
foreach($animals as $animal) | |
{ | |
$animal->soundOff() |
<?php | |
// The real class might look something like this. | |
class Animal | |
{ | |
protected $sound; | |
public function __construct($sound) | |
{ | |
$this->sound = $sound; | |
} |
find [PATH TO VENDOR FOLDER] -type f -name '*.php' | grep -v -e "[Tt]est" | xargs ctags -a |
git reset --soft origin/[BRANCH NAME] | |
git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" |
String o = "<html><table>"; | |
for(int i=0; i<4; i++){ | |
o += String.format(" | |
<tr> | |
<td>%d</td> | |
<td>%d</td> | |
<td>%s</td> | |
</tr>", i, guess[i], histogram[i]); | |
} | |
o+="</table></html>"; |
def find_mystery(length, mystery): | |
boxes = range(1, length+1) | |
step = int(sqrt(length)) | |
count = 0 | |
for t in range(0, length+1, step): | |
count = count+1 | |
if t >= length: | |
print "Now checking %d and that is outta range" % t | |
else: |