Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Furkan Üzümcü Furkanzmc

🏠
Working from home
View GitHub Profile
@Furkanzmc
Furkanzmc / draft_post.md
Last active Jun 14, 2021
draft_post.md
View draft_post.md

The Story of GUI Development (WIP Title)

The history of GUI development is almost as old as computers. In the late 30s, Vannevar Bush envisioned a electromechanical device called Memex which would contain an individual's books, records, communications, and associate trails of links and personal annotations. Bush envisioned it as looking like a desk with two touch screen graphical displays, a keyboard, and a scanner attached to it. This is essentially a tablet as we think of it today. Bush gave details his idea in an article titled As We May Think.

View cpp-result-point-move.cpp
struct Point {
int x;
int y;
Point() : x{0}, y{0} { std::clog << "Point()\n"; }
Point(int _x, int _y) : x{_x}, y{_y} {
std::clog << "Point(int _x, int _y)\n";
}
Point(const Point &other) : x{other.x}, y{other.y} {
std::clog << "Point(const Point&)\n";
View command_complete.yaml
name: Git
version: "1.0.0"
author: "Jane Doe <jane@doe.com>"
about: Git Command Completion
arguments:
- name: branch
short: br
long: branch
# optional_arguments are completed by the engine based on the input text.
# These fields are static. For example, when you type `git branch -<TAB>`,
View gist:74880ab09ded9136f94bec8dd602576c
{"info": {"version": "0.4.5", "description": "This is the documentation for the Cuz Translation API.\n\nThe test link is this: http://cuz-test-dot-cuz-tech.appspot.com\n\n# Pricing Model\n\nFor a complete look at how pricing works in Cuz Translation, refer to\n[this document](https://docs.google.com/document/d/1XecuE66ypPIizv1Jg8i4LAzPWP1A1AZ_IHFPv6ncFWw/).\n\n## Pricing Workflow\n\nThere are two ways to get the price of a job.\n\n- Use the '/jobs/price/' endpoint and specify the job specifications\n without creating the job.\n- Create the job and then use '/jobs/price/' to get the price.\n\nThe following criteria will affect the price of a job:\n\n- Job nature (For document jobs).\n- Source language.\n- Target language.\n- Certification type.\n- Job distance (For on-site jobs).\n\nOn-site jobs and document jobs will have a base price and each of these\nfactors will increase the base price by a factor either specified in\nthe `PriceModel` or the `Nature`'s `multiplier` field.\n\nEach of these factors will ha
View gist:ed29e9044816df9701d4ef5fb2969f01
swagger: '2.0'
produces:
- application/json
securityDefinitions:
apiKey:
in: header
type: apiKey
description: Make sure to include `JWT` prefix when typing your API key in the dialog
name: Authorization
host: api.cuz.ca
@Furkanzmc
Furkanzmc / BodyTracking.cpp
Last active Jul 18, 2019
Body Tracking with Kinect v2 C++
View BodyTracking.cpp
#include <Kinect.h>
#include <iostream>
void processBodies(const unsigned int &bodyCount, IBody **bodies);
template<class Interface>
static inline void safeRelease(Interface *&interfaceToRelease)
{
if (interfaceToRelease != nullptr) {
interfaceToRelease->Release();
interfaceToRelease = nullptr;
@Furkanzmc
Furkanzmc / FindKinectSDKv2.cmake
Created May 22, 2015
Cmake file to find Kinect SDK v2 library on Windows
View FindKinectSDKv2.cmake
set(KinectSDK2_FOUND OFF CACHE BOOL "Kinect 2.x SDK found")
set(KINECTSDK20_DIR "NOT FOUND" CACHE PATH "Kinect 2.x SDK path")
if(WIN32)
if(EXISTS $ENV{KINECTSDK20_DIR})
message(KINECT_FOUND)
set(KinectSDK2_FOUND ON CACHE BOOL "Kinect 2.x SDK found" FORCE)
set(KinectSDK2_DIR $ENV{KinectSDK2_DIR} CACHE PATH "Kinect 2.x SDK path" FORCE)
if(EXISTS $ENV{KINECTSDK20_DIR}/inc)
set(KinectSDK2_INCLUDE_DIRS $ENV{KINECTSDK20_DIR}/inc)
@Furkanzmc
Furkanzmc / comparisons.h
Created Sep 2, 2018
DRY Multicomparisons
View comparisons.h
template <typename Type, typename ComparisonFunc = std::equal_to<Type>>
class is
{
public:
constexpr is(Type t)
: m_Value(std::move(t))
{}
bool any_of(const std::initializer_list<Type> &list) const
{
@Furkanzmc
Furkanzmc / zxcvbn-qt.patch
Created Aug 31, 2018
Patch for zxcvbn-c to make it work with Qt
View zxcvbn-qt.patch
diff --git a/zxcvbn.c b/zxcvbn.c
index ebe9e31..5b2dcf3 100644
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -41,6 +41,7 @@
#include <stdio.h>
#else
#include <fstream>
+#include <QFile>
#endif
View asd.yaml
swagger: 2.0
host: api.quantum.smeltzer.digital
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json
info: