Skip to content

Instantly share code, notes, and snippets.

Avatar

Amanda Shih pandafulmanda

View GitHub Profile
View sketch.js
var red;
var green;
var blue;
var previousRed;
var previousGreen;
var previousBlue;
var song;
var keywidth = 50;
var keyheight = 300;
View example_ggplot.R
require(ggplot2)
members <- jsonlite::fromJSON(readLines('https://gist.githubusercontent.com/neerajt/6f0ff957e7ff3adab63471460cade5d5/raw/55e3b7691aefe8e1c1dca7543dd4d41c8b5bee09/members.json'))
plt <- ggplot(members, aes(x=Date, y=TotalMembers)) +
geom_point() + geom_point(aes(y = ActiveMembers), color="red") +
geom_point(aes(y = TotalMembers - ActiveMembers), color="blue")
print(plt)
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active Oct 12, 2021 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv Setup.md

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@pandafulmanda
pandafulmanda / scrollspy.coffee
Last active Dec 30, 2015 — forked from alxhill/scrollspy.coffee
fork of alxhill's scrollspy.coffee at https://gist.github.com/alxhill/6886760 not sure why, but the original wasn't working for me when the scope model updated. spyElems[spy.id] was undefined for new elements at line 37 and caused scrollfix to break after a model change. am using v1.2.0-8336b3a also add a quick attribute to allow easy custom buf…
View scrollspy.coffee
angular.module('jobFoundryDirectives').directive 'spy', ($location) ->
restrict: "A"
require: "^scrollSpy"
link: (scope, elem, attrs, scrollSpy) ->
attrs.spyClass ?= "current"
elem.click ->
scope.$apply ->
$location.hash(attrs.spy)