Skip to content

Instantly share code, notes, and snippets.

View robjtede's full-sized avatar
🦀
Rewrite it in Rust™

Rob Ede robjtede

🦀
Rewrite it in Rust™
View GitHub Profile
struct A;
#[derive(Default)]
struct Obj<T> {
obj:T,
num: u32
}
fn main() {
println!("{}", std::mem::size_of::<Obj>());
@robjtede
robjtede / inline-svg.html
Last active May 3, 2019 14:12
Async inlining an SVG in HTML with CSS support
<iframe src="icon.svg" onload="this.before(this.contentDocument.children[0]); this.remove();"></iframe>
@robjtede
robjtede / 1-passing-props.tsx
Last active January 27, 2019 11:31
The Real "RouteWithProps" React Component in TypeScript Code Snippets
<Route path="/monitor" component={props =>
<App data={linksData} {…props} />
}>
@robjtede
robjtede / .editorconfig
Created January 20, 2018 03:52
EditorConfig
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@robjtede
robjtede / reboot.css
Created October 11, 2017 19:07
reboot.css
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
@robjtede
robjtede / social.json
Created October 8, 2017 14:19
Social Media Accounts
{
"twitter": "robjtede",
"instagram": "robjtede"
}
@robjtede
robjtede / .gitattributes
Last active September 13, 2017 16:45
Git LFS Binary File List
# images
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.eps filter=lfs diff=lfs merge=lfs -text
*.xcf filter=lfs diff=lfs merge=lfs -text
# video
*.mp4 filter=lfs diff=lfs merge=lfs -text
@robjtede
robjtede / flex.css
Last active May 17, 2018 04:23
CSS Snippets
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: stretch;
@robjtede
robjtede / template.html
Last active October 7, 2017 18:02
Blank file templates
<!DOCTYPE html>
<html>
<head>
<title>html boilerplate</title>
<!-- Meta Tags -->
<meta charset="utf-8">
<!-- HTML Imports -->
@robjtede
robjtede / keybase.md
Last active April 14, 2017 12:53
Keybase Verification

Keybase proof

I hereby claim:

  • I am robjtede on github.
  • I am robjtede (https://keybase.io/robjtede) on keybase.
  • I have a public key whose fingerprint is 928F A2C9 3974 6470 82F7 05AE C2A3 B36E 841A 91E6

To claim this, I am signing this object: