Skip to content

Instantly share code, notes, and snippets.

@yjroot
yjroot / result.json
Created April 20, 2026 05:17
import_analysis_result
{"total_count": 20, "hs_9209_valuation_types": [], "hs_8308_valuation_types": [], "cn_origin_valuation_types": [], "all_tariff_rates": [], "sample_items": [{"hs_code": "", "valuation_type": "", "origin_country": "", "tariff_rate": ""}, {"hs_code": "", "valuation_type": "", "origin_country": "", "tariff_rate": ""}, {"hs_code": "", "valuation_type": "", "origin_country": "", "tariff_rate": ""}, {"hs_code": "", "valuation_type": "", "origin_country": "", "tariff_rate": ""}, {"hs_code": "", "valuation_type": "", "origin_country": "", "tariff_rate": ""}]}
@yjroot
yjroot / final_analysis.json
Created April 20, 2026 05:16
final import analysis
{"total_count": 20, "hs_9209_valuation_types": [], "hs_8308_valuation_types": [], "cn_origin_valuation_types": [], "all_tariff_rates": [], "sample_items": [{"hs": "", "vt": "", "orig": "", "tr": ""}, {"hs": "", "vt": "", "orig": "", "tr": ""}, {"hs": "", "vt": "", "orig": "", "tr": ""}, {"hs": "", "vt": "", "orig": "", "tr": ""}, {"hs": "", "vt": "", "orig": "", "tr": ""}]}
@yjroot
yjroot / analysis_compact.json
Last active April 20, 2026 05:20
import analysis
{
"meta": {
"total_in_db": 395,
"page": 1,
"per_page": 20,
"total_pages": 20,
"declarations_in_file": 20
},
"items_from_items_key": 20,
"items_from_item_details_key": 156,
{"total":1,"hs9209_vt":[],"hs8308_vt":[],"cn_vt":[],"tariff_rates":["null"],"sample_keys":["text","type"],"samples":[{"hs_code":null,"valuation_type":null,"origin_country":null,"tariff_rate":null}]}
@yjroot
yjroot / FFT
Last active February 24, 2016 10:43 — forked from anonymous/FFT
import pylab as pl
import numpy as np
class FFT :
def __init__(self, file='data.csv'):
self.file=file
self.readFile()
def readFile(self) :
xy = np.loadtxt(self.file, delimiter=",", skiprows=1).transpose()
@yjroot
yjroot / hex_tri_screw.stl
Last active August 29, 2015 14:25
hex_tri_screw.stl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function GetForkButton(uid)
{
return document.getElementById('poke_live_item_' + uid).firstChild.firstChild.nextSibling.firstChild.nextSibling.firstChild.nextSibling.firstChild.firstChild
}
function AutoFork(uid){
fork_button = GetForkButton(uid)
if (fork_button.tagName != 'A'){
setTimeout(function(){AutoFork(uid)}, (5000+Math.random()*5000))
#!/usr/bin/env python
import sys, time
from daemon import Daemon
class MyDaemon(Daemon):
def run(self):
while True:
time.sleep(1)
#include <avr/io.h>
#include <util/delay.h>
void inkjet_init(){
PORTB &= ~0x07; //0000 0218
DDRB |= 0x07;
PORTC &= ~0x3e; //0076 5430
DDRC |= 0x3e;