Skip to content

Instantly share code, notes, and snippets.

View m4saka's full-sized avatar
🎹

masaka m4saka

🎹
View GitHub Profile
@tam17aki
tam17aki / feat_librosa_gla.py
Last active September 30, 2020 16:56
librosaのGriffin-Limアルゴリズムで無矛盾位相復元
#!/usr/bin/env python3
# MIT License
# Copyright (C) 2020 by Akira TAMAMORI
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
@Tiagoperes
Tiagoperes / sbx.c
Last active September 29, 2023 07:57
Routine for real variable SBX crossover taken from the author's implementation (Kalyanmoy Deb)
/* Routine for real variable SBX crossover taken from the author's implementation (Kalyanmoy Deb).
*
* Paper describing the algorithm:
* Title: An Efficient Constraint Handling Method for Genetic Algorithms
* Author: Kalyanmoy Deb
* More info: Appendix A. Page 30.
* URL: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.33.7291&rep=rep1&type=pdf
*
* Commentaries by Tiago Peres França.
*
@alexdlaird
alexdlaird / daemon.cpp
Last active June 20, 2024 14:20
Useful as a starting point for a C++ based Linux daemon application.
#include <dirent.h>
#include <iterator>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sys/stat.h>
#include <syslog.h>