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
cmake_minimum_required(VERSION 3.2) | |
project(niftytodicom) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ") #-std=c++11 -fpermissive | |
find_package(ITK REQUIRED) | |
include(${ITK_USE_FILE}) | |
set(SOURCE_FILES main.cpp) | |
add_executable(niftytodicom ${SOURCE_FILES}) |
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
namespace DependencyInjection | |
{ | |
public interface IMotor { } | |
public class Motor : IMotor { } | |
public class Auto | |
{ | |
private IMotor motor; | |
public Auto(IMotor motor) | |
{ |
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
#include <Servo.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
// enter mac, ip, gateway and subnet mask | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress ip(192,168,2, 177); | |
IPAddress gateway(192,168,2, 1); | |
IPAddress subnet(255, 255, 255, 0); |
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 processing.opengl.*; | |
PImage[] textures = new PImage[6]; | |
float rotx = PI/4; | |
float roty = PI/4; | |
float transx = 0; | |
float transy = 0; | |
void setup() |
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
PImage picture1; | |
PImage picture2; | |
void setup() { | |
size(600, 400); | |
picture1 = loadImage("color.jpg"); | |
picture2 = loadImage("watch.jpg"); | |
// resize them | |
picture1.resize(width, height); |
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
PImage img; | |
void setup() { | |
size(150, 200); | |
noLoop(); | |
img = loadImage("kaefer.png"); | |
} | |
void draw() { | |
image(img, 0, 0); |
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 ddf.minim.*; | |
import ddf.minim.signals.*; | |
import ddf.minim.analysis.*; | |
import ddf.minim.effects.*; | |
boolean isPlaying = false; | |
String filename; | |
AudioOutput out; | |
AudioPlayer song; |
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
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define OFFSET 97 | |
int main(int argc, char* argv[]) | |
{ | |
char* klartext; | |
char* geheimtext; |
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 processing.video.*; | |
int width = 200; | |
int height = 200; | |
int frames = 18; | |
String filename = "example.mov"; | |
MovieMaker mm; | |
void setup(){ | |
size(width, height); |
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
// synchronous way | |
private void Synchronous() | |
{ | |
WebClient proxy = new WebClient(); | |
string result = proxy.DownloadString("http://tel.search.ch/?wo=luzern"); | |
} | |
// with backgroundworkers | |
private void Background() | |
{ |