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
from sympy import * | |
for n in range(2,14): | |
r=1 | |
for p in primerange(n+1): | |
q=1 | |
x=0 | |
while p**q<=n: | |
x+=n//(p**q) | |
q+=1 | |
r*=(x+1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# to use, pip install gymnasium-2048 first then replace the second file in the package | |
from typing import List | |
import gymnasium as gym | |
from tqdm import trange | |
import numpy as np | |
np.random.seed(0) | |
import pandas as pd | |
from copy import deepcopy | |
from multiprocessing import Pool, cpu_count |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// ==UserScript== | |
// @name lemmy show top comment | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://lemmy.*/post* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=lemmy.world | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
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
from icecream import ic | |
import open3d as o3d | |
import sys | |
import os | |
import numpy as np | |
import pickle | |
from copy import deepcopy | |
if len(sys.argv) != 4: | |
# base folder, image 1, image 2 |
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
from tqdm import tqdm | |
import subprocess | |
import sys | |
import os | |
from multiprocessing import Pool, cpu_count, Manager | |
from time import perf_counter | |
if len(sys.argv) != 3: | |
print('usage: gen_res.py /path/to/image /path/to/output') |
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
rm -rf /home/<username>/3DScan/depth | |
rm -rf /home/<username>/3DScan/color | |
mkdir /home/<username>/3DScan/depth | |
mkdir /home/<username>/3DScan/color |
NewerOlder