Skip to content

Instantly share code, notes, and snippets.

View redhog's full-sized avatar

Egil Möller redhog

View GitHub Profile
commit e65de1ad71d1f7a14a531c9ab6480208bc302f8d
Author: Ari Bader-Natal <ari.badernatal@gmail.com>
Date: Sun Apr 18 22:09:51 2010 -0700
visibility of author edit colors can now be toggled on timeslider.
diff --git a/etherpad/src/etherpad/control/pad/pad_control.js b/etherpad/src/etherpad/control/pad/pad_control.js
index 809407f..0a7bd45 100644
--- a/etherpad/src/etherpad/control/pad/pad_control.js
+++ b/etherpad/src/etherpad/control/pad/pad_control.js
commit dfe32495de824848a421acc9694c4c7051da211c
Author: Ari Bader-Natal <ari.badernatal@gmail.com>
Date: Mon Aug 2 21:58:55 2010 -0700
added audio clips to chat message and revision saved.
diff --git a/etherpad/src/static/js/pad_chat.js b/etherpad/src/static/js/pad_chat.js
index 6f0fb20..bf9ebed 100644
--- a/etherpad/src/static/js/pad_chat.js
+++ b/etherpad/src/static/js/pad_chat.js
<% var e = require("./eejs.js"); e.init(buf); %>
a
<% e.begin_block("bar"); %>
A
<% e.begin_block("foo"); %>
XX
<% e.end_block(); %>
B
<% e.end_block(); %>
@redhog
redhog / Results
Last active May 26, 2022 17:49
GL.bufferData and GL.drawArrays performance test
Data size: 1000 000 points times 2 coords + 3 color values:
Load time for 1 arrays of 1000000 points = 39.8480000148993
Load time for 10 arrays of 100000 points = 57.4979999801144
Load time for 100 arrays of 10000 points = 53.67699998896569
Load time for 1000 arrays of 1000 points = 184.61100000422448
Load time for 10000 arrays of 100 points = 1469.6359999943525
Draw time for 1 arrays of 1000000 points = 0.15499998698942363
Draw time for 10 arrays of 100000 points = 0.3859999997075647
FPS and (visual) for various datasetpointsnr and gl_PointSize:
points, size, fps
200 000, 20, 14
400 000, 20, 7
600 000, 20, 5
800 000, 20, 3
1 000 000, 20, 2
200 000, 10, 33
400 000, 10, 18
@redhog
redhog / Results
Created October 20, 2014 12:23
shader performance
sigma=0
ps, draws, points, fps
0.01, 1, 500 000, 8
0.01, 1, 400 000, 10
0.01, 1, 300 000, 12
0.01, 1, 200 000, 16
0.01, 1, 100 000, 33
0.005, 1, 500 000, 15
0.005, 1, 400 000, 18
console.log({
"centerChangedNr": visualization.animations.centerChangedNr,
"zoomChangedNr": visualization.animations.zoomChangedNr,
"boundsChangedNr": visualization.animations.boundsChangedNr,
"boundsChangedRealNr": visualization.animations.boundsChangedRealNr
});
@redhog
redhog / test-gme.html
Created October 23, 2014 14:07
Test GME problem
<!doctype html>
<html>
<head>
<title>VectorVisual</title>
<style>
body {
padding: 0;
}
</style>
@redhog
redhog / stats
Last active August 29, 2015 14:08
stats
>>> import pstats
>>> s = pstats.Stats("stats")
>>> s.sort_stats("cumtime")
<pstats.Stats instance at 0x227e758>
>>> s.print_stats(20)
Fri Nov 7 19:46:06 2014 stats
187322 function calls in 93.877 seconds
Ordered by: cumulative time