Skip to content

Instantly share code, notes, and snippets.

@jlblancoc
jlblancoc / gtsam-serialization-example.cpp
Created October 6, 2020 06:50
GTSAM factor graph serialization example
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <fstream>
#include <gtsam/base/serialization.h>
// ... Includes for your values and factors:
#include <gtsam/base/GenericValue.h> // GTSAM_VALUE_EXPORT
#include <gtsam/geometry/Pose2.h>
@OroArmor
OroArmor / trying-to-help-fix-essential.md
Last active April 24, 2024 15:15
Trying to help fix broken vanilla contract in Essential.

Essential Support Bot#4488 (1012730938054160404) at Wed, 03 Apr 2024 06:22:21 GMT

oroarmor's ticket - 33991 Created at - <t:1712125340:F> Opened at - <t:1712125420:F> Members - <@365708770262777856> <@196683878935560192> <@108132758131376128> Issue type - Something's not working Which version of Minecraft are you playing? - Original Minecraft

@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active April 24, 2024 15:14
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@markuswustenberg
markuswustenberg / Makefile
Created December 8, 2022 20:44
Go and SQLite parallel benchmark, v3
.PHONY: benchmark
benchmark:
go test -cpu 4,8,16,32,64,128,256,512,1024 -bench=.
— Да?
— Алё!
— Да да?
— Ну как там с деньгами?
— А?
— Как с деньгами-то там?
— Чё с деньгами?
— Чё?
— Куда ты звонишь?
@markuswustenberg
markuswustenberg / Makefile
Created December 8, 2022 18:42
Go SQLite benchmark parallel
.PHONY: benchmark
benchmark:
go test -bench=.
@deHelden
deHelden / "torn" 1 Setup vps.md
Last active April 24, 2024 15:12
Deploy Rails 7.0.4.2 to VPS(DigitalOcean Ubuntu 20). Nginx, Puma, Capistrano3, PostgreSQL, Rbenv.

SETUP VPS

based on DigitalOcean guide

Create local project

local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active April 24, 2024 15:10
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@Jezfx
Jezfx / easings
Created March 6, 2017 11:11
Cubic Bezier easings for smooth animations
/*SINE*/
$easeInSine: cubic-bezier(0.47, 0, 0.745, 0.715);
$easeOutSine: cubic-bezier(0.39, 0.575, 0.565, 1);
$easeInOutSine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
/*QUAD*/
$easeInQuad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
$easeOutQuad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
$easeInOutQuad: cubic-bezier(0.455, 0.03, 0.515, 0.955);