This file contains hidden or 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
| 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); |
This file contains hidden or 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 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; | |
| } |
This file contains hidden or 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 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: |