See also:
Service | Type | RAM | Storage | Limitations |
---|---|---|---|---|
👉 Adaptable | PaaS | 256 MB | Non-persistent? (1 GB database storage available) | |
AWS EC2 | IaaS | 1 GB |
import numpy as np | |
import signal | |
import matplotlib.pyplot as plt | |
######################################################################### | |
######################### 3SAT GENERATION ############################### | |
# generate 3sat problems | |
def gen_3sat(c,n): | |
clauses = [((np.random.randint(1, n+1), np.random.randint(0, 2)), |
import numpy as np | |
def read_corpus(filepath): | |
file = open(filepath, "r") | |
corpus_lines = [] | |
while True: | |
content=file.readline() | |
if not content: | |
break | |
corpus_lines.append(content.rstrip()) |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Z-Index Example</title> | |
<style> | |
html, body { background-color: #00787F; } | |
.container { | |
position: relative; |
float circ( vec2 p){ | |
return length(p) - 0.3; | |
} | |
void pR(inout vec2 p, float a) { | |
p = cos(a)*p + sin(a)*vec2(p.y, -p.x); | |
} | |
// Repeat in two dimensions | |
vec2 pMod2(inout vec2 p, vec2 size) { | |
vec2 c = floor((p + size*0.5)/size); |
#!/bin/bash | |
# | |
# Wget's main Google calendar private ical file | |
# | |
# Created by: Graham van der Wielen | |
# Created on: 20100412 | |
### System Setup ### | |
CP="$(which cp)" | |
ECHO="$(which echo)" |
#!/bin/bash | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
## Compare Brooks et al glmmTMB paper with mgcv | |
## Packages | |
library("glmmTMB") | |
library("mgcv") | |
library("ggplot2") | |
theme_set(theme_bw()) | |
library("ggstance") | |
## Salamander |