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
extern crate tokio_core; | |
extern crate futures; | |
use std::io; | |
use std::net::{self, SocketAddr, ToSocketAddrs}; | |
use tokio_core::net::{RecvDgram, UdpSocket}; | |
use futures::Future; | |
fn handle_dgram |
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
#lang racket/base | |
(require racket/list) | |
(struct node (val left right) #:transparent) | |
(define (tree-new val) (node val null null)) | |
(define (tree-insert t val) | |
(cond [(null? t) (tree-new val)] | |
[(null? (node-val t)) (tree-new val)] |
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
#!/bin/bash | |
KCOV=kcov | |
KCOV_OPTS="--verify --exclude-pattern=/.cargo" | |
KCOV_OUT="./kcov-out/" | |
export RUSTFLAGS="-C link-dead-code" | |
TEST_BIN=$(cargo test --no-run 2>&1 >/dev/null | awk '/^ Running target\/debug\// { print $2 }') |
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
// Experimentalphysik I 2018/19: Schiefer Wurf. | |
// Gruppe 7 | |
// | |
// (c) 2018 Lewin Bormann | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"math" |
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
extern crate getopts; | |
use getopts::Options; | |
#[derive(Clone, Debug)] | |
struct State { | |
t: f64, | |
h: f64, | |
x: f64, | |
v_vert: f64, |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <climits> | |
struct inner { | |
std::string bezeichnung_; | |
int value_; | |
}; |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <climits> | |
struct inner { | |
std::string bezeichnung_; | |
int value_; | |
}; |
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
#include <iostream> | |
#include <cstdlib> | |
struct A { | |
int i; | |
A(int i) : i(i) {} | |
~A() { std::cout << i - 1; } | |
void print() { std::cout << i; } | |
}; |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Apr 1 12:31:31 2019 | |
@author: lbo | |
""" | |
import numpy | |
import 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Apr 25 22:40:53 2019 | |
@author: Lewin Bormann, Emily Leung, Kira Jürgens | |
""" | |
import matplotlib.pyplot as plt | |
import numpy.random as rd |