Skip to content

Instantly share code, notes, and snippets.

Patrick Renschler renschler

Block or report user

Report or block renschler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View scrapeTwitterLikes.js
/*
See https://twitter.com/renschler/status/1081666886377619457 for context,
this gist contains JS snippets you can use one after another to download a csv with your liked tweets.
*/
/* ***************************************************************************** */
/*
Scroll to load liked tweets...
Fist go to your likes page : https://twitter.com/i/likes
View gist:21d5ac2ddaece007f081
Verifying that +renschler is my blockchain ID. https://onename.com/renschler
@renschler
renschler / README.md
Last active Aug 29, 2015
Distributed Power Control
View README.md

Power control with fixed signal to interference ratio (SIR)

Here we can visualize the basic formulation of the distributed power control algorithm over a narrow range of inputs.

Each receiving channel is assigned a target SIR that is randomly sampled from a uniform distribution with range 1-3. Each mobile station is assigned an initial transmit power level that is randomly sampled from a uniform distribution with range 1-3mW. Gains for interference channels are randomly sampled from a uniform distribution with range 0.01-0.10. These inputs are displayed in tables where each row corresponds to a given mobile station. The input values used here are arbitrary and don't reflect actual numerical values observed in real cellular networks.

The transmit power of each mobile station is plotted as a line over time (i.e. over the DPC algorithm iterations). If there exists a set of transmit powers that satisfies all target SIRs, the minimal power solution is displayed in a table to the right of the input tables. Ot

@renschler
renschler / README.0.md
Last active Jul 17, 2017
A Radiation Model for US County Commuter Flows
View README.0.md
--- Update (6/20/2017): Github now only allows access to 10 files per Gist, so you'll need to clone the repository and open the file index.html in a browser to play with the d3 visualization. ---

Simini et al. (2012) present a model for determining fluxes between communities that only requires a population distribution as an input. This model, coined the radiation model, has been shown to improve the accuracy of describing many processes that are affected by mobility and transport including migration, trade, and communication.

Here we can visualize the output of a radiation model that was used to calculate commuter flows between counties in the United States. These flows were generated using 2010 Census data (radiation model source code). The selected county appears red. You can toggle betw

You can’t perform that action at this time.