Skip to content

Instantly share code, notes, and snippets.

View jorgeatgu's full-sized avatar
🔮
Es imposible no puede ser!

Jorge jorgeatgu

🔮
Es imposible no puede ser!
View GitHub Profile
@jorgeatgu
jorgeatgu / turbo-events.js
Created March 2, 2022 08:49
turbo-events
document.addEventListener("turbo:click", event => console.log(event))
document.addEventListener("turbo:before-visit ", event => console.log(event))
document.addEventListener("turbo:submit-start ", event => console.log(event))
document.addEventListener("turbo:before-fetch-request ", event => console.log(event))
document.addEventListener("turbo:before-fetch-response ", event => console.log(event))
document.addEventListener("turbo:submit-end", event => console.log(event))
document.addEventListener("turbo:before-cache", event => console.log(event))
document.addEventListener("turbo:before-render", event => console.log(event))
document.addEventListener("turbo:before-stream-render", event => console.log(event))
document.addEventListener("turbo:render", event => console.log(event))
@jorgeatgu
jorgeatgu / .block
Created October 19, 2021 11:04
Perspective datetime
license: mit
@jorgeatgu
jorgeatgu / console.sh
Created November 20, 2019 07:33
remove console
## Dependecia: https://github.com/ggreer/the_silver_searcher
## alias gs="git status && console"
function console {
pwd=$(pwd)
if [ -z "$(ag console.log "$pwd")" ]
then
echo -e '\033[1;31m Good job \033[0m 😎'
else
<outline text="Dataviz" title="Dataviz">
<outline type="rss" text="Programming Historian" title="Programming Historian" xmlUrl="http://programminghistorian.org/feed.xml" htmlUrl="https://programminghistorian.org"/>
<outline type="rss" text="storytelling with data" title="storytelling with data" xmlUrl="http://www.storytellingwithdata.com/feeds/posts/default" htmlUrl="http://www.storytellingwithdata.com/"/>
<outline type="rss" text="DataScience+" title="DataScience+" xmlUrl="http://datascienceplus.com/feed/" htmlUrl="https://datascienceplus.com"/>
<outline type="rss" text="Blog - Darkhorse Analytics" title="Blog - Darkhorse Analytics" xmlUrl="http://darkhorseanalytics.com/blog/feed/" htmlUrl="https://www.darkhorseanalytics.com/blog/"/>
<outline type="rss" text="Chartable" title="Chartable" xmlUrl="https://blog.datawrapper.de/rss2.xml" htmlUrl="https://blog.datawrapper.de/"/>
<outline type="rss" text="Michael Sandberg's Data Visualization B
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 5 columns, instead of 6. in line 1.
name,year,value,lastValue,rank
Badajoz,1950,0,0,1,2
Badajoz,1951,0,0,2,2
Badajoz,1952,0,0,3,2
Badajoz,1953,0,0,1,2
Badajoz,1954,0,0,2,2
Badajoz,1955,0,0,3,2
Badajoz,1956,0,0,1,2
Badajoz,1957,3,0,2,2
Badajoz,1958,5,3,3,2
name year value lastValue rank
Badajoz 1950 0 0 1
Badajoz 1951 0 0 2
Badajoz 1952 0 0 3
Badajoz 1953 0 0 1
Badajoz 1954 0 0 2
Badajoz 1955 0 0 3
Badajoz 1956 0 0 1
Badajoz 1957 3 0 2
Badajoz 1958 5 3 3
@jorgeatgu
jorgeatgu / .block
Last active December 15, 2018 15:04
Gráfica de area con tooltip II
license: mit
@jorgeatgu
jorgeatgu / .block
Last active December 15, 2018 14:56
Gráfica de area con tooltip
license: mit
@jorgeatgu
jorgeatgu / .block
Last active December 15, 2018 14:54
Area responsive
license: mit
### Keybase proof
I hereby claim:
* I am jorgeatgu on github.
* I am jorgeatgu (https://keybase.io/jorgeatgu) on keybase.
* I have a public key ASB8WrN0i32MGIS_z1OoP3N-CJ3ipOxfQNrBVvqJm6VvMwo
To claim this, I am signing this object: