Skip to content

Instantly share code, notes, and snippets.

@primiano
primiano / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="home-automation">
<template>
<style>
:host {
@primiano
primiano / traceinspect.py
Created June 26, 2015 10:06
Dump memory-infra traces
#!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import sys
def main():
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/spi/spi.h>
struct task_struct* worker;
static struct spi_device* spi_dev = NULL;
#define BUF_SIZE 512
// Working example of 25 MHz SPI on Intel Edison using DMA
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/spi/spi.h>
#include <linux/interrupt.h>
#define BUF_SIZE 4096
This file has been truncated, but you can view the full file.
From 27d3d7accb6d003ff5e2d70bd3a6cdf6901e4d75 Mon Sep 17 00:00:00 2001
From: Primiano Tucci <[email protected]>
Date: Mon, 14 Sep 2015 09:09:04 +0100
Subject: [PATCH] Issue 1323333002: Move libvpx from DEPS to src
---
.gitignore | 2 +-
DEPS | 5 +-
WATCHLISTS | 5 +
third_party/libvpx/BUILD.gn | 276 ++
$ curl -q https://storage.googleapis.com/primiano-misc/cl_1323333002_ps2.bundle -o /tmp/bundle
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 69460 100 69460 0 0 73411 0 --:--:-- --:--:-- --:--:-- 73424
$ git fetch /tmp/bundle cl_1323333002_ps2:cl_1323333002_ps2
From cl_1323333002_ps2.bundle
* [new branch] cl_1323333002_ps2 -> cl_1323333002_ps2
git checkout -b master 9a9b1cf7727c20cb42bfb4012dee0c55c6fd572d
git cherry-pick 70e938fdf048b4efb436ed6bf8a1b194528870c9
git diff-tree HEAD 0304cef02:source/libvpx/ -r
:100644 100755 907b47318de1301e32048da5626e515dea33786e 907b47318de1301e32048da5626e515dea33786e M build/make/configure.sh
:100644 100755 90c14888c24be28410eb1d41b084780d2ae5d70a 90c14888c24be28410eb1d41b084780d2ae5d70a M build/make/msvs_common.sh
:100644 000000 9ca86e5e5882ec4ad4381944e4be13b29fb2db34 0000000000000000000000000000000000000000 D vp10/common/alloccommon.c
:100644 000000 5cfe6602d3efbb8a2cbcca8e5a3776be2d59ab47 0000000000000000000000000000000000000000 D vp10/common/alloccommon.h
:100644 000000 bd3e8b30f4098cea0485f1f16bd8b80c90aadc7e 0000000000000000000000000000000000000000 D vp10/common/arm/neon/iht4x4_add_neon.c
:100644 000000 82d7ccc612ea9cf1c02ac35c94df9e78b2c3e2f9 0000000000000000000000000000000000000000 D vp10/common/arm/neon/iht8x8_add_neon.c
#!/bin/bash
set -x
set -e
if [ "$(git status -s --untracked-files=no)" != "" ]; then
echo "You have unstaged changes. bail out"
exit 1
fi
function check_configuration {
CFGNAME="$1"
rmdir /Q /S out
mkdir out
call git -C out init
call git checkout --quiet @{upstream}
call python build\gyp_chromium
rmdir /Q /S out\gypfiles
del out\Debug\build.ninja
del out\Release\build.ninja
del out\Debug_x64\build.ninja
del out\Release_x64\build.ninja
@echo ON
set GYP_MSVS_VERSION=2015
echo MSVS2015_SHARED
set GYP_DEFINES=component=shared_library
call tools\ninja_diff.bat
del win_vs2015_shared.diff
ren win.diff win_vs2015_shared.diff
echo MSVS2015_STATIC