Skip to content

Instantly share code, notes, and snippets.

View micovi's full-sized avatar
👓
counting bits and storing bytes

Ovidiu Miclea micovi

👓
counting bits and storing bytes
View GitHub Profile

Transfer Restrictions on Tokens

Available on Tokens with Variant: 0.0.5

Enable Transfer Restrictions

{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [

Transfer Restrictions on Tokens

Available on Tokens with Variant: 0.0.4

Enable Transfer Restrictions

{
  "process": "TOKEN_PROCESS",
  "data": "",
  "tags": [
@micovi
micovi / compress.ts
Created March 4, 2025 15:54
Arweave Image compression on client-side and Upload
import imageCompression from "browser-image-compression"
const options = {
maxSizeMB: 0.1, // 100KB
maxWidthOrHeight: 512,
useWebWorker: true
}
const file: File
[{
"id": 0,
"description": "My NFT",
"external_url": "https://forum.openzeppelin.com/t/create-an-nft-and-deploy-to-a-public-testnet-using-truffle/2961",
"image": "https://placekitten.com/640/640",
"name": "My NFT 0"
},{
"id": 1,
"description": "My NFT",
"external_url": "https://forum.openzeppelin.com/t/create-an-nft-and-deploy-to-a-public-testnet-using-truffle/2961",
@micovi
micovi / functions.php
Last active May 13, 2019 14:19
[WP] Remove slug from URL
function cl_remove_slug( $post_link, $post, $leavename ) {
if ( ('post_slug' != $post->post_type) || 'publish' != $post->post_status ) {
return $post_link;
}
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link );
return $post_link;
}
add_filter( 'post_type_link', 'cl_remove_slug', 10, 3 );