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
float4 qmul(float4 q1, float4 q2) | |
{ | |
return float4( | |
q2.xyz * q1.w + q1.xyz * q2.w + cross(q1.xyz, q2.xyz), | |
q1.w * q2.w - dot(q1.xyz, q2.xyz) | |
); | |
} | |
float3 rotate_vector(float4 r, float3 v) { |
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 requests | |
def generate_ppo(symbol="NEO", short=16, long=18, signal=9, persistence=2): | |
return { | |
"gekkoConfig": { | |
"watch": { | |
"exchange": "binance", | |
"currency": "BTC", | |
"asset": symbol |
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 threading import Thread, Lock | |
from multiprocessing import cpu_count | |
from queue import Queue | |
import math | |
import random | |
lock = Lock() | |
def do_work(name, t): |
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.Collections.Generic; | |
using UnityEngine; | |
using Vuforia; | |
[ExecuteInEditMode] | |
public class CurveTrackGenerator : MonoBehaviour | |
{ | |
[SerializeField] private Color _color; | |
[SerializeField, Range(1f, 10f)] private float _momentum = 3; |
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 wave | |
import numpy as np | |
import pyaudio | |
p = pyaudio.PyAudio() | |
volume = 0.5 # range [0.0, 1.0] | |
fs = 44100 # sampling rate, Hz, must be integer | |
duration = 2.0 # in seconds, may be float | |
f = 440.0 # sine frequency, Hz, may be float |
NewerOlder