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 bpy | |
import math | |
scene = bpy.data.scenes["Scene"] | |
cam = bpy.data.objects['Camera'] | |
cam.rotation_mode = 'XYZ' | |
scene.camera = cam | |
frame_amount = 10 |
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 keyboard | |
keys = [] | |
while True: | |
hotkey = keyboard.read_hotkey(suppress=False) | |
key = keyboard.read_key(suppress=False) | |
if hotkey == 'ctrl+j': | |
f = open('logged.txt', 'w+') | |
for x in range(0, len(keys)): |
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
# "A Markov chain is a stochastic model describing a sequence of possible events in which | |
# the probability of each event depends only on the state attained in the previous event." | |
# ~ wikipedia | |
import sys | |
from random import choice | |
if __name__ == '__main__': | |
args = sys.argv | |
# path to a txt file |
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
def get_all_cfgs(base, words): | |
from copy import deepcopy | |
cfgs = [] | |
_words = deepcopy(words) | |
if base != None: | |
for w in base: | |
if w in _words: | |
_words.remove(w) | |
if len(_words) == 0: | |
cfg = base |
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
const MAP_X = -1500, MAP_Y = -1500, MAP_WIDTH = 3000, MAP_HEIGHT = 3000; | |
const W_KEY = 87, S_KEY = 83, D_KEY = 68, A_KEY = 65; | |
const background_color = '#f0f0ff'; | |
var ctx, width, height; | |
var keycode; | |
var player, | |
points = []; | |
var points_on_map = 500; | |
window.onload = () => { |
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
let join_race_links = []; | |
check_for(['.mainMenu', '.inputPanel'], 2000, () => { | |
const menu = document.querySelector('.mainMenu'); | |
if(menu !== null) { | |
const main_menu_items = menu.querySelectorAll('.mainMenuItemText'); | |
const multiplayer_link = main_menu_items[0].querySelector('.gwt-Anchor'); | |
const singleplayer_link = main_menu_items[1].querySelector('.gwt-Anchor'); |
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
function randomChar() { | |
const charset = ' 0123456789abcdefghijklmnopqrstuvwxyz\',.-+=-/*&^%$#@!?(){}[]"'; | |
const index = Math.floor(Math.random() * charset.length); | |
let char = charset[index]; | |
if(Math.random() > 0.5) { | |
char = char.toUpperCase(); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> body { padding: 0; margin: 0; } canvas { vertical-align: top; } </style> | |
</head> | |
<body> | |
<canvas id="canvas"></canvas> | |
</body> | |
<script src="starfield.js"></script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> body { padding: 0; margin: 0; } canvas { vertical-align: top; }</style> | |
<title>3D</title> | |
</head> | |
<body> | |
<canvas class="canvas"></canvas> | |
</body> |