Skip to content

Instantly share code, notes, and snippets.

View PeterTheOne's full-sized avatar

Peter Grassberger PeterTheOne

View GitHub Profile
@PeterTheOne
PeterTheOne / Decimal1155.json
Last active January 25, 2022 13:45
test 1155 nft metadata with decimals
{
"name": "Asset Name",
"description": "Lorem ipsum...",
"decimals": 3,
"image": "https:\/\/s3.amazonaws.com\/your-bucket\/images\/{id}.png",
"properties": {
"simple_property": "example value",
"rich_property": {
"name": "Name",
"value": "123",

mxqix2xwg7

@PeterTheOne
PeterTheOne / 3box-verification.txt
Last active June 12, 2019 20:19
3Box verification
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmW52NE6uzrgGpA3UD46SzWJXT9VB26wkS6rCk7ZPVc25N ✅
Create your profile today to start building social connection and trust online. https://3box.io/
@PeterTheOne
PeterTheOne / petertheone_followers.svg
Created July 24, 2018 21:50
twitter followers of petertheone
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PeterTheOne
PeterTheOne / bbudget-all-euros.js
Created January 9, 2017 13:20
Calculate total sum of all bbudget projects
var sum = 0; document.querySelectorAll('.campaign_budget').forEach(function(button) { sum += parseInt(button.innerHTML.substring(0, button.innerHTML.length - 1)); }); console.log(sum);
@PeterTheOne
PeterTheOne / plz-coord-austria.csv
Created August 17, 2016 16:09
PLZ coordinates austria, August 2016, Geocoded with OSM
9163 Unterbergen K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.4781017 14.2559153 225
9135 Bad Eisenkappel K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.4812105646964 14.6062427452371 225
9170 Ferlach K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5253656509035 14.3104077671798 225
9182 Maria Elend K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5298704238434 14.0761492080012 225
9181 Feistritz im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5322359733192 14.1353740987715 225
9183 Rosenbach K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5364895720495 14.0376219311205 225
9162 Strau K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.538069 14.263217 225
9173 St. Margareten im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5424186613725 14.4066575369548 225
9602 Thörl-Maglern K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5432506251966 13.6473041244356 225
9072 Ludmannsdorf K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5434291311274 14.1433352631987 225

Keybase proof

I hereby claim:

  • I am petertheone on github.
  • I am petertheone (https://keybase.io/petertheone) on keybase.
  • I have a public key whose fingerprint is 1DCC C325 2E43 8859 5288 63B4 4F6A CE90 B5F4 D176

To claim this, I am signing this object:

@PeterTheOne
PeterTheOne / split.sh
Last active August 29, 2015 14:18
split bawag-psk bank pdfs
#!/bin/bash
cd Kontoauszuege/
for directory in */ ; do
echo "$directory"
cd ${directory}
for file in *.pdf ; do
# echo "$file to ../../Kontoauszuege_single/$directory$file"
pdftk ${file} burst output ../../Kontoauszuege_1pagers/${directory}${file}_pg_%04d.pdf
done
cd ..
module.exports = function (creep) {
if(creep.energy == 0) {
creep.moveTo(Game.spawns.Spawn1);
Game.spawns.Spawn1.transferEnergy(creep);
}
else {
var targets = creep.room.find(Game.CONSTRUCTION_SITES);
if(targets.length) {
creep.moveTo(targets[0]);
creep.build(targets[0]);
@PeterTheOne
PeterTheOne / news-date-range.ts
Last active August 29, 2015 14:03
TYPO3 News filter by date range with timeRestriction and timeRestrictionHigh
temp.news = USER
temp.news {
userFunc = tx_extbase_core_bootstrap->run
extensionName = News
pluginName = Pi1
switchableControllerActions.News.1 = list
settings < plugin.tx_news.settings
view {
templateRootPath = fileadmin/templates/News/Templates/
partialRootPath = fileadmin/templates/News/Partials/