Skip to content

Instantly share code, notes, and snippets.

View imothee's full-sized avatar
🤩
Excited to code

Tim Marks imothee

🤩
Excited to code
View GitHub Profile
Framework CSS size/gzipped #Elements Custom CSS #CSS Written/Unique Dev Elements
Bootstrap 68kb/12kb 49 0 classes 0 properties 48/34 4.5/5 5/5
Bulma 73kb/10kb 53 2 classes 2 properties 56/37 4.5/5 4.5/5
Foundation 30kb/7kb 56 4 classes 4 properties 46/21 4/5 3.5/5
Milligram 10kb/3kb 49 7 classes 17 properties 34/19 4.5/5 3.5/5
Pure 17kb/4kb 48 7 classes 7 properties 39/27 4/5 3.5/5
SemanticUI 146kb/20kb 47 2 classes 2 properties 90/39 4/5 5/5
UIKit 33kb/6kb 51 0 classes 0 properties 52/31 4.5/5 5/5
@imothee
imothee / gist:0e0a9754ec5fb3f7091164cf947cdbc4
Created June 16, 2017 23:10
Creating a custom chart in D3 V4
const parseDate = d3.timeParse("%Y-%m-%e");
// Get the extent of the dates in the range
const xDomain = d3.extent(Object.keys(changes), (d) => { return parseDate(d) });
const xRange = [0, width - margins.left - margins.right];
// Alogirthm to generate the circle size log scale of maxCount
const fillSize = (len) => {
if (len < 1) {
return 0;
}
public static func noteTitles(content: String) -> (String, String) {
let lines = content.trimmingCharacters(in: .whitespacesAndNewlines).components(separatedBy: "\n")
let title = lines[0].characters.count > 0 ? lines[0] : "New Note"
let sub = lines.count > 1 ? lines[1] : ""
return (title, sub)
}

Keybase proof

I hereby claim:

  • I am imothee on github.
  • I am timothymarks (https://keybase.io/timothymarks) on keybase.
  • I have a public key ASDGSaGTpOQzA64UrgcrmGc-aIhT_CbvzEHuCQ9Ydg4IUQo

To claim this, I am signing this object: