Skip to content

Instantly share code, notes, and snippets.

@lpadukana
lpadukana / README.md
Created September 18, 2024 10:55 — forked from jamiephan/README.md
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
import math
import pathlib
import random
import cairosvg
import numpy
import svgwrite
def hsv_to_rgb(h, s, v):
#!/usr/bin/env zsh
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}."
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}Δ%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✓%{$reset_color%} "
ruby_ver() {
echo "%{$fg[magenta]%}rb:$(chruby_auto; echo $RUBY_VERSION) "
update() {
// console.log(this.dataset);
this.xScale.domain(d3.extent(this.dataset, d => new Date(+d.x)));
this.yScale.domain([0, d3.max(this.dataset, d => +d.y)]);
d3.transition()
.duration(500)
.each(() => {
this.svg.selectAll("g.x.axis").call(this.xAxis);
this.svg.selectAll("g.y.axis").call(this.yAxis);
# encoding: UTF-8
#\ -p 5000
header = { 'Content-Type' => 'text/plain' }
hello = ->(env) { [ 200, header, [ 'Hello World!' ] ] }
time = proc { |env| [ 200, header, [ Time.now.to_s ] ] }
date = Proc.new { |env| [ 200, header, [ Date.today.to_s ] ] }
random = lambda { |env| [ 200, header, [ rand(1000000).to_s ] ] }
@lpadukana
lpadukana / json_including_argument_matcher.rb
Last active May 3, 2016 04:28
Rspec custom argument matcher
class Hash
def deep_include?(sub_hash)
sub_hash.keys.all? do |key|
self.has_key?(key) && if sub_hash[key].is_a?(Hash)
self[key].is_a?(Hash) && self[key].deep_include?(sub_hash[key])
else
self[key] == sub_hash[key]
end
end
end