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<iostream> | |
using namespace std; | |
int test [5] = { 0, 0, 0, 0, 0 }; | |
int main(){ | |
for (int n=0; n<5; n++){ | |
if(test[n]==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
<html> | |
<head> | |
<title>My first Three.js app</title> | |
<style>canvas { width: 100%; height: 100% }</style> | |
</head> | |
<body> <script src="https://rawgithub.com/mrdoob/three.js/master/build/three.js"></script> | |
<script> | |
//Kodumuzu buraya yazacağız.. | |
</script> |
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
//burda sahnemizi oluşturuyoruz | |
var scene = new THREE.Scene(); | |
//burda camerayı oluşturuyoruz. | |
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); | |
//burda WebGL renderer oluşturuyoruz. | |
var renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight ); | |
document.body.appendChild( renderer.domElement ); |
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
<html> | |
<head> | |
<title>My first Three.js app</title> | |
<style>canvas { width: 100%; height: 100% }</style> | |
</head> <body> <script src="three.min.js"></script> | |
<script> var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); | |
var renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); | |
document.body.appendChild(renderer.domElement); | |
var geometry = new THREE.CubeGeometry(1,1,1); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Merhaba dünya</title> | |
<link rel="stylesheet" href="css/main.css"> | |
</head> | |
<body> | |
<article class="content"> | |
<h1>Hello World <br>Firefox OS</h1> |
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
int led=13; | |
int ldr=A0; | |
int potpin=2; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(13,OUTPUT); | |
} |
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 <Stepper.h> | |
Servo myservo; | |
int pos = 0; | |
#define STEPS 100 | |
const int buttonPin =17; | |
Stepper stepper(STEPS, 8, 9, 10, 11); | |
int previous = 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
#include <QtGui> | |
#include <QtSql> | |
#include<QTableView> | |
#include <QApplication> | |
#include<QTableWidget> | |
#include<QMessageBox> | |
int main(int argc,char* argv[]) | |
{ | |
QApplication app(argc,argv); | |
QTableWidget* table = new QTableWidget(); |
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
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list' |
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
int LDR1 = A0; | |
int LDR2 = A1; | |
int LDR3 = A2; | |
int LDR4 = A3; | |
int pos = 30; | |
int a=0; | |
int motorPin1 = 8; |