Skip to content

Instantly share code, notes, and snippets.

View edlanglois's full-sized avatar

Eric Langlois edlanglois

  • University of Toronto
View GitHub Profile
@edlanglois
edlanglois / Faster.js
Created August 31, 2015 17:16
Speed up an HTML5 video on the page
javascript:_vidlist = document.getElementsByTagName('video'); if (!_vidlist.length) { _vidlist = document.getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('video') }; _vidlist[0].playbackRate += 0.25
#!/usr/bin/env python3
# MIT License
#
# Copyright 2017 Eric Langlois
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is

Keybase proof

I hereby claim:

  • I am edtsft on github.
  • I am edtsft (https://keybase.io/edtsft) on keybase.
  • I have a public key ASAeXDD3NxhSuDmDhWBdWZOsUdFgHVwN13EzwUzU4dMlmAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am edlanglois on github.
  • I am edtsft (https://keybase.io/edtsft) on keybase.
  • I have a public key ASAeXDD3NxhSuDmDhWBdWZOsUdFgHVwN13EzwUzU4dMlmAo

To claim this, I am signing this object:

@edlanglois
edlanglois / exclusive_tensor.rs
Last active November 23, 2021 06:31
ExclusiveTensor providing hopefully-safe views of tch::Tensor data
// This file is dual-licensed under the terms of the MIT or Apache 2.0 licenses.
//
// == MIT ==
// Copyright © 2021 Eric Langlois <eric@langlois.xyz>
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the