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
#define ag_ismi "Robot" | |
#define ag_sifresi "robot58." | |
int motor1 = 6; | |
int motor2 = 8; | |
int motor3 = 11; | |
int motorDelay = 800; | |
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
<html> | |
<head> | |
<title>Robot Kumanda</title> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> | |
<style> | |
.btn { | |
width:100px; | |
} | |
.row { |
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 int stepPinX = 3; | |
const int dirPinX = 4; | |
const int stepPinY = 5; | |
const int dirPinY = 6; | |
char data = 0; | |
void setup() { |
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
clear; | |
im = imread('kim.jpg'); | |
ig = rgb2gray(im); | |
[w, h] = size(ig); | |
in = ig; | |
% dinamik gelecek olan maske | |
mask = [1 1 1 ; 1 2 1 ; 1 1 1]; | |
c = size(mask); |
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
public class Difference { | |
public static void main(String[] args) { | |
int []array1 = {1,2,3,4,5}; | |
int []array2 = {4,5,6,7}; | |
System.out.print("The difference is {"); | |
difference(array1,array2); | |
difference(array2,array1); | |
System.out.println("}"); | |
} |
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
function getProducts(categoryId){ | |
let results; | |
connection.query('SELECT * FROM products WHERE category = ?', [categoryId], | |
function (error, products, fields) { | |
if (error) throw error; | |
for(let i = 0; i < products.length; i++){ | |
connection.query('SELECT image FROM productimages WHERE productID = ?', [products[i].productID], | |
function (error2, images, fields2){ | |
if (error2) throw error2; |