Skip to content

Instantly share code, notes, and snippets.

@Venryx
Venryx / dynamic_typing.rs
Created July 12, 2022 21:40 — forked from Kimundi/dynamic_typing.rs
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 {
@Venryx
Venryx / Netflix.seek.js
Created December 12, 2020 00:56 — forked from dimapaloskin/Netflix.seek.js
Netflix seek
const videoPlayer = netflix
.appContext
.state
.playerApp
.getAPI()
.videoPlayer;
// Getting player id
const videoPlayer = videoPlayer
.getAllPlayerSessionIds()[0]
@Venryx
Venryx / index.html
Created April 4, 2019 23:47 — forked from JobLeonard/index.html
Join vs Template - Venryx (http://jsbench.github.io/#a8a564f66be7840376640c3060846208) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Join vs Template - Venryx</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>