In this repository you will find a collection of teeworlds binds, configs and scripts which you can use in your
settings_ddnet.cfg
If you feel like a bind is missing please contribute.
curl -s https://api.github.com/repos/gogs/gogs/releases/latest \ | |
| grep "linux_amd64.*zip" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| wget -qi - |
.full { | |
background: #2E313E | |
} | |
.hljs { | |
display: block; | |
overflow-x: auto; | |
padding: 0.5em; | |
background-color: #2b2b2b !important; |
//import PouchDB from 'pouchdb'; | |
var PouchDB = require('pouchdb'); | |
PouchDB.plugin(require('pouchdb-quick-search')); | |
class Database { | |
db: any; | |
constructor(databaseName: string) { | |
this.db = new PouchDB(databaseName); |
import java.util.ArrayList; | |
import java.util.List; | |
class DrStrange { | |
private static List<Integer> numbers; | |
public DrStrange() { | |
numbers = new ArrayList<>(); } |
import sys | |
from fontTools.ttLib import TTFont | |
from fontTools.ttLib.tables._c_m_a_p import CmapSubtable | |
font = TTFont('whitney.ttf') | |
cmap = font['cmap'] | |
t = cmap.getcmap(3,1).cmap | |
s = font.getGlyphSet() | |
units_per_em = font['head'].unitsPerEm |
#!/usr/bin/env python3 | |
# A tiny webserver in python | |
# ready to run! | |
import os | |
import configparser | |
import socket |
#!/bin/bash | |
for f in p*.[jJ][pP][gG] | |
do | |
echo $f | |
convert $f -resize 1024x683^ -gravity center -extent 1024x683 print_$f | |
done | |
# resizes all jpgs in a dir to 1024x683 px with gravity centered:wq |
In this repository you will find a collection of teeworlds binds, configs and scripts which you can use in your
settings_ddnet.cfg
If you feel like a bind is missing please contribute.
import org.apache.commons.math3.linear.Array2DRowRealMatrix; | |
import org.apache.commons.math3.linear.RealMatrix; | |
import org.apache.commons.math3.linear.SingularValueDecomposition; | |
public class Test3 { | |
public static void main(String[] args) { | |
double [][] data = {{12, 25425.6}, {15, 49816.5}, {23, 180506.9}, {27, 292460.1}}; | |
int numCoefficients = 4; // 4 means a polynomial of rank 3 --> x3 + x2 + x1 + d |
def euka(a, b): | |
u, v, s, t = 1, 0, 0, 1 | |
while b!=0: | |
q=a//b | |
a, b = b, a-q*b | |
u, s = s, u-q*s | |
v, t = t, v-q*t | |
return a, u, v | |
def modinverse(a, n): |