Skip to content

Instantly share code, notes, and snippets.

@akarve
akarve / Anscombe's Quartet
Last active October 28, 2016 05:21 — forked from ebressert/Anscombe's Quartet
updated for python 3 and immediate display
import seaborn as sns
from scipy.optimize import curve_fit
# Function for linear fit
def func(x, a, b):
return a + b * x
# Seaborn conveniently provides the data for
# Anscombe's quartet.
df = sns.load_dataset("anscombe")
@akarve
akarve / og-boilerplate.html
Last active November 12, 2023 13:35
Facebook Open Graph tags. Boilerplate for HTML pages.
<!-- Reference: https://developers.facebook.com/docs/sharing/best-practices#tags -->
<!-- CORE og -->
<!-- Title, without branding. -->
<meta property="og:title" content="" />
<!-- Name, not URL (e.g. Apple, not apple.com) -->
<meta property="og:site_name" content="" />
<!-- URL. Should match canonical URL for SEO. Unique identifier for your article. -->
<meta property="og:url" content="" />
<!-- OPTIONAL description. 2-4 sentences. -->
<meta property="og:description" content="" />
@akarve
akarve / app.coffee
Last active August 29, 2015 14:10
Framer JS draggable inside scrollVertical Layer (works on desktop, does not work on mobile)
bg = new BackgroundLayer backgroundColor:"black"
scroll_panel = new Layer
height: bg.height
width: bg.width
backgroundColor: "transparent"
scroll_panel.scrollVertical = true
scroll_content = new Layer
width: bg.width