Skip to content

Instantly share code, notes, and snippets.

View eroberer's full-sized avatar

Fatih Şimşek eroberer

View GitHub Profile
#define ag_ismi "Robot"
#define ag_sifresi "robot58."
int motor1 = 6;
int motor2 = 8;
int motor3 = 11;
int motorDelay = 800;
<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 {
const int stepPinX = 3;
const int dirPinX = 4;
const int stepPinY = 5;
const int dirPinY = 6;
char data = 0;
void setup() {
@eroberer
eroberer / dinamikMaske.m
Created November 21, 2017 21:36
Görüntü İşleme - Dinamik Maske ile kontrast azaltma
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);
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("}");
}
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;