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
#pragma GCC optimize ("O3") | |
#pragma GCC target ("sse4") | |
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long ll; | |
typedef unsigned long long ull; |
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
{"lastUpload":"2024-10-08T01:20:53.886Z","extensionVersion":"v3.4.3"} |
- https://tails.boum.org/doc/first_steps/reset/windows/index.en.html
- Don't forget to FORMAT your USB after doing resetting the USB
TL;DR:
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
/** | |
Graph implementation (edges) (look at example 2): | |
https://www.techiedelight.com/graph-implementation-using-stl/ | |
C++ containers: | |
https://en.cppreference.com/w/cpp/container | |
N = max(N, max(a, b)) | |
foo = (foo + bar + const) % const |
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
{ | |
"settingsVersion": "1.66", | |
"exclusionRules": [ | |
{ | |
"pattern": "https?://mail.google.com/*", | |
"passKeys": "" | |
}, | |
{ | |
"pattern": "http://127.0.0.1:5050/", | |
"passKeys": "" |
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
/** | |
* see https://xstate.js.org/viz/?gist=543eafd14d94ee75901e7bfdb065b9ae | |
*/ | |
// xs::StateMachine robotoBusena = { | |
const machine = Machine({ | |
id: "roboto-busena", | |
initial: "pradine", | |
on: {}, | |
states: { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>JS Crash Course</title> | |
</head> | |
<body> | |
<header> |
What I do myself & highly recommend too:
Use feature branches for features
Once the feature is done, rebase it to origin/master
Then merge it into master with --no-ff
to intentionally create a merge commit.
This produces a very clean commit history - you know which commits came from a specific feature branch, and which ones were commited straight into master.
Take a look at my recent project as an example -- https://github.com/sarpik/turbo-schedule
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
/** | |
* | |
* part 1 | |
* | |
* @param {string} input | |
* @returns {number} length of the polymer after all resulting reactions | |
*/ | |
function alchemicalReduction(input) { | |
let lastAnswer = -1; |
OlderNewer