Skip to content

Instantly share code, notes, and snippets.

Avatar
🪁
as high as a kite

Diego spacecowb0y

🪁
as high as a kite
View GitHub Profile
@spacecowb0y
spacecowb0y / day-1.js
Last active Dec 2, 2021
Advent of Code 2021: Javascript
View day-1.js
const measurements = []; // your data here
const byIndexValue = (value, index, array) => array[index] > array[index - 1];
const byIndexSum = (value, index, array) =>
value + array[index + 1] + array[index + 2] >
value + array[index - 1] + array[index + 1];
console.log(`Answer 1: ${measurements.filter(byIndexValue).length}`);
console.log(`Answer 2: ${measurements.filter(byIndexSum).length}`);
View Amorelie-Store-Tech-Radar.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
name,ring,quadrant,isNew,description
Agile and Scrum,Adopt,Techniques,FALSE,"<p>As opposed to a conventional waterfall method, Agile is an iterative process, where each unit of work should have a short time span (a couple of weeks is ideal). The goal is to deliver working software to the customer at the end of each iteration. Then the customer will give feedback as needed and things are adjusted for the next iteration.</p>"
Pair Programming,Trial,Techniques,FALSE,"<p>Pair programming provides a process for sharing knowledge and context that is built into our everyday workflow. For every line of code written while pair programming, two people have context on the code instead of one. This provides built-in redundancy if one person leaves, moves to a different team, is busy with other work, or goes on vacation. Without pair programming, developers must go to extra lengths to share knowledge, usually through extra meetings and code review sessions.</p>"
Frontastic,Adopt,Platforms,FALSE,"<p>Frontastic combines API
View mantra.md

“No sé adonde voy, pero sé con quién voy.
No sé dónde estoy, pero sé que estoy en mi.
No sé qué es Dios, pero Dios sabe lo que soy.
No sé lo que es el mundo, pero sé que es mio.
No sé lo que valgo, pero sé no compararme.
No sé lo que es el amor, pero sé que gozo tu existencia.
No puedo evitar los golpes, pero sé como resistirlos.
No puedo negar la violencia, pero puedo negar la crueldad.
No puedo cambiar al mundo, pero puedo cambiarme a mi mismo.
No sé lo que hago, pero sé que lo que hago me hace.

View orbit-db-example.txt
/orbitdb/zdpuB2o7LjwH2aruaNW9XNo7o5n9h8iSeRGEmdoqLwgpGHQk1/diego.earth.post_1.total_views
View template.html
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Unique page title - My Site</title>
<script type="module">
document.documentElement.classList.remove('no-js');
View key base.md

Keybase proof

I hereby claim:

  • I am spacecowb0y on github.
  • I am dperalta (https://keybase.io/dperalta) on keybase.
  • I have a public key ASBK-ESQektCOJ_b28Rt3xkbt2HPVrGQOYmhzFm0cug4ogo

To claim this, I am signing this object:

View resume.json
{
"basics": {
"name": "Diego Peralta",
"label": "Tech Lead Engineer",
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"summary": "I'm a pragmatic programmer with over 12 years of professional experience, including hands-on full stack development in startups environments, leading teams, consulting/advising startup clients, and delivering many mission critical projects. ",
"website": "https://diego.earth",
"email": "mail@diego.earth",
"phone": "+49 179 2633850",
"location": {
View hard-work-mirror.md

I am sure you work hard - what kicker doesn’t. But your practice should mirror reality, not deny it.

View today.md

Here are the rules: every day tomorrow becomes today, today becomes yesterday, and what was yesterday is forgotten.

View week-log.md