Skip to content

Instantly share code, notes, and snippets.


Alejandro AR kinduff

View GitHub Profile
kinduff /
Last active Jun 24, 2020
Fix Github Header using Stylus

Fix Github Header using Stylus

Step 1: Install Stylus

Step 2: Install the style

Install directly with Stylus

kinduff / donquijote.txt
Last active Apr 26, 2020
Don Quijote de la Mancha en Texto Plano
View donquijote.txt
This file has been truncated, but you can view the full file.
Capítulo I. Que trata de la condición y ejercicio del famoso hidalgo don Quijote de la Mancha

Keybase proof

I hereby claim:

  • I am kinduff on github.
  • I am kinduff ( on keybase.
  • I have a public key whose fingerprint is 1560 2754 A367 26FA 204F 588E 111B 8174 3316 4BC9

To claim this, I am signing this object:

kinduff / package.json
Last active May 23, 2019
Social Image
View package.json
"name": "social-image",
"version": "1.0.0",
"description": "Creates a dynamic social image for Kinduff's blog posts",
"main": "social-image.js",
"scripts": {
"test": "echo \"What a shame! No test specified\" && exit 1"
"author": "Alejandro AR <kinduff>",
"license": "MIT",
View gist:a0a9aeeff36b05a5eed85a1e3a558a50
Add the base code to any page where you want to track conversions. If you want to use retargeting, add this code to every page of your site to create audiences to retarget later.
Be sure to put the base code between the <head> and </head> tags in your HTML document. It should only appear once on a single page, and before the subsequent event code.
Use Enhanced Match to get improved visibility into your conversion data—passing back email data on a conversion lets us better attribute it to an event on Pinterest. To use Enhanced Match, pass back the converting user’s email (or the SHA256 hash of their email) in the em parameter highlighted in blue. For more detailed instructions, visit our help center.
<!-- Pinterest Tag -->
!function(e){if(!window.pintrk){window.pintrk = function () {
View HN_sort_by_votes.js

Keybase proof

I hereby claim:

  • I am kinduff on github.
  • I am kinduff ( on keybase.
  • I have a public key whose fingerprint is AE52 2EFE 9214 C2DE D5B0 FB33 6592 95DE E5B8 4DAD

To claim this, I am signing this object:

# Using as a JSON parser
# Download
function jsonGetValue {
./ | grep -F -e $1 | cut -f2 | tr -d '"'
# Usage
read -r -d '' JSON_DATA <<'EOF'
View insertion_sort.rb
def sort(values)
length = values.size - 1
1.upto(length) do |i|
temp = values[i]
j = i - 1
while j >= 0 and values[j] > temp
values[j+1] = values[j]
j -= 1
View bubble_sort.rb
def sort(values)
length = values.size - 2
swapped = true
while swapped
swapped = false
0.upto(length) do |i|
if values[i] > values[i+1]
values[i], values[i+1] = values[i+1], values[i]
You can’t perform that action at this time.