This file contains hidden or 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
package javacv; | |
import java.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.CropImageFilter; | |
import java.awt.image.FilteredImageSource; | |
import java.io.File; | |
import java.net.URL; | |
import java.rmi.server.RemoteObjectInvocationHandler; |
This file contains hidden or 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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Locale; | |
public class Main { | |
public static void main(String[] args) throws IOException { | |
Locale.setDefault(Locale.US); | |
InputStreamReader ir = new InputStreamReader(System.in); | |
BufferedReader in = new BufferedReader(ir); |
This file contains hidden or 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
package javacv; | |
import static org.bytedeco.javacpp.opencv_core.IPL_DEPTH_8U; | |
import static org.bytedeco.javacpp.opencv_core.cvCreateImage; | |
import static org.bytedeco.javacpp.opencv_core.cvFlip; | |
import static org.bytedeco.javacpp.opencv_core.cvGetSize; | |
import static org.bytedeco.javacpp.opencv_core.cvInRangeS; | |
import static org.bytedeco.javacpp.opencv_core.cvScalar; | |
import static org.bytedeco.javacpp.opencv_highgui.cvSaveImage; | |
import static org.bytedeco.javacpp.opencv_imgproc.CV_BGR2GRAY; |
This file contains hidden or 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 org.bytedeco.javacpp.Loader; | |
import org.bytedeco.javacpp.opencv_core.CvMemStorage; | |
import org.bytedeco.javacpp.opencv_core.CvPoint2D32f; | |
import org.bytedeco.javacpp.opencv_core.CvSeq; | |
import org.bytedeco.javacpp.opencv_core.CvSize2D32f; | |
import org.bytedeco.javacpp.opencv_core.IplImage; | |
import org.bytedeco.javacv.CanvasFrame; | |
import org.bytedeco.javacv.OpenCVFrameGrabber; | |
import static org.bytedeco.javacpp.opencv_core.*; |
This file contains hidden or 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
<?php | |
define("STEAM_ID_UPPER_32_BITS", "00000001000100000000000000000001"); | |
// gets the lower 32-bits of a 64-bit steam id | |
function GET_32_BIT ($ID_64) { | |
$upper = gmp_mul( bindec(STEAM_ID_UPPER_32_BITS) , "4294967296" ); | |
return gmp_strval(gmp_sub($ID_64,$upper)); | |
} | |
// creates a 64-bit steam id from the lower 32-bits |
This file contains hidden or 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
<link href="../core-icon-button/core-icon-button.html" rel="import"> | |
<link href="../core-toolbar/core-toolbar.html" rel="import"> | |
<link href="../core-header-panel/core-header-panel.html" rel="import"> | |
<link href="../paper-tabs/paper-tabs.html" rel="import"> | |
<link href="../paper-tabs/paper-tab.html" rel="import"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
This file contains hidden or 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 node:4.3.2 | |
RUN useradd --user-group --create-home --shell /bin/false app &&\ | |
npm install --global [email protected] | |
ENV HOME=/home/app | |
COPY package.json npm-shrinkwrap.json $HOME/library/ | |
RUN chown -R app:app $HOME/* |
This file contains hidden or 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: '2' | |
services: | |
library: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
command: node_modules/.bin/nodemon --exec npm start | |
environment: | |
NODE_ENV: development | |
ports: |
This file contains hidden or 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: '2' | |
services: | |
library: | |
build: . | |
environment: | |
NODE_ENV: production | |
ports: | |
- '3000:3000' |
This file contains hidden or 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
const loop = (gen, interval) => { | |
const point = gen.next(); | |
if(!point.done) { | |
return setTimeout(() => { | |
console.log(point.value); | |
loop(gen, interval); | |
}, interval); | |
} else { | |
console.log('done'); |
OlderNewer