Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Furkanzmc's full-sized avatar
🏣
Working from the office

Furkan Üzümcü Furkanzmc

🏣
Working from the office
View GitHub Profile
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";
@Furkanzmc
Furkanzmc / draft_post.md
Last active June 14, 2021 00:39
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.

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>`,
{"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
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 / comparisons.h
Created September 2, 2018 17:43
DRY Multicomparisons
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 August 31, 2018 20:23
Patch for zxcvbn-c to make it work with Qt
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
swagger: 2.0
host: api.quantum.smeltzer.digital
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json
info:
@Furkanzmc
Furkanzmc / astyle.txt
Last active May 11, 2018 01:32
My favorite astyle configuration
--align-pointer=name
--align-reference=name
--convert-tabs
--mode=c
--pad-method-colon=after
--pad-header
--pad-method-prefix
--pad-oper
-A8
--unpad-paren
@Furkanzmc
Furkanzmc / youtubedl-download.bash
Created April 18, 2018 19:39
Download YouTube Videos from Text File
while read p; do youtube-dl --no-check-certificate -x --audio-format mp3 --audio-quality 1 $p; done <Nightcore.txt