Skip to content

Instantly share code, notes, and snippets.

@beemyfriend
beemyfriend / index.html
Last active July 23, 2017 18:02
CoC Stepper
<head>
<style>
p, h1, h2, #joinus{
font-family: Georgia, Verdana, serif;
text-align: center;
}
html, body {
margin: 0;
height: 100%;
@beemyfriend
beemyfriend / Justification.md
Last active August 1, 2017 06:40
RainbowR Stepper

Online Code of Conducts: Summary

Intro

This is a summary of the ideas that I read up on regarding Codes of Conduct (CoC). The goal of this summary is to understand what makes a good CoC in order to create one for the RainbowR slack group. I will do this by identifying the attributes of an effective CoC and by providing examples for each of the identified attributes. I will then conclude this summary by providing a draft of what I believe the RainbowR CoC should include According to the Geek Feminism wiki, an effective code of conduct should include:

  • Specific descriptions of common but unacceptable behavior.
  • Reporting instructions with contact information.
  • Information about how it may be enforced.
@beemyfriend
beemyfriend / index.html
Last active August 4, 2017 18:34
Network of packages found in CRAN taskviews. Nodes filtered to only include packages in multiple taskviews.
<head>
<style>
canvas {
position: absolute;
}
svg {
position: absolute;
width: 1000px;
height: 600px;
@beemyfriend
beemyfriend / index.html
Last active September 2, 2017 02:30
badge
<head></head>
<body>
<svg height = '1050px' width = '1500px'>
<radialGradient id="gr-radial"
cx="50%" cy="50%" r="70%">
<!-- Animation for radius of gradient -->
<animate attributeName="r"
values="0%;175%"
dur="10s" repeatCount="indefinite" />
@beemyfriend
beemyfriend / index.html
Created November 14, 2017 05:09
Playing WITH GREENSOCK!!!!!!
<head>
<style>
#hello div {
float: left
}
</style>
</head>
<body>
<div id = 'hello'></div>
@beemyfriend
beemyfriend / index.html
Created November 20, 2017 06:49
Experimenting with D3 and GSAP #1
<body></body>
<script src="https://rawgit.com/gka/d3-jetpack/master/build/d3v4%2Bjetpack.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script>
////////////////////////////////////////////
// LETS CREATE THE DOM WITH D3.jetpack
////////////////////////////////////////////
var data = [{text: 'this', num: 150},
{text: 'data', num: 125},
@beemyfriend
beemyfriend / lattice5x4.R
Created July 13, 2018 05:21
Using Tidyverse to Query Structures in
library(tidyverse)
library(igraph)
g <- make_lattice(c(5, 5))
ego(g, order = 1, mindist = 1)
head_of(g, E(g))
he <- ego(g, order = 1, mindist = 1, nodes = head_of(g, E(g)))
@beemyfriend
beemyfriend / latticeWObstacles.R
Created July 15, 2018 04:47
Exploring graph substructures with topological obstacles (missing nodes)
####
# Dependencies
####
library(tidyverse)
library(igraph)
####
# The pattern is to identify points to extend the structure of
@beemyfriend
beemyfriend / latticeWObstaclesTopology.R
Created July 16, 2018 01:54
Exploring graph substructures with topological obstacles (missing nodes) and node weights
library(tidyverse)
library(igraph)
####
# The pattern is to identify points to extend the structure of
# dyads and subsequent structures
# And make sure the extension isn't already part of the structure
####
@beemyfriend
beemyfriend / simple_contagion.r
Created August 8, 2018 01:43
Simple Contagion
library(igraph)
library(animation)
#===============================#
#===== Simple ==================#
#===============================#
saveGIF({
ani.options(ani.width = 800,
ani.width = 800,