View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=g++ | |
CXXFLAGS=-O2 -fopenmp -g -mavx -march=native -I/opt/intel/composerxe/ipp/include -Iinclude/eigen3 | |
LDFLAGS = -lgomp -lipps -lippm | |
all: main.o testAVX.o testAVX.h | |
$(CC) $(LDFLAGS) main.o -o kernel | |
main.o: main.cpp testAVX.h | |
$(CC) $(CXXFLAGS) -c main.cpp |
View perlin-noise-classical.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
View gist:8937398
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/xpcom/threads/nsTimerImpl.cpp b/xpcom/threads/nsTimerImpl.cpp | |
--- a/xpcom/threads/nsTimerImpl.cpp | |
+++ b/xpcom/threads/nsTimerImpl.cpp | |
@@ -9,16 +9,19 @@ | |
#include "nsAutoPtr.h" | |
#include "nsThreadManager.h" | |
#include "nsThreadUtils.h" | |
#include "plarena.h" | |
#include "pratom.h" | |
#include "GeckoProfiler.h" |
View predictor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mp | |
import matplotlib.pylab | |
import numpy | |
import sys | |
import simplejson as json | |
from scipy import stats | |
from urllib.request import urlopen | |
sample_unit = None |
View mainthreadio.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exploratory analysis hackjob for Mainthread-IO data | |
library(data.table) | |
library(ggplot2) | |
library(doMC) | |
registerDoMC(8) | |
############################################################ | |
# High frequency files analysis | |
############################################################ |
View forecast.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(forecast) | |
library(ggplot2) | |
library(dplyr) | |
predictions = as.factor(read.csv('results.csv')$Prediction) | |
levels(predictions) <- c("ok", "drop") | |
submissions <- read.csv('submissions.csv')$Submissions | |
submissions <- msts(submissions, seasonal.periods=c(24, 7*24), ts.frequency=24) |
View gist:b7ff051a1a122330288d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
View addons.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def map(k, d, v, cx): | |
j = json.loads(v) | |
try: | |
addons = j['info']['addons'] | |
except: | |
return |
View filter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"dimensions": [ | |
{ | |
"field_name": "reason", | |
"allowed_values": ["saved-session"] | |
}, | |
{ | |
"field_name": "appName", | |
"allowed_values": "Firefox" |
View gist:e2c13df2edbf07482192
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# Parent a4dcfbebcb588b9893900152eb512c3810880d68 | |
# User Roberto A. Vitillo <rvitillo@mozilla.com> | |
Bug 559505 - localstore.rdf kills ponies; r=enn | |
diff --git a/b2g/installer/package-manifest.in b/b2g/installer/package-manifest.in | |
--- a/b2g/installer/package-manifest.in | |
+++ b/b2g/installer/package-manifest.in | |
@@ -290,16 +290,17 @@ | |
@BINPATH@/components/shellservice.xpt |
OlderNewer