Skip to content

Instantly share code, notes, and snippets.

View nazrdogan's full-sized avatar
🎯
Busy

Nazır Doğan nazrdogan

🎯
Busy
View GitHub Profile
@nazrdogan
nazrdogan / array
Created November 22, 2013 12:01
Array element
#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)
@nazrdogan
nazrdogan / three1.html
Created November 22, 2013 18:13
Three.js Başlangıç
<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>
@nazrdogan
nazrdogan / scene.js
Last active December 29, 2015 02:59
Three.js Sahne oluşturma
//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 );
@nazrdogan
nazrdogan / hellothreejs.html
Last active December 29, 2015 02:59
Three.js Merhaba dünya
<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);
@nazrdogan
nazrdogan / firefoxindex.html
Last active December 29, 2015 03:09
Firefox index.html
<!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>
@nazrdogan
nazrdogan / ledldr.c
Created November 26, 2013 09:48
EP486 1.soru- led ,ldr ,lcd
int led=13;
int ldr=A0;
int potpin=2;
void setup() {
Serial.begin(9600);
pinMode(13,OUTPUT);
}
@nazrdogan
nazrdogan / arduinoelevator.c
Last active December 29, 2015 13:19
Arduino Elevator
#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;
@nazrdogan
nazrdogan / qtmysql.cpp
Last active December 30, 2015 04:59
QT and Database Connection
#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();
@nazrdogan
nazrdogan / virtualbox-1
Created December 12, 2013 19:28
ubuntu virtualbox yükleme
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list'
@nazrdogan
nazrdogan / solartracker.c
Created December 22, 2013 20:30
Arduino Solar tracker
int LDR1 = A0;
int LDR2 = A1;
int LDR3 = A2;
int LDR4 = A3;
int pos = 30;
int a=0;
int motorPin1 = 8;