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
| .02.1.3 | |
| ....... | |
| ...3.31 | |
| 30...30 | |
| 31.2... | |
| ....... | |
| 3.3.02. |
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
| ....321 | |
| ....1.. | |
| ....... | |
| ..2.... | |
| ....... | |
| .35..4. | |
| 4.....5 |
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
| -1, -1,1000, 400, -1, -1 | |
| -1, 703, 0, 0,3000, 800 | |
| 16, 0, 0, 0, 0, 0 | |
| 3, 0, 0, 913, 0, 0 | |
| 17, 0, 0, 0, 0, 0 | |
| -1, -1, 16, 0, 0, -1 |
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
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using System.IO; | |
| public class SceneSwitcherWindow : EditorWindow { | |
| private List<SceneAsset> scenes; | |
| private Vector2 scrollPos = Vector2.zero; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" /> | |
| <title>JIT WASM Calculator</title> | |
| <style type="text/css"> | |
| .code { | |
| font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace; |
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
| LinearScanRegisterAllocation | |
| active <- {} | |
| foreach live interval i, in order of increasing start point | |
| ExpireOldIntervals(i) | |
| if length(active) == R then | |
| SpillAtInterval(i) | |
| else | |
| register[i] <- a register removed from pool of free registers | |
| add i to active, sorted by increasing end point |
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
| // http://apple.stackexchange.com/questions/139548/changing-display-resolution-on-retina-machines-while-in-command-line-mode | |
| /* | |
| * COMPILE: | |
| * c++ setgetscreenres.m -framework ApplicationServices -o setgetscreenres | |
| * USE: | |
| * setgetscreenres 2048 1280 # 1440 900 | |
| */ | |
| #include <ApplicationServices/ApplicationServices.h> |
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 rand; | |
| use std::fs; | |
| use std::io::{BufWriter, Write}; | |
| use std::ops::{Add, AddAssign, Sub, Mul, Div}; | |
| const WIDTH: usize = 256; | |
| const HEIGHT: usize = 256; | |
| const NSUBSAMPLES: usize = 2; | |
| const NAO_SAMPLES: usize = 8; |
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
| import subprocess | |
| def run(command, input=None): | |
| try: | |
| process = subprocess.Popen( | |
| command, stdin=subprocess.PROCESS, | |
| stdout=subprocess.PROCESS, stderr=subprocess.PROCESS, | |
| close_fds=True) | |
| if input: | |
| process.stdin.write(input) |
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
| // Modified from | |
| // JOGL Tutorial 3 - Creating a Render Loop - Justin's Home | |
| // https://sites.google.com/site/justinscsstuff/jogl-tutorial-3 | |
| // for jogl-1.1.1 | |
| import java.awt.Frame; | |
| import java.awt.event.WindowAdapter; | |
| import java.awt.event.WindowEvent; | |
| import javax.media.opengl.*; | |
| //import javax.media.opengl.awt.GLCanvas; |