This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy the following GraphQL query into the TezTok API Explorer at | |
# https://graphiql.teztok.com/ | |
# Fill out the wallet, date1 and date2 parameters with the Tezos address | |
# and date range you're interested in. The output combines events() and | |
# events_aggregate() query to give you a quick overview over sales and buys | |
# over the time period. | |
# | |
# Example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Query to be run on graphiql.teztok.com/ | |
query TokensReceivedHenReunion { | |
holdings(where: {first_received_at: {_gte: "09-29-2022"}, amount: {_gte: "0"}, holder_address: {_eq: "tz2NY3Fgt5QufrYGP1JKdvLKcWWt86sLsqrS"}}) { | |
amount | |
token { | |
fa2_address | |
token_id | |
name | |
description | |
artifact_metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
UMovesDownloader.pde | |
Marius Watz, August 2014 | |
http://workshop.evolutionzone.com | |
Retrieves JSON data from Moves (http://www.moves-app.com/), | |
from a provided start date until the current date. Days for | |
which a data file already exists are skipped. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toxi.color.Histogram; | |
import java.util.Iterator; | |
/** | |
* EmojiColorsCSV.pde - Marius Watz, 2014 | |
* http://workshop.evolutionzone.com | |
* | |
* Download the file "Emoji.zip" from this URL: | |
* https://github.com/mariuswatz/teaching/blob/master/EmojiColorsCSV/Emoji.zip | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Marius Watz - http://workshop.evolutionzone.com | |
// | |
// Window frame control: Disable frame decoration (see | |
// init() function), manipulate frame position (see | |
// keyPressed(), draw() ) | |
int framePosX=0; | |
int framePosY=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Calendar; | |
long IOSOFFSET=-1; | |
// parameter "t" is a iOS timestamp, stored as seconds since Jan 1, 2001. | |
long iOStoEpochTime(long t) { | |
// calculate IOSOFFSET if necessary | |
if (IOSOFFSET<0) { | |
// Objective-C timestamps are in seconds since Jan 1, 2001, while |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Marius Watz - http://workshop.evolutionzone.com | |
// | |
// Parse prime number lists as provided by http://primes.utm.edu/ | |
import java.util.*; | |
ArrayList<Integer> primes; | |
String filename="Primes-1000.txt"; | |
void setup () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Marius Watz, April 2014 | |
http://workshop.evolutionzone.com | |
How to load a config file using the java.util.Properties class. | |
Useful for sketches that require login/password or API secrets. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Marius Watz, April 2014 | |
http://workshop.evolutionzone.com | |
Simple Lorem Ipsum text replacer, using the "loremData" string as | |
dictionary for replacement words and "whitelistData" for words that | |
should be used unchanged. | |
The class uses two built-in dictionaries: A list of replacement words |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Marius Watz - http://workshop.evolutionzone.com | |
// | |
// Convert webkit timestamps to the UNIX timestamps used in Java. | |
// Written to deal with timestamps from the Chrome browser history | |
// database (stored as SQLite) | |
import java.util.*; | |
import java.text.SimpleDateFormat; | |
SimpleDateFormat df=new SimpleDateFormat("YYYY MMM dd HH:mm"); |
NewerOlder