Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@helxsz
helxsz / hue-light.jsonld
Created February 17, 2017 04:07 — forked from dpjanes/hue-light.jsonld
JSON-LD Description of Hue Light
{
"@context": {
"@base": "file:///hue-light",
"@vocab": "file:///hue-light#",
"iot": "https://iotdb.org/pub/iot#",
"iot-attribute": "https://iotdb.org/pub/iot-attribute#",
"schema": "http://schema.org/"
},
"@id": "",
"@type": "iot:Model",
@helxsz
helxsz / ngrxintro.md
Created February 1, 2017 15:06 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@helxsz
helxsz / .block
Created January 12, 2017 10:57 — forked from mbostock/.block
Square Grid
license: gpl-3.0
@helxsz
helxsz / build.sh
Created November 29, 2016 07:15 — forked from vtajzich/build.sh
Install & compile script fro ffmpeg on raspberry pi
#!/bin/bash
function install_build_tools {
sudo apt-get install git
sudo apt-get install libasound2-dev
sudo apt-get install build-essential
sudo apt-get install make
sudo apt-get install autoconf
sudo apt-get install libtool
@helxsz
helxsz / git.md
Created October 24, 2016 04:13 — forked from suziewong/git.md
github的多人协作?how to 贡献代码?

github的多人协作

  1. github上你可以用别人的现成的代码 直接 git clone 即可了

  2. 然后你也想改代码或者贡献代码咋办?

Fork

@helxsz
helxsz / Install LT4 21.1.md
Created June 29, 2016 15:23 — forked from jetsonhacks/Install LT4 21.1.md
Install LT4 21.1 on Jetson TK1

For best results, you should read through the official NVIDIA documentation found on:

https://developer.nvidia.com/linux-tegra-rel-21

In particular, the Quick Start Guide.

For this process you will need:

  • A host desktop or laptop computer running Ubuntu Linux 12.04 is officially recommended. In practice, this may be a virtual machine, I have used VirtualBox in the past. Also, I've successfully flashed from Ubuntu Linux 14.04. Your mileage may vary.
  • Micro USB cable provided with the Jetson TK1 kit
  • Jetson TK1 and power supply
@helxsz
helxsz / 3_install_deeplearning_libs.sh
Created December 1, 2015 18:03 — forked from graphific/3_install_deeplearning_libs.sh
Installation script for Deep Learning Libraries on Ubuntu 14.04
#!/usr/bin/env bash
# Installation script for Deep Learning Libraries on Ubuntu 14.04, by Roelof Pieters (@graphific)
# BSD License
orig_executor="$(whoami)"
if [ "$(whoami)" == "root" ]; then
echo "running as root, please run as user you want to have stuff installed as"
exit 1
fi
###################################
@helxsz
helxsz / ReadCSVToDatum.txt
Created November 1, 2015 14:15 — forked from arunmallya/ReadCSVToDatum.txt
A function to load CSV data into a caffe datum
bool ReadCSVToDatum(const string& filename, Datum* datum) {
// read in the CSV file into a vector
fstream file(filename.c_str(), ios::in);
vector<vector<int> > label;
std::string line;
while (std::getline(file, line)) {
// replace commas with spaces
for (int i = 0; i < line.length(); i++) {
if (line[i] == ',')
line[i] = ' ';
@helxsz
helxsz / face_detection.py
Created October 21, 2015 18:53 — forked from erogol/face_detection.py
detect faces and show them on separate windows. You give the image path as an argument to that python script and see the magic.
from __future__ import division
import cv2
import cv2.cv as cv
import sys
import pdb
def detect(img, cascade):
rects = cascade.detectMultiScale(img, scaleFactor=1.1, minNeighbors=3, minSize=(10, 10), flags = cv.CV_HAAR_SCALE_IMAGE)
if len(rects) == 0:
return []