- Board: jj-40 v1.5 (QMK compatible)
- Switches: Zealios 62g
- Caps: DSA blanks
- Case: KPrepublic Aluminium
#include <atomic> | |
#include <chrono> | |
#include <condition_variable> | |
#include <deque> | |
#include <future> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
#include <vector> |
While many remember the epic hyperHTML: A Virtual DOM Alternative post
I've published the 5th of March 2017,
the first official implementation
of the library was working as hyperHTML.bind(node)
function for tagged literals the day before, and it's been in my experiments folder already for a little while.
At first glance people couldn't believe performance of the DBMonster demo shown in that article,
#include <SFML/Graphics/Transform.hpp> | |
#include <SFML/System/Vector2.hpp> | |
#include <iostream> | |
int main() { | |
// First we'll need a vector to tranform | |
sf::Vector2f myVector(2, 0); | |
std::cout << "myVector: " << myVector.x << ", " << myVector.y << "\n"; | |
// Then the actual transform |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
- The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.
Translations: (No guarantee that the translations are up-to-date)
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
// SPDX-FileCopyrightText: 2015 Marek Rusinowski | |
// SPDX-License-Identifier: MIT | |
#include <memory> | |
#include <cstdio> | |
template<typename F> | |
class defer_finalizer { | |
F f; | |
bool moved; | |
public: |
7th-order spline and first three derivatives | |
f(t) = a_7 t^7+a_6 t^6+a_5 t^5+a_4 t^4+a_3 t^3+a_2 t^2+a_1 t+a_0 | |
f'(t) = 7 a_7 t^6+6 a_6 t^5+5 a_5 t^4+4 a_4 t^3+3 a_3 t^2+2 a_2 t+a_1 | |
f''(t) = 42 a_7 t^5+30 a_6 t^4+20 a_5 t^3+12 a_4 t^2+6 a_3 t+2 a_2 | |
f'''(t) = 210 a_7 t^4+120 a_6 t^3+60 a_5 t^2+24 a_4 t+6 a_3 | |
Constraints | |
f(0) = 0 = a_0 | |
f(1) = 1 = a_7 + a_6 + a_5 + a_4 + a_3 + a_2 + a_1 + a_0 | |
f'(0) = 0 = a_1 |
#!/usr/bin/env python | |
import i3 | |
outputs = i3.get_outputs() | |
workspaces = i3.get_workspaces() | |
# figure out what is on, and what is currently on your screen. | |
workspace = list(filter(lambda s: s['focused']==True, workspaces)) | |
output = list(filter(lambda s: s['active']==True, outputs)) |