Skip to content

Instantly share code, notes, and snippets.

View alexander-irbis's full-sized avatar
🦀

Alexander Irbis alexander-irbis

🦀
View GitHub Profile
extern crate cgmath;
//extern crate mint;
extern crate three;
use cgmath::prelude::*;
use three::*;
fn main() {
let mut win = three::Window::new("Colors", "assets/shaders");
let mut cam = win.factory.perspective_camera(75.0, 0.0, 1.0, 50.0);
function test1( n ) {
var obj = Object.create(null);
obj.a = 0;
for (var i = 0; i < n; i++) {
obj.a = obj.a + i % 2;
}
return obj.a;
}
def test_z_interval(full=False):
send, more, money = '0send', '0more', 'money'
tuples = tuple(zip(send, more, money))
all_chars = ('m', ) + tuple(sorted(set((send + more + money).replace('m', ''))))
firsts = ('m', 's',)
def v2int(t, val):
r = 0
for v in val: