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
window.fr = function(o) { | |
var m = new Map(); | |
var rg = [{ pn: 'window', v: window, l: 0 }]; | |
function add(pc) { | |
var p = pc.v; | |
var l = pc.l + 1; | |
for (var pn of Object.getOwnPropertyNames(p)) { | |
try { | |
var pd = Object.getOwnPropertyDescriptor(p, pn); | |
//if (pd.get) continue; |
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> | |
<body> | |
<canvas id="canvas" width="1080" height="1080"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById('canvas'); | |
var gl = canvas.getContext('webgl'); | |
gl.viewportWidth = canvas.width; | |
gl.viewportHeight = canvas.height; |
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.Linq; | |
public static class U { | |
public static string Join<T>(this IEnumerable<T> rg, string sep = " ") => string.Join(sep, rg.Select(o => o.ToString())); | |
public static int ReadInt() => int.Parse(Console.ReadLine()); | |
public static IEnumerable<int> ParseInts() => Console.ReadLine().Split(' ').Select(int.Parse); | |
public static int[] ReadInts() => ParseInts().ToArray(); | |
public static IEnumerable<long> ParseLongs() => Console.ReadLine().Split(' ').Select(long.Parse); | |
public static long[] ReadLongs() => ParseLongs().ToArray(); | |
public static IEnumerable<T> Order<T>(this IEnumerable<T> @this) where T : IComparable<T> => @this.OrderBy((T t) => t); | |
public static IEnumerable<T> OrderDescending<T>(this IEnumerable<T> @this) where T : IComparable<T> => @this.OrderByDescending((T t) => t); |
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
<select multiple="multiple"> | |
<option value="a" selected="selected">One</option> | |
<option value="b" selected="selected">Two</option> | |
</select> |
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
#define BITS = 15 | |
#define PERIOD 100 | |
int main(void) { | |
//double dt = PI * 2 / PERIOD; | |
//const int32_t ds = (int) (sin(dt) * ((1<<BITS) - 1)); | |
//const int32_t c2 = (int) (cos(dt) * 2.0 * ((1<<BITS) - 1)); | |
const int32_t ds = 2057; | |
const int32_t c2 = 65404; |
NewerOlder