This file has been truncated, but you can view the full file.
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
{ | |
"Browser History": [ | |
{ | |
"favicon_url": "", | |
"page_transition": "LINK", | |
"title": "31469 Christina Groves\nEast Victoria, MA 89888", | |
"url": "boyer-perkins.baker-dudley.williams.hansen-thompson.harvey-powell.org", | |
"client_id": "6968111a1a3f439899e5c0==", | |
"time_usec": 1630853352480226 | |
}, |
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 Point { | |
constructor(x, y) { | |
this.x = x | |
this.y = y | |
} | |
} | |
class ClockHand { | |
constructor(center, r, theta=0){ | |
this.center = center |
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 logging | |
import cv2 | |
import numpy as np | |
logger = logging.getLogger(__name__) | |
class Kuwahara: | |
@staticmethod |
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 rot { | |
static rot(vec, theta) { | |
let sina = Math.sin(theta), | |
cosa = Math.cos(theta); | |
let mat = [ | |
[cosa, 0 - sina, 0], | |
[0, 1, 0, 0], | |
[sina, 0, cosa, 0], | |
[0, 0, 0, 1], |
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
from .extractor import CacheExtractor, Extractor | |
from .npb_games import BaseballExtractor | |
from .npb_games_detail import BaseballDetailsExtractor |
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 Vec2 { | |
constructor(x, y) { | |
this.x = x; | |
this.y = y; | |
} | |
static random() { | |
return new Vec2(Math.random(), Math.random()); | |
} | |
} |
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 p5 from "p5"; | |
const round = (value: number, base: number) => | |
Math.round(value * 10 ** base) / 10 ** base; | |
class Vec2 { | |
x: number; | |
y: number; | |
constructor(x: number, y: number) { | |
this.x = x; |
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 RotMat2 { | |
constructor(angle) { | |
this.cosa = Math.cos(angle) | |
this.sina = Math.sin(angle) | |
} | |
apply(v) { | |
return new Vec2( | |
this.cosa * v.x - this.sina * v.y, | |
this.sina * v.x + this.cosa * v.y | |
) |
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 Matrix { | |
height: number; | |
width: number; | |
data: number[]; | |
constructor(height: number, width: number) { | |
this.height = height; | |
this.width = width; | |
this.data = new Array(height * width).fill(0); |