Update: Use mkcert instead
Based on this tutorial.
First set your location:
export COUNTRY="US"
export STATE="California"
export CITY="Los Angeles"
Based on this tutorial.
First set your location:
export COUNTRY="US"
export STATE="California"
export CITY="Los Angeles"
class Camera2d : public ofCamera { | |
private: | |
ofVec2f mouseStart; | |
ofVec2f startPosition; | |
float zoom; | |
float maxZoom = .01; | |
float minZoom = 1; | |
float zoomSpeed = 1. / 500; | |
public: | |
void setup() { |
#pragma once | |
#include "ofMain.h" | |
class ZoomableRegion2D { | |
private: | |
float speed = 5; | |
float zoom = 1; | |
ofVec2f offset, startOffset, startDrag; | |
float startZoom; |
#include "ofMain.h" | |
#include "ofxAssimpModelLoader.h" | |
class ofApp : public ofBaseApp { | |
public: | |
ofxAssimpModelLoader loader; | |
ofMesh mesh; | |
ofTexture tex; | |
from numba import jit | |
import numpy as np | |
index_dtype = np.int32 | |
cost_dtype = np.int32 | |
@jit(nopython=True) | |
def auction(a, eps=1): | |
n = len(a) | |
p = np.zeros(n, dtype=cost_dtype) |