Skip to content

Instantly share code, notes, and snippets.

View ashnur's full-sized avatar
🐢
fragments of scrolls surround me

Aron Gabor ashnur

🐢
fragments of scrolls surround me
View GitHub Profile

several assumptions about people that i don't think are accurate and some of the arguments why

  • the way people think defines how they act completely or almost completely

  • if someone acted in a particular way, they made a choice (a decision) to act like that

    • i do not believe that all my actions are decided before they happen, i do not have anything that would prove this, and there are many things that I do that I only realize in hindsight

before jquery there were others

before those, we used appendChild, and prependChild, and we were used to [].slice element lists

we thought it was good to store our state in the DOM, we wrote our html by hand and it was convenient

we used inline javascript handlers sometimes, and we learned that it was not a good idea in production, hard to keep track

we had different methods to attach event listeners for ie and netscape

@ashnur
ashnur / no-hackerrank.md
Created February 26, 2018 14:56 — forked from fasiha/no-hackerrank.md
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.
To: recruitment@EmployerABC.com
From: Ahmed Fasih
Subject: Re: Programming Test Invitation

Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.

I'd never heard of HackerRank, but after you wrote two other employers sent me their own HackerRank tests. Having worked on those tests first (I considered them practice, for the real thing with ABC :), I'd like to check if you have flexibility in finding an alternative way to evaluate my basic coding chops.

This is because, as functional programmer and author Paul Chiusano says, "Programming is all about managing complexity" [1], but HackerRank is quite bad at measuring my ability to manage complexity. It asks for small algorithmic coding puzzles to be done in unnatural conditions including (1) time limits, (2) forbidding research on Wikipedia or StackOverflow, (3) forbidding collaboration, and (4) forbidding the use of libraries (Python and JavaScript e.g. are so different when confined to thei

@ashnur
ashnur / igy_adta_a_szuletésem_-_Gabor_Ferenc
Last active January 29, 2018 18:29
Így adta a születésem - Gábor Ferenc
Így adta a születésem
Magyar vagyok.
Nem vagyok rá büszke
és nem szégyenkezem miatta.
Ha így adta a születésem, vállalom.
Vállalom, még elszakított sorsban is.
Vállalom, mint a hajam színét, hogy fakó,
(már deres)
vállalom, mint akác a keménységet,
@ashnur
ashnur / keycloak.sh
Created November 10, 2017 18:10 — forked from paoloantinori/keycloak.sh
Keycloak Admin API Rest Example
#!/bin/bash
export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')
curl -X GET 'http://localhost:8080/auth/admin/realms' \
@ashnur
ashnur / netst
Created October 2, 2017 10:10 — forked from thusoy/netst
Windows equivalent of netstat -tulpn
#!/bin/bash
# Normally windows doesn't give out the process name when you run netstat -ano, thus making it
# hard to figure out what process is bound to the different ports. This script extracts the PID
# from the netstat output, and fetches the corresponding binary name from the tasklist, and
# merges the two together. Needs a MinGW environment like Git Bash and python to work.
{ tasklist | tail -n +5; echo ===; netstat -ano | grep LIST; } | python -c "
import sys
pad = [0, 21, 9, 0, 5, 8, 0]
@ashnur
ashnur / netst
Created October 2, 2017 10:10 — forked from thusoy/netst
Windows equivalent of netstat -tulpn
#!/bin/bash
# Normally windows doesn't give out the process name when you run netstat -ano, thus making it
# hard to figure out what process is bound to the different ports. This script extracts the PID
# from the netstat output, and fetches the corresponding binary name from the tasklist, and
# merges the two together. Needs a MinGW environment like Git Bash and python to work.
{ tasklist | tail -n +5; echo ===; netstat -ano | grep LIST; } | python -c "
import sys
pad = [0, 21, 9, 0, 5, 8, 0]
@ashnur
ashnur / web-servers.md
Created November 27, 2016 20:28 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@ashnur
ashnur / graph.js
Last active November 23, 2016 16:39
window.graph = {"nodes":[{"label":"node 0"},{"label":"node 1"},{"label":"node 2"},{"label":"node 3"},{"label":"node 4"},{"label":"node 5"},{"label":"node 6"},{"label":"node 7"},{"label":"node 8"},{"label":"node 9"},{"label":"node 10"},{"label":"node 11"},{"label":"node 12"},{"label":"node 13"},{"label":"node 14"},{"label":"node 15"},{"label":"node 16"},{"label":"node 17"},{"label":"node 18"},{"label":"node 19"},{"label":"node 20"},{"label":"node 21"},{"label":"node 22"},{"label":"node 23"},{"label":"node 24"},{"label":"node 25"},{"label":"node 26"},{"label":"node 27"},{"label":"node 28"},{"label":"node 29"},{"label":"node 30"},{"label":"node 31"},{"label":"node 32"},{"label":"node 33"},{"label":"node 34"},{"label":"node 35"},{"label":"node 36"},{"label":"node 37"},{"label":"node 38"},{"label":"node 39"},{"label":"node 40"},{"label":"node 41"},{"label":"node 42"},{"label":"node 43"},{"label":"node 44"},{"label":"node 45"},{"label":"node 46"},{"label":"node 47"},{"label":"node 48"},{"label":"node 49"},{"label":