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 collections | |
class Santa: | |
def __init__(self): | |
self.coord = [0,0]; | |
self.visits = collections.defaultdict(int) |
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
class Elevator: | |
def __init__(self): | |
self.floor = 0 | |
def advance(self, symbol): | |
assert symbol in ['(', ')'] | |
if 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
data = '20x3x11\n15x27x5\n6x29x7\n30x15x9\n19x29x21\n10x4x15\n1x26x4\n1x5x18\n10x15x23\n10x14x20\n3x5x18\n29x23x30\n7x4x10\n22x24x29\n30x1x2\n19x2x5\n11x9x22\n23x15x10\n11x11x10\n30x28x5\n22x5x4\n6x26x20\n16x12x30\n10x20x5\n25x14x24\n16x17x22\n11x28x26\n1x11x10\n1x24x15\n13x17x21\n30x3x13\n20x25x17\n22x12x5\n22x20x24\n9x2x14\n6x18x8\n27x28x24\n11x17x1\n1x4x12\n5x20x13\n24x23x23\n22x1x25\n18x19x5\n5x23x13\n8x16x4\n20x21x9\n1x7x11\n8x30x17\n3x30x9\n6x16x18\n22x25x27\n9x20x26\n16x21x23\n5x24x17\n15x17x15\n26x15x10\n22x16x3\n20x24x24\n8x18x10\n23x19x16\n1x21x24\n23x23x9\n14x20x6\n25x5x5\n16x3x1\n29x29x20\n11x4x26\n10x23x24\n29x25x16\n27x27x22\n9x7x22\n6x21x18\n25x11x19\n14x13x3\n15x28x17\n14x3x12\n29x8x19\n30x14x20\n20x23x4\n8x16x5\n4x11x18\n20x8x24\n21x13x21\n14x26x29\n27x4x17\n27x4x25\n5x28x6\n23x24x11\n29x22x5\n30x20x6\n23x2x10\n11x4x7\n27x23x6\n10x20x19\n8x20x22\n5x29x22\n16x13x2\n2x11x14\n6x12x4\n3x13x6\n16x5x18\n25x3x28\n21x1x5\n20x16x19\n28x30x27\n26x7x18\n25x27x24\n11x19x7\n21x19x17\n2x12x27\n20x5x14\n8x |
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
C:\Windows\system32\cmd.exe /C K:/realz/dump/mingw-w64/msys64/usr/bin/make.exe -e -f Makefile | |
----------Building project:[ sgfxapi - Debug ]---------- | |
make[1]: Entering directory '/k/realz/dump/code/gfxapi/repo' | |
K:/realz/dump/mingw-w64/msys64/mingw64/bin/g++.exe -c "k:/realz/dump/code/gfxapi/repo/src/sgfxapi/sgfxapi.cpp" -g -O0 -std=c++11 -Wall -o ./Debug/sgfxapi_sgfxapi.cpp.o -I. -I. -I./include -IK:/realz/dump/code/mathgeolib/MathGeoLib-master/MathGeoLib-master/src/ -IK:/realz/dump/code/glfw/glfw-3.1.1.bin.WIN64/glfw-3.1.1.bin.WIN64/include -IK:/realz/dump/code/mordred.svo/sparse-voxel-octrees/lib/glew/glew/include | |
k:/realz/dump/code/gfxapi/repo/src/sgfxapi/sgfxapi.cpp: In function 'GLenum SGFXAPI::toGLBinding(SGFXAPI::TextureType)': | |
k:/realz/dump/code/gfxapi/repo/src/sgfxapi/sgfxapi.cpp:240:12: warning: enumeration value 'TextureCubeMap' not handled in switch [-Wswitch] | |
switch (texturetype) | |
^ | |
k:/realz/dump/code/gfxapi/repo/src/sgfxapi/sgfxapi.cpp:240:12: warning: enumeration value 'Tex |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
Error (approximate, line numbers may have changed): | |
check.js:20Uncaught Error: (regl) invalid value: invalid color format for texture. must be one of: rgba | |
raise @ check.js:20 | |
checkOneOf @ check.js:71 | |
reglFramebuffer @ framebuffer.js:419 | |
createFBO @ framebuffer.js:613 | |
1.gl-mat4 @ bugs.js [sm]:47 | |
s @ _prelude.js:1e @ _prelude.js: |
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
/** | |
Error, check webgl-inspector, texture created is of type unsigned byte, not float. | |
*/ | |
const mat4 = require('gl-mat4'); | |
const resl = require('resl'); | |
const regl = require('regl')(); |
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
// const indices = [ | |
// [3, 1, 0], [0, 2, 3] | |
// ]; | |
///position={-1,-1} is upper left corner | |
///uv={0,0} is lower left corner |
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
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
const $ = require('jquery-browserify'); | |
const regl = require('regl')(); | |
const quad = require('glsl-quad'); | |
$(document).ready(function(){ |
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
const resl = require('resl'); | |
const regl = require('regl')(); | |
const quad = require('glsl-quad'); | |
resl({ | |
manifest: { | |
texture: { | |
type: 'image', | |
// quad provides a bitmap as a uri to display; the "directions" bitmap shows two |