Skip to content

Instantly share code, notes, and snippets.

//
// Created by ion on 6/2/25.
//
#ifndef DATE_H
#define DATE_H
#include <chrono>
#include <cstring>
#include <iostream>
#include <tuple>
@ianosd
ianosd / ideas.md
Created January 27, 2023 17:14
Mathematical Physics review Ideas

I suggest we add our discussion points as entries in the following table. Specify a chapter to which the topic belongs, so we can sort things. Use the preview tab to see the nicely formatted table.

Question/Discussion Topic Chapter
Why is symmetry not enough for operators? (Why do we want s.a. in the first place?) For example: is the spectrum of a symmetric operator not necessarily real? Functional Analysis
Understand in what sense $X(dx_\mu) = X(x_\mu)$, for a vector field $X$ (interpret as acting on $C^\infty$ or as tensor field). GR
example example
@ianosd
ianosd / maintained_ssh.conf
Created July 22, 2022 17:17
Systemd service file to maintain ssh connection to a server (Use case: connecting to studnet Leipzig internet)
# Create this file in ~/.config/maintained_ssh.conf
# Note: this is not a very nice solution security-wise, as it is storing the password in plain-text.
PASSWD=<your pwd>
USR=<username>
SRV=<server ip>
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 5 in line 1.
I (A) s(I) (A) U (V) s(U) (V)
206,100000E-6 604,152299E-9 1,195600E-3 5,366563E-6
7,177980E-3 701,427117E-9 41,960600E-3 75,810949E-6
14,160200E-3 2,774887E-6 84,215200E-3 526,024429E-6
21,169400E-3 1,140175E-6 130,398000E-3 1,068419E-3
28,161400E-3 547,722558E-9 181,830000E-3 2,964271E-3
35,167800E-3 836,660027E-9 245,066000E-3 6,213544E-3
42,134200E-3 836,660027E-9 329,390000E-3 12,818734E-3
49,188000E-3 1,224745E-6 532,894000E-3 17,969460E-3
56,165400E-3 14,380542E-6 894,686000E-3 22,238002E-3
@ianosd
ianosd / chrome_unsafe.bat
Created July 28, 2020 10:32
start chrome in unsafe mode (allow CORS calls)
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
#include <boost/interprocess/shared_memory_object.hpp>
#include <boost/interprocess/mapped_region.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_condition.hpp>
#include <iostream>
struct shared_data
{
https://www.biletmaster.ro/ron/Event/47005549/Recital-Camaral---Cvartetul-Transilvan
https://drive.google.com/drive/folders/0B3sASjUd3FH0WjhtQzFCZzhDUVE
<SCRIPT type="text/javascript">
var name_validation = function(object){
var re = /([a-zA-Z ]{3})/
return re.test(object)
}
var addr_validation = function(value){
var re1 = /([^@#$%^&*]{3})/
var re2 =/.*[0-9]+.*/