Skip to content

Instantly share code, notes, and snippets.

View 0xN1's full-sized avatar

Nero One 0xN1

View GitHub Profile
@0xN1
0xN1 / cc0-lib-v050.js
Last active January 4, 2024 09:58
cc0-lib scriptable iOS widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
const refreshInterval = 5;
let data;
const widget = await createWidget();
if (widget) {
if (!config.runsInWidget) {
@0xN1
0xN1 / meme-generator.tsx
Created December 19, 2023 04:45
cari-orang meme generator
"use client";
import { useEffect, useState, useRef } from "react";
import { useDropzone } from "react-dropzone";
import Draggable from "react-draggable";
import { useScreenshot } from "use-react-screenshot";
type Props = {};
const MemeGeneratorPage = (props: Props) => {
@0xN1
0xN1 / OSForceMetadata.js
Last active February 8, 2023 20:17
force update OS metadata snippet. ref: https://docs.opensea.io/docs/metadata-standards
const totalSupply = 1000
const contractAddress = "0x000000000000000000000000000000000000"
for (let i = 0; i < totalSupply ; i++){
try {
await fetch(`https://api.opensea.io/api/v1/asset/${contractAddress}/${i}/?force_update=true`)
console.log(`token id ${i} done`)
} catch (error) {
console.log(error)
}

Keybase proof

I hereby claim:

  • I am fukarinka on github.
  • I am fukarinka (https://keybase.io/fukarinka) on keybase.
  • I have a public key ASA3zZ3EtSd-oP3PBHI9H_Sn-Dxk5y422cFno847vmDafQo

To claim this, I am signing this object:

@0xN1
0xN1 / gtlfScale.py
Created September 3, 2020 08:49
Blender snippet to resize gltf exported from Substance Painter. Scale object to 0.01 scale.
# Snippet for blender to quickly resize gltf model (.glb) exported from Substance Painter with scale problem.
import bpy
bpy.context.object.location = bpy.context.object.location/100
bpy.ops.transform.resize(value=(0.01,0.01,0.01))