Skip to content

Instantly share code, notes, and snippets.

View lsquaredleland's full-sized avatar
😜
smile

Lsquared Leland lsquaredleland

😜
smile
  • SV
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lsquaredleland on github.
  • I am lelandlee (https://keybase.io/lelandlee) on keybase.
  • I have a public key ASC2nqfJCnVCLyK6keV3meicpxhKrxaE2LoAh7zIZ2zQywo

To claim this, I am signing this object:

@lsquaredleland
lsquaredleland / gist:303a917bc8f328b97bfcfde15638b74e
Created May 31, 2018 21:39
From CryptoKittiesSalesAuction Contract - 0xb1690c08e213a35ed9bab7b318de14420fb57d8c
function _computeCut(uint256 _price) internal view returns (uint256) {
// NOTE: We don't use SafeMath (or similar) in this function because
// all of our entry functions carefully cap the maximum values for
// currency (at 128-bits), and ownerCut <= 10000 (see the require()
// statement in the ClockAuction constructor). The result of this
// function is always guaranteed to be <= _price.
return _price * ownerCut / 10000;
}

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Delegate Delegation

This was submitted for Major League Data Challenge where I was fortunate enough to snag honourable mention. The live demo is locater here and the repo here

@lsquaredleland
lsquaredleland / README.md
Last active March 2, 2016 01:47
Slanted Bar Chart

Different type of bar chart

Working on a novel bar chart, where the different levels allow different levels of granularity, where the bottom half has is to examine smaller numbers (similar to inverse log scale but less pronounced).

Lots of fixes still needed

  • Axes y and x
  • Tick marks
  • It might take a while...
@lsquaredleland
lsquaredleland / README.md
Last active October 4, 2023 08:11
Circular Sankey

Circular Sankey

Was inspired by some of the diagrams at sankey-diagram.com. They have some stellar examples of sankey diagrams of all sorts. The purpose of a circular sankey is to show how the flow of something might be circular, meaning that some of the original is recycled for the next cycle.

Implimentation

Very similar to a traditional donut chart, except this case the outsideRadius is decreasing. And the difference generates an offshoot.

To Try:

  • Find a way to create a common data structure to populate this visualisation (Especially take into account multiple offshoots)
  • Might want to try to use curved offshoots
@lsquaredleland
lsquaredleland / README.md
Last active January 31, 2016 20:38
Which UC Berkeley Libraries Are Open

Library Visualization:

A tool to check if there are any open libraries at the University of California, Berkeley. Using import.io to pull real time data from the library page. If there are issues with the endpoint, the visualization will default to the mon-thurs schedule. Yep there are API keys in the JS snippet :$.

Need to improve the overall UX when interacting with the visualization.....such as highlighting to emphasize which libraries are currently open.

Might want to bind data to the DOM rather than reference it... How many ways can the school say the times that a library is open or closed......way too many

@lsquaredleland
lsquaredleland / README.md
Last active October 8, 2015 19:30
Hexbin Wallpaper 1

#Hexbin Wallpaper Try playing around changing the colours and sizing, then screenshot to use as wallpaper. Or for svg use this

@lsquaredleland
lsquaredleland / README.md
Last active May 11, 2017 13:48
Colour Density Hexbin

#Colour Density Hexbin Dots are placed randomly, then they are grouped by the raster. The tile colour is determined by the dot density. Raster is a hexbin.

Based off this: Hexagonal Binning

@lsquaredleland
lsquaredleland / README.md
Last active October 4, 2015 20:21
Colour Density Grid

#Colour Density Grid Dots are placed randomly, then they are grouped by the grid. The tile colour is determined by the dot density. Raster is a grid.