Skip to content

Instantly share code, notes, and snippets.

View xmfcx's full-sized avatar

M. Fatih Cırıt xmfcx

  • Autoware Foundation
  • Turkey
  • 21:55 (UTC +03:00)
View GitHub Profile
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="9">
<tracklets class_id="0" tracking_level="0" version="0">
<count>1</count>
<item_version>1</item_version>
<item class_id="1" tracking_level="0" version="1">
<objectType>Car</objectType>
<h>1.651000</h>
<w>1.778000</w>
@xmfcx
xmfcx / Voice-Controlled-IoT.md
Last active January 6, 2022 14:06
OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

This is a tutorial to realize following video: https://www.youtube.com/watch?v=PBiOGvJRPqg

Requirements:

  • Android phone Marsmallow or higher or Apple phone (for google assistant)
  • IFTTT app
  • Blynk app
  • Arduino UNO
  • ESP8266 Wifi module
@xmfcx
xmfcx / hello-world.cpp
Created April 10, 2017 13:11
Gist created by fiddle.jyt.io
// Jyt is a REPL for C++
// You can write code interactively
// Highlight some code and press alt-enter to execute it
// For example:
auto x = "hello world";
// Now you can query the value in the terminal on the right
// e.g. "x"
@xmfcx
xmfcx / Civs-for-Techs.py
Last active May 7, 2016 15:34
Civs for Techs
civsBombardTower = ["Byzantines",
"Chinese",
"Italians",
"Koreans",
"Spanish",
"Teutons",
"Turks"]
civs = ["Aztecs",
DataTable dt = new DataTable();
myDataGridView.DataSource = dt;
dt.Columns.Add("Time Column", typeof (DateTime));
dt.Rows.Add(DateTime.Now);
/*
I need to show it on dataGridView through
DateTime.ToString("dd/MMM/yyyy") format
but how?
class TheClass
{
public int Val1;
public int Val2;
public int Val3;
public TheClass Old;
public void Remember()
{
Old = new TheClass();
class TheClass
{
public int Val1;
public TheClass Old;
public void Remember()
{
Old = (TheClass)MemberwiseClone();
}
}
@xmfcx
xmfcx / gist:be93511b955d439c54cb
Last active August 29, 2015 14:23
I want Class to remember the old values but it updates them :(
class TheClass
{
public int Val1;
public TheClass Old;
}
class Program
{
static void Main(string[] args)
{
TheClass aClass = new TheClass();
static public int UnProject(Vector3 win, Matrix4 modelMatrix,
Matrix4 projMatrix, int[] viewport, ref Vector3 obj)
{
return gluUnProject(win.X, win.Y, win.Z, modelMatrix,
projMatrix, viewport, ref obj.X, ref obj.Y, ref obj.Z);
}
static int gluUnProject(float winx, float winy, float winz,
Matrix4 modelMatrix, Matrix4 projMatrix, int[] viewport,
ref float objx, ref float objy, ref float objz)