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
/* | |
* OpenSimplex (Simplectic) Noise in Java. | |
* (v1.0.1 With new gradient set and corresponding normalization factor, 9/19/14) | |
*/ | |
public class OpenSimplexNoise { | |
private static final double STRETCH_CONSTANT_3D = -1.0 / 6; | |
private static final double SQUISH_CONSTANT_3D = 1.0 / 3; | |
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
%.coffee: %.coffee.md | |
sed -n -e '/^ \{4\}/s/^ \{4\}//p' $< > $@ | |
%.js: %.js.md | |
sed -n -e '/^ \{4\}/s/^ \{4\}//p' $< > $@ | |
%.js: %.coffee | |
coffee -cb $< | |
all: multi-inherit.coffee multi-inherit.future.js | |
clean: |
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 React from 'react'; | |
import _ from 'underscore'; | |
var LIFECYCLE_EVENTS = [ | |
'componentWillMount', | |
'componentDidMount', | |
'componentWillReceiveProps', | |
'shouldComponentUpdate', | |
'componentWillUpdate', |
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
ReactDOM = require 'react/lib/ReactDOM' | |
ReactElement = require 'react/lib/ReactElement' | |
ReactElementValidator = require 'react/lib/ReactElementValidator' | |
SVGDOMPropertyConfig = require 'react/lib/SVGDOMPropertyConfig' | |
MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE | |
createFactory = if __DEV__ | |
ReactElementValidator.createFactory | |
else | |
ReactElement.createFactory |
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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.IdentityModel.Tokens; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; |
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
/* gcc gdk-gstappsrc-stream.c -Wall `pkg-config --cflags --libs gstreamer-app-0.10 gdk-pixbuf-2.0` -o gdkstream */ | |
#include <gst/gst.h> | |
#include <gst/app/gstappsrc.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <gdk-pixbuf/gdk-pixbuf.h> |
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
#!/bin/sh | |
# install docker | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
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
from __future__ import print_function | |
import glob | |
import sys | |
import time | |
import multiprocessing as mp, numpy as np, random | |
from prophesee_utils.td_video import ChronoVideo | |
import prophesee_utils.td_processing as tdp | |
import prophesee_utils.vis_utils as vis | |
import cv2 | |
from numba import njit as jit |