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
// © Badjano 2019 | |
// please donate BTC: 1BADjanox8xaNUYTQgHcXw6mmwuSsE9ZSg | |
//@version=4 | |
study("BTC Bottom and Top", overlay=true) | |
float t = (time*0.001-1100000000) * 0.000000001 | |
t1 = plot(pow(t * 5 ,10.0), color=color.green) | |
t2 = plot(pow(t * 5.65 ,9.0), color=color.green) | |
t3 = plot(pow(t * 7.75 ,8), color=color.red) | |
t4 = plot(pow(t * 9 ,7.5), color=color.red) | |
fill(t1, t2, color=color.green, transp=90) |
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
import math | |
from moviepy.editor import concatenate, ImageClip | |
import os | |
import platform | |
import subprocess | |
import random | |
import torch | |
# pip install pytorch-pretrained-biggan | |
from pytorch_pretrained_biggan import (BigGAN, truncated_noise_sample, convert_to_images) | |
import numpy as np |
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
import pygame | |
import time | |
import random | |
wants_to_quit = False | |
pause = False | |
delay = 1.0 | |
plus_pressed = False | |
minus_pressed = False | |
screen_size = (640, 360) |
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 math import floor | |
import random | |
from midiutil.MidiFile import MIDIFile | |
MyMIDI = MIDIFile(1) | |
track = 0 | |
time = 0 | |
tempo = 130 |
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
import random | |
from PIL import ImageDraw, Image | |
from statistics import median | |
max_dist = pow(255, 2) + pow(255, 2) + pow(255, 2) | |
global_power = (2, 2, 2) | |
def avg(arr): | |
return sum(arr) / len(arr) |
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 math import floor | |
from PIL import Image | |
def make_sprite_sheet(folder): | |
files = ["%s/bkfire%04d.png" % (folder, a) for a in range(1, 65)] | |
images = [Image.open(a) for a in files] | |
width, height = images[0].size |
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
import random | |
from PIL import ImageFilter, Image | |
import os | |
def randomize(data, width, height, chunk_count): | |
new_data = [] | |
for i in range(height): | |
chunk = int(width / chunk_count) | |
for j in range(chunk_count): |
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
using System; | |
using System.Collections.Generic; | |
using System.Threading; | |
using UnityEngine; | |
public class TerrainChunk : MonoBehaviour | |
{ | |
private MeshFilter _meshFilter; | |
private MeshCollider _meshColllider; | |
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 PIL import ImageFilter, Image | |
from math import floor, sqrt, tanh | |
from threading import Thread, Lock | |
from multiprocessing import cpu_count | |
from queue import Queue | |
import time | |
import pygame | |
lock = Lock() | |
q = Queue() |
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
Shader "ShaderMan/Clouds" | |
{ | |
Properties{ | |
_Color("Sky Color", Color) = (0.6, 0.7, 0.8, 1) | |
_CamPosition("Camera Position", Vector) = (0,0,0,0) | |
_CamRotation("Camera Rotation", Vector) = (0,0,0,0) | |
_Rotation("Camera Rotation", float) = 0 | |
_Iterations("Cloud Iterations", Range(100,750)) = 170 |