Skip to content

Instantly share code, notes, and snippets.

View CihatAltiparmak's full-sized avatar

CihatAltiparmak

View GitHub Profile
#include <iostream>
#include <new>
using namespace std;
class A {
public:
A(int, int);
void f();
# https://stackoverflow.com/a/67861019
import vlc
import tkinter as tk
root = tk.Tk()
frame = tk.Frame(root, width=700, height=600)
frame.pack()
#include <cstdio>
template <typename DType>
class A {
public:
template <typename... Rest>
A(DType, Rest...);
A(DType);
};
/*
* Kurbanı tam yatırdık kesecez, kaldırdı
* kafayı, "Trabzon neden bu kadar küçük?"
* diye sordu. Boğazım tutuldu, cevap
* veremedim. Koydu geri kafayı, "Trabzon
* kadar küçük bir takımla aynı dünyada
* bulunmak istemiyorum kesin abi beni"
* dedi. Mahvoldum şu an.
*
*/
/*
* Kurbanı tam yatırdık kesecez, kaldırdı
* kafayı, "Trabzon neden bu kadar küçük?"
* diye sordu. Boğazım tutuldu, cevap
* veremedim. Koydu geri kafayı, "Trabzon
* kadar küçük bir takımla aynı dünyada
* bulunmak istemiyorum kesin abi beni"
* dedi. Mahvoldum şu an.
*
*/
class Faction:
def __init__(self,
name,
num_of_units,
attack_point,
health_point,
unit_generation_num):
self.name = name
self.num_of_units = num_of_units
self.attack_point = attack_point
#include <string>
#include <iostream>
using namespace std;
class Faction {
public:
string name;
Faction* first_enemy;
@CihatAltiparmak
CihatAltiparmak / turtlebot_controller.py
Last active October 30, 2021 19:29
basic script written by me for understanding how to control turtlebot3 bot in gazebo
from geometry_msgs.msg import Twist
from sensor_msgs.msg import LaserScan, Image
import rospy
import cv_bridge
import cv2
class Stick:
def __init__(self):
self.cmd_vel_pub = rospy.Publisher('cmd_vel', Twist, queue_size = 10)
docker build -t ovatman/blg223 .

docker image ls


docker run -p 2222:22 --name blg223e --hostname blg223e -d ovatman/blg223

docker ps --all
/*
__ ___ .______ .______ ___ ____ ____
| | / \ | _ \ | _ \ / \ \ \ / /
| | / ^ \ | |_) | | |_) | / ^ \ \ \/ /
.--. | | / /_\ \ | / | _ < / /_\ \ \_ _/
| `--' | / _____ \ | |\ \----.| |_) | / _____ \ | |
\______/ /__/ \__\ | _| `._____||______/ /__/ \__\ |__|
-------------------------------------------------------------------------