Skip to content

Instantly share code, notes, and snippets.

/**
* Usage:
* phantomjs screenshot.js http://google.de /pi/a.png
*/
var page = require('webpage').create(),
system = require('system');
page.viewportSize = { width: 1280, height: 800 };
if (system.args.length === 1) {
tar xfvz [ARCHIV].tar.gz
tar xfvj [ARCHIV].tar.bz2
tar xfvJ [ARCHIV].tar.xz
tar xfv [ARCHIV].tar
unzip [ARCHIV].zip
<!-- Organisations Logo -->
<div itemscope itemtype="http://schema.org/Organization">
<a itemprop="url" href="http://www.example.com/">Startseite</a>
<img itemprop="logo" src="http://www.example.com/logo.png" />
</div>
Scene scene = new Scene(new Group(new Text(10,10, "My Window")));
Stage stage = new Stage();
stage.setScene(scene);
stage.show();
public static void main(String[] args) {
System.out.println("Welcome to OpenCV " + Core.VERSION);
System.loadLibrary("libs/x64-" + Core.NATIVE_LIBRARY_NAME);
VideoCapture vc = new VideoCapture(0); // Funktioniert auch wenn man die NUmmer einer nicht vorhanden Webcam eingibt!
if (!vc.isOpened()) {
System.out.println("Auf Webcam konnte nicht zugeriffen werden");
System.exit(1);
}
#include <stdio.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main( int argc, char** argv ) {
Mat image;
image = imread( argv[1], 1 );
mkdir opencv-build
cd opencv-build
git clone https://github.com/Itseez/opencv.git
cd opencv
cmake .
make
sudo make install
@b-oern
b-oern / hw.sh
Last active December 17, 2015 18:29
// wget https://gist.github.com/b-oern/5654064/raw/927314608acb75a1f91be64a05111e77f26636d8/hw.sh ; chmod +x hw.sh ; sh hw.sh
echo "Hallo Welt"
sudo apt-get install build-essential cmake git-core libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev
cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
find_package( OpenCV REQUIRED )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )