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
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
const width = 4000; | |
const height = 4000; | |
const num = 1000; | |
const collectionName = "Hyperion"; | |
const license = "CC BY-NC-ND 4.0"//or something else | |
const windowTraitsKey = '$traits' // in your application, | |
const description = `<You NFT description here>` |
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
// LICENCE MIT | |
const path = require('path'); | |
const fs = require('fs'); | |
const util = require("util"); | |
// Usage: node analyze-metadata.js <metadata directory> [<output file>] | |
// | |
// Calculates the percent of all NFTs that share a given trait in decimal form. | |
// Also ranks each nft by summing inverse of trait frequency. | |
// Output format is json: |
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
/** | |
* Gradis Token to GIF | |
* Install: | |
* * npm i puppeteer gifencoder png-js | |
* Run: | |
* * node index.js 102402010402011602011606 | |
* * node index.js 10360308020202100302110304,10350503030202000202140003,10160116030200020302040506 | |
* tested on node v14.17.6 | |
* For best results close all other apps and do not use your computer while this script loads. | |
* Make sure you have a couple GB of free memory and no other CPU intensive processes running. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/introspection/IERC165.sol"; |
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
/** | |
* Base64 encode and decode, cross browser friendly. | |
* | |
* For Kotlin JS target. | |
* | |
* From: http://jsfiddle.net/gabrieleromanato/qAGHT/ | |
*/ | |
class Base64 private constructor() { | |
companion object { | |
const val KEY_STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" |
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
local api = { | |
oEvent = { | |
type = "class", | |
description="is this thing on?", | |
childs = { | |
DispatchEvent = { | |
description = "Notify all listeners for event_name, calling respective events.", | |
args = "(Corona Display Object, Event Name, Event Table)", | |
returns = "(nil)", | |
}, |
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
int frames = 80; | |
boolean save_frames = true; | |
color[] colors = {color(202,170,221), color(26,20,20)}; | |
void setup(){ | |
size(500,500); | |
smooth(8); | |
} |
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
pi@raspberrypi ~/openFrameworks/apps/myApps/luaExample $ make | |
armv6l | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-2.0 libmpg123 | |
Compiling OF library for Release | |
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project' | |
armv6l | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-2.0 libmpg123 | |
armv6l | |
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-2.0 libmpg123 | |
make[2]: Nothing to be done for 'ReleaseABI'. |