Skip to content

Instantly share code, notes, and snippets.

Hajime Morrita omo

Block or report user

Report or block omo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View large.cc
const int large_size = 32*1024*1024;
const volatile int large[large_size] = {};
int main() {
for (int i = 0; i < large_size; i++) {
volatile int li = large[i];
}
return 0;
}
@omo
omo / vp.html
Last active Sep 30, 2015
More viewport experiment
View vp.html
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='initial-scale=1, width=device-width, height=device-height' />
<script>
window.addEventListener('load', function() {
var c = document.getElementById('console');
c.innerHTML = ("w=" + window.innerWidth + " h=" + window.innerHeight);
});
</script>
@omo
omo / correct.html
Last active Sep 29, 2015
Viewport experiments
View correct.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=5.0,width=200">
</head>
<body>
<div style='width: 100px; height: 100px; background-color:red;'>100x100</div>
<h1>Hello! I'm correct!</h1>
<div>The initial-scale should work. You sould see zoomed text (x5.0).</div>
</body>
@omo
omo / mojo-small.svg
Created Apr 15, 2015
IPC::Channel perf comparison
View mojo-small.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omo
omo / mp-12b.svg
Created Mar 24, 2015
Message Pipe benchmark Flame graphs
View mp-12b.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mp-12b.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omo
omo / link.txt
Last active Aug 29, 2015
Title Dialog
View link.txt
View perf_small_hack.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omo
omo / counts.py
Created Feb 3, 2015
counts.py w/ Pandas
View counts.py
import pandas as pd
import json
import sys
import datetime as dt
data = json.load(open(sys.argv[1]))
df = pd.DataFrame(data["entries"])
df['date'] = pd.to_datetime(df['date'])
You can’t perform that action at this time.