Skip to content

Instantly share code, notes, and snippets.

@shpik-kr
shpik-kr / beginners-capsule
Last active October 12, 2020 14:00
SECCON 2020 - Web
var __classPrivateFieldSet = function(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError(
"attempted to set private field on non-instance"
);
}
privateMap.set(receiver, value);
console.log(privateMap.get(flag));
return value;
};
#
# POSTECH CSED233 ASSN2 AUTO CHECKER
# Python 3.7+
#
# by beta@plus, gwon minjae.
# special thx to whysw@plus, yang seungwon.
#
# github.com/beta-lux
#
@heaversm
heaversm / openCV-portait-camera-android.java
Last active March 29, 2024 18:30
Renders openCV's camera in portrait mode on android - to be placed in `CameraBridgeViewBase.java`
private final Matrix mMatrix = new Matrix();
private void updateMatrix() {
float mw = this.getWidth();
float mh = this.getHeight();
float hw = this.getWidth() / 2.0f;
float hh = this.getHeight() / 2.0f;
float cw = (float)Resources.getSystem().getDisplayMetrics().widthPixels; //Make sure to import Resources package