Skip to content

Instantly share code, notes, and snippets.

View tiagoshibata's full-sized avatar

tiagoshibata

  • Microsoft
  • Redmond, WA
View GitHub Profile
commit 6fac225de0575b18550f9421196f90a2279c44af
Author: Tiago Koji Castro Shibata <tiago.shibata@gmail.com>
Date: Fri Dec 28 23:13:14 2018 -0200
Fix compilation with latest OpenCV
C APIs were removed and must be replaced with C++ calls
diff --git a/Makefile b/Makefile
index 63e15e6..c148d4b 100644
diff --git a/drivers/media/usb/uvc/Makefile b/drivers/media/usb/uvc/Makefile
index c26d12f..d86cf22 100644
--- a/drivers/media/usb/uvc/Makefile
+++ b/drivers/media/usb/uvc/Makefile
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
+CONFIG_MODULE_SIG=n
uvcvideo-objs := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o \
uvc_status.o uvc_isight.o uvc_debugfs.o uvc_metadata.o
ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity sort is port (
-- external interface
clk, reset: in STD_LOGIC;
n: in STD_LOGIC_VECTOR(3 downto 0);
sorted: out STD_LOGIC_VECTOR(31 downto 0)
); end;
@tiagoshibata
tiagoshibata / jetson-tx2-r28.1.config
Created December 7, 2017 21:51
Default R28.1 .config for Jetson TX2
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.4.38 Kernel Configuration
#
CONFIG_ARM64=y
# CONFIG_ARCH_TEGRA_210_SOC is not set
CONFIG_ARCH_TEGRA_APE=y
CONFIG_ARCH_TEGRA_18x_SOC_PRIVATE=y
CONFIG_ARCH_TEGRA_18x_SOC=y
CONFIG_ARCH_TEGRA_19x_SOC=y
Name: cub
Description: A flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming.
Requires:
Version: 1.7.4
Libs:
Cflags: -I/usr/include/cub
pkgname=cub
pkgver=1.7.4
pkgrel=1
pkgdesc="A flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming."
arch=('any')
url='http://nvlabs.github.com/cub/'
license=('New BSD')
makedepends=()
optdepends=('cuda')
t = input()
for _ in xrange(t):
y, k = map(int, raw_input().split())
print(y)
#!/bin/bash
set -e
if (( $# < 2 )) ; then
echo "Usage: $0 jetson_interface network_access_interface"
fi
if [ ! -f /etc/dhcpd.conf ] ; then
DHCPD_CONF="#option domain-name-servers 8.8.8.8, 8.8.4.4;
#option routers 10.8.0.1;
option subnet-mask 255.255.255.0;
package br.com.sistemadevendas.servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
FROM khaledhassan/simplescalar
MAINTAINER Tiago Koji Castro Shibata <tiago.shibata@gmail.com>
COPY simplesim-pisa-cross-endian.patch /simplescalar
RUN cd /simplescalar && patch -p1 < simplesim-pisa-cross-endian.patch
RUN cd /simplescalar/simplesim-3.0 \
&& find -maxdepth 1 -executable -type f -name 'sim-*' -printf '%P\n' | \
while read f ; do mv $f pisa-$f ; done
RUN cd /simplescalar/simplesim-3.0 && make clean && make config-pisabig && make \