Skip to content

Instantly share code, notes, and snippets.

@mdhighfi
mdhighfi / copy_ts_params.js
Created July 30, 2020 23:14
Copy/Paste the timestamps from a DataDog url
const from_ts = /from_ts=(\d+)/;
const to_ts = /to_ts=(\d+)/;
const live = /live=(true|false)/;
let url = window.location.href;
function originalFrom(){
return url.match(from_ts)[1];
}

Keybase proof

I hereby claim:

  • I am mdhighfi on github.
  • I am matthighfield (https://keybase.io/matthighfield) on keybase.
  • I have a public key ASAJl5GmWDbrmJpu5haPvqd-teGxwyI73klO_pLQr3qBHwo

To claim this, I am signing this object:

@mdhighfi
mdhighfi / test.rb
Created August 28, 2015 01:10
ruby test
def method
some_code
end