Skip to content

Instantly share code, notes, and snippets.

@Kimundi
Kimundi / dynamic_typing.rs
Last active January 6, 2023 18:56
Dynamic typing in Rust
use std::unstable::intrinsics::{TyDesc, get_tydesc, forget};
use std::util::Void;
use std::cast::transmute;
///////////////////////////////////////////////////////////////////////////////
// TypeId
///////////////////////////////////////////////////////////////////////////////
/// `TypeId` represents a globally unique identifier for a type
pub struct TypeId {
@ktnr74
ktnr74 / touch_test.py
Last active September 21, 2022 11:46
touch event injection with sendevent
#!/usr/bin/python
import subprocess
import os
def adbshell(command, serial=None, adbpath='adb'):
args = [adbpath]
if serial is not None:
args.append('-s')
args.append(serial)