- these are the calls used by the dexcom uploader app
- these are in no particular order!
User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0
GET
class A { | |
@override | |
Type get runtimeType => int; | |
} | |
class B<T> {} | |
void main() { | |
print(A().runtimeType); // int | |
print(B<A>().runtimeType); // B<A> |
// Almost by definition, if I'm able to pass X where Y is expected, then X is a | |
// subtype of Y. | |
// | |
// In Dart, this mostly holds, but `dynamic` is an exception. I can pass | |
// `dynamic` everywhere, but it's not really a subtype of anything. | |
void f(int a) {} | |
class C<A> {} |
class C { | |
dynamic get a { | |
print('C.a getter called'); | |
return (x) => print('C.a return value called'); | |
} | |
} | |
void main() { | |
var x = C(); |
class A { | |
void f() { | |
print('A.f called'); | |
} | |
} | |
class B implements A { | |
void f({int test}); // optional non-nullable with no default value, also not a valid override | |
// `f` above is not valid without a `noSuchMethod` |
class A { | |
void f() {} | |
} | |
extension B on A { | |
void g() {} | |
} | |
void main() { | |
final a = A(); |
class A { | |
void f() { | |
print('A.f called'); | |
} | |
} | |
class B extends A { | |
@override | |
void f(); | |
} |
void voidFun() => 123; | |
class A<T> { | |
T x; | |
A (this.x); | |
Object? getX() => x; | |
} |
# | |
# Configuration files for Manjaro i3 on Lenovo Yoga 2 pro | |
# to scale properly on HiDPI (3200x1800) | |
# | |
##################################################### | |
~/.profile # | |
##################################################### | |
# UI element scaling, icons | |
export GDK_SCALE=2 |
use std::convert::TryFrom; | |
use std::io::{stdin, BufRead}; | |
use std::process::exit; | |
use regex::{Captures, Regex}; | |
fn main() { | |
let re = Regex::new(r"'\\u\{([0-9A-Fa-f]+)\}'").unwrap(); | |
let stdin = stdin(); |