Watch the demo at bl.ocks.org.
Source and comments on gist.github.com.
Watch the demo at bl.ocks.org.
Source and comments on gist.github.com.
The Web Audio Context API surprised me in how fully featured it is. Most of the docs and tutorials I found on it are from late 2011 so it shows that I'm late getting to the party. Despite the time passing it appears to only have great support in Chrome (This life best viewed in Chrome :p ).
The following constructor creates a shiny new AudioContext Object:
var audioContext = new webkitAudioContext();
/** | |
* Test multi-position color stops | |
*/ | |
background: red; | |
background: linear-gradient(45deg, green 0 50%, lime 50% 100%); | |
min-height: 100%; |
var string=(function () { | |
/* | |
Bleh Bleh | |
Meh | |
Huh | |
Works in FF and Chrome atleast, havent tried anywhere else | |
*/ | |
}).toString().split('\n').slice(2,-2).join('\n').trim(); |
#Linux GNOME | |
alias git-push="gnome-open 'http://www.youtube.com/watch?v=YleXlgHI1oM' && git push" | |
#OS X | |
alias git-push="open 'http://www.youtube.com/watch?v=YleXlgHI1oM' && git push" |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
For more information on how to configure your ASP.NET application, please visit | |
http://go.microsoft.com/fwlink/?LinkId=169433 | |
--> | |
<configuration> | |
<configSections> | |
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> | |
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> |
float getBPMVis(float bpm){ | |
// this function can be found graphed out here :https://www.desmos.com/calculator/rx86e6ymw7 | |
float bps = 60./bpm; // beats per second | |
float bpmVis = tan((time*PI)/bps); | |
// multiply it by PI so that tan has a regular spike every 1 instead of PI | |
// divide by the beat per second so there are that many spikes per second | |
bpmVis = clamp(bpmVis,0.,10.); | |
// tan goes to infinity so lets clamp it at 10 | |
bpmVis = abs(bpmVis)/20.; |
library(magick) | |
library(reshape2) | |
library(dplyr) | |
library(tidygraph) | |
library(particles) | |
library(animation) | |
plot_fun <- function(sim) { | |
df <- as_tibble(sim) | |
plot(df$x, df$y, col = df$color, pch = '.', axes = FALSE, xlim = c(-100, 317), ylim = c(-268, 100), xlab = NA, ylab = NA) |
In einem kleinen Dorf wohnte einst ein Mädchen mit dem Namen Barbara. | |
Barbara war in der ganzen Gegend für Ihren ausgezeichneten Rhabarberkuchen bekannt. | |
Weil jeder so gerne Barbaras Rhabarberkuchen aß, nannte man sie Rhabarberbarbara. | |
Rhabarberbarbara merkte bald, dass sie mit ihrem Rhabarberkuchen Geld verdienen könnte. | |
Daher eröffnete sie eine Bar: Die Rhabarberbarbarabar. |
.select-list { | |
position: relative; | |
&:after{ | |
content: "▼"; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
font-size: 60%; |