Skip to content

Instantly share code, notes, and snippets.

View vogelino's full-sized avatar
🦜

Lucas Vogel vogelino

🦜
View GitHub Profile
var actualCharacterIndex = -1;
var alphabet = 'abcdefghijklmnopqrstuvwxyz!?1234567890 ';
var word = window.prompt('Please a word or sentence you think is funny',
'badibaduba');
function setup() {
colorMode(HSB, alphabet.length, word.length, 1, 1);
createCanvas(windowWidth, windowHeight);
}
function setup() {
createCanvas(windowWidth, windowHeight);
textFont('Georgia');
textSize(2100);
text('&', 10, 1000);
}
var rows = [];
var gridSquareSize = 20;
function setup() {
createCanvas(windowWidth, windowHeight);
rectMode(CENTER);
stroke(255);
var amountOfRows = Math.max(windowHeight / gridSquareSize);
var amountOfColumns = Math.max(windowWidth / gridSquareSize);
for (let rowIndex = 0; rowIndex < amountOfRows; rowIndex++) {
Copyright (c) 2017 Lucas Vogel (@vogelino)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@vogelino
vogelino / CommitWithCommitizenZsh.function.sh
Last active February 2, 2021 11:26
A function that executes commitizen's git-cz command or installs it if not present (using npm)
# Commit using commitizen
commit-with-commitizen() {
if [[ $(command-exists "git-cz") -eq 0 ]]; then
npm install --global commitizen
fi
git-cz
}
@vogelino
vogelino / githubStars.js
Last active March 27, 2022 14:21
GitHub user stars to CSV
const cleanString = (s) => s.trim();
const upperCaseFirstLetter = (s) => s.charAt(0).toUpperCase() + s.slice(1);
const prepareTopics = (topics) =>
topics.map((t) => cleanString(upperCaseFirstLetter(t))).join(",");
const createRow = ({ name, description, html_url, topics }) =>
[
`"${name}"`,
We can't make this file beautiful and searchable because it's too large.
"Main ID","Incident ID","Incident Type","Region of Incident","Incident Date","Incident year","Reported Month","Number of Dead","Minimum Estimated Number of Missing","Total Number of Dead and Missing","Number of Survivors","Number of Females","Number of Males","Number of Children","Region of Origin","Cause of Death","Migration route","Location of death","Information Source",Coordinates,"UNSD Geographical Grouping","Article title","Source Quality",URL
2014.MMP00001,2014.MMP00001,Incident,"North America",2014-01-06,2014,January,1,,1,,,1,,"Central America","Mixed or unknown","US-Mexico border crossing","Pima Country Office of the Medical Examiner jurisdiction, Arizona, USA (see coordinates for exact location)","Pima County Office of the Medical Examiner (PCOME)","POINT (-110.366453 31.650259)","Northern America",,5,http://humaneborders.info/
2014.MMP00002,2014.MMP00002,Incident,"North America",2014-01-12,2014,January,1,,1,,,,,"Latin America / Caribbean (P)","Mixed or unknown","US-Mexico border crossing","Pima Cou
@vogelino
vogelino / README.md
Created April 6, 2022 15:53
React Hook: Get Scrollbar Width

React Hook: Get Scrollbar Width

Code by Robin Wieruch copied from his article

@vogelino
vogelino / README.md
Last active April 6, 2022 22:07
React Hook: useLocalStorage

React Hook: useLocalStorage

Code by Robin Wieruch copied from his article

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Antonia
Hans
Karla
Jens
Paul
Mohammed
Jalen
Witney
Anick
Guadalupe