Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.
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
[ | |
{ | |
"bindings": { | |
"cmd-shift-[": "pane::ActivatePrevItem", | |
"cmd-shift-]": "pane::ActivateNextItem", | |
"ctrl-pagedown": "pane::ActivatePrevItem", | |
"ctrl-pageup": "pane::ActivateNextItem", | |
"ctrl-shift-tab": "pane::ActivateNextItem", | |
"ctrl-tab": "pane::ActivatePrevItem", | |
"cmd-+": "zed::IncreaseBufferFontSize" |
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
/* | |
* par_build_tree.cpp | |
* | |
* Move this in the examples folder of Annoy and compile it like the other c++ example. | |
* | |
* Created on: Dec 6, 2023 | |
* Author: Clément Renault | |
*/ |
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
# Create an API KEY there: https://pushover.net/apps/build | |
# Find your user TOKEN here: https://pushover.net | |
# | |
# Note that the `title` field is optional and don't forget to put double quotes | |
# around your argument when calling this function. | |
# | |
# Here is a small example of pipping logs through pushover: | |
# | |
# nohup tail -f nohup.out | while read l; do pushover "$l"; done & | |
# |
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
{} |
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
//! A small program that computes the stats of an LMDB Meilisearch index. | |
//! | |
//! ```cargo | |
//! [dependencies] | |
//! anyhow = "1.0.71" | |
//! clap = { version = "4.3.5", features = ["derive"] } | |
//! heed = "0.20.0-alpha.1" | |
//! ``` | |
use std::path::PathBuf; |
We extract the movie titles along with the crew names and much more. You can also look at what BurntSushi have done for renaming series titles. The original IMDb datasets (TSVs) can be found on there official documentation.
We use the imdb-sqlite
python script to help us do that. The command line generates an SQLite database in the imdb.db
file.
pip install imdb-sqlite
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
#!/usr/bin/env bash | |
# usage: memlog.sh $(pidof PROCESS_NAME) [ PATH_FOLDER ] | |
# on osx pidof can be replaced by pgrep | |
# usage: memlog.sh $(pgrep PROCESS_NAME) [ PATH_FOLDER ] | |
set -e | |
PID=$1 |
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
fswatch --exclude '.git' --exclude 'target' . | while read num; do | |
rsync -azP --exclude=.git --exclude=target -e 'ssh -i ~/.ssh/id_rsa' . root@xxx.xxx.xxx.xxx:<DEST> | |
done |
NewerOlder