KeyASCII | ASCII | Common Name |
---|---|---|
K_BACKSPACE | \b | backspace |
K_TAB | \t | tab |
K_CLEAR | clear | |
K_RETURN | \r | return |
K_PAUSE | pause | |
K_ESCAPE | ^[ | escape |
K_SPACE | space | |
K_EXCLAIM | ! | exclaim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import string | |
import random | |
syllable_patterns = [ | |
# _ => consonant | |
# -, + => vowel | |
"_-" | |
, "_-+" | |
, "__-" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.8) # using the latest version atm | |
project(project_name) | |
set(LIB_NAME lib_${PROJECT_NAME}) | |
if (CMAKE_BUILD_TYPE MATCHES Debug) | |
if (CMAKE_COMPILER_IS_GNUCXX) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg -g -no-pie") | |
elseif (MSVC) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MTd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
ADDED_WORDS = "added".split(' ') | |
CHANGED_WORDS = "updated changed enhanced".split(' ') | |
REMOVED_WORDS = "removed deleted".split(' ') | |
NAMES = ['added', 'changed', 'removed', 'unclassified changes'] | |
def get_msg_type(msg): |
I hereby claim:
- I am SuperFola on github.
- I am superfola (https://keybase.io/superfola) on keybase.
- I have a public key whose fingerprint is BCA1 F845 E043 2EF2 E9D9 839B 95F9 CA97 C6D4 91AD
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <functional> | |
class Edge | |
{ | |
public: | |
Edge(int s, int d, int w) : | |
m_s(s), m_d(d), m_w(w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <future> | |
#include <vector> | |
#include <array> | |
#include <numeric> // needed for the std::iota part of the example | |
using VecIt = std::vector<int>::iterator; | |
int task(std::size_t task_id, VecIt begin, std::size_t count) | |
{ |