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 React from 'react'; | |
import { ILights } from 'src/types/lights'; | |
import { GLTF } from 'three-stdlib'; | |
import { GltfModel } from './gltf-model'; | |
export const GltfScene = (props: { gltf: GLTF | undefined; lights: ILights }) => { | |
const { gltf, lights } = props; | |
const gltfElement = gltf ? <GltfModel gltf={gltf} lightOption={lights.additonalLights} /> : <group />; |
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
// | |
'use strict'; | |
const puppeteer = require('puppeteer'); | |
const { spawn } = require('child_process'); | |
const viewportWidth = 1280; //parseInt(process.argv[4]); | |
const viewportHeight = (viewportWidth * 9) / 16; //parseInt(process.argv[3]); | |
const fps = 30; |
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
/*-------------------------------------------------------------------------------------------------------------- | |
* Copyright (c) Microsoft Corporation. All rights reserved. | |
* Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | |
*-------------------------------------------------------------------------------------------------------------*/ | |
struct StA { | |
a: i64, | |
b: i64, | |
} |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(i, n) for (int i = 0; i < (n); ++i) | |
const int INF = 1001001001; | |
void dfs(vector<vector<string>> &vect, int x, int y, int N, int M) { | |
vect[x][y] = "."; | |
for (int dx = -1; dx <= 1; dx++) { | |
for (int dy = -1; dy <= 1; dy++) { |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(i, n) for (int i = 0; i < (n); ++i) | |
const int INF = 1001001001; | |
void dfs(vector<vector<string>> &vect, int x, int y, int N, int M) { | |
vect[x][y] = "."; | |
for (int dx = -1; dx <= 1; dx++) { | |
for (int dy = -1; dy <= 1; dy++) { |
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
gl.useProgram(program) | |
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer()); | |
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([ -1,-1, 1,-1, -1, 1, 1, 1]), gl.STATIC_DRAW); | |
var positionLocation = gl.getAttribLocation(program, "position"); | |
gl.enableVertexAttribArray(positionLocation); | |
gl.vertexAttribPointer(positionLocation, 2, gl.FLOAT, false, 0, 0); | |
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4); |
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 fs from 'fs'; | |
import jsonfile from 'jsonfile'; | |
import { IGeoJson } from './geo-json'; | |
const eartDataUrl ='earth-line.json'; | |
fs.readFile('./json/ne_110m_land.json', 'utf-8', (err, data) => { | |
const geoData = JSON.parse(data) as IGeoJson; | |
const pointData = []; | |
const indices = []; | |
const vertices = []; |
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 cv2 | |
import os | |
print(cv2.__version__) | |
videoName = "n0" | |
cam = cv2.VideoCapture( | |
"C:\\freelance\\small\\nisshin\\Mp4ToJpeg\\videos\\" + videoName + ".mp4") | |
print('hello') |
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
from pathlib import Path | |
from PIL import Image | |
import json | |
import unicodedata | |
Path("./output").mkdir(parents=True, exist_ok=True) | |
p = Path("./original/") | |
t = list(p.glob("*")) |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome against localhost", |
NewerOlder