Skip to content

Instantly share code, notes, and snippets.

View m4ce's full-sized avatar

Matteo Cerutti m4ce

View GitHub Profile
@m4ce
m4ce / certify.rb
Last active July 29, 2020 16:10
Boost certify brew formula
class Certify < Formula
desc "Platform-specific TLS keystore abstraction for use with Boost.ASIO and OpenSSL"
version "0.1"
homepage "https://github.com/djarek/certify"
url "https://github.com/gsr-zug/certify/archive/v0.1.tar.gz"
sha256 "a78ad70e6c554e2089746a362f270cd7e85b92ab555b1cbe906a5ead6efaee73"
depends_on "cmake" => :build
depends_on "openssl"
depends_on "boost"
@m4ce
m4ce / howard-hinnant-date.rb
Last active July 20, 2020 13:07
HowardHinnant's date library
class HowardHinnantDate < Formula
desc "C++ library for date and time operations based on <chrono>"
version "3.0.0"
homepage "https://github.com/HowardHinnant/date"
url "https://github.com/gsr-zug/date/archive/feat/fix_cmake.tar.gz"
sha256 "5638885c0ba334704ae135c21f071dc16a3e6590400e82dd99368ac1699ec0fc"
depends_on "cmake" => :build
def install
class Pybind11 < Formula
desc "Seamless operability between C++11 and Python"
homepage "https://github.com/pybind/pybind11"
version "9b8cb02030e45443a8a4c5526cdb8093caa481eb"
url "https://github.com/pybind/pybind11/archive/9b8cb02030e45443a8a4c5526cdb8093caa481eb.tar.gz"
sha256 "c77cb0fbff78e6c6d527054de6bc28707f0d7855e486bef24dfb73342d297015"
depends_on "cmake" => :build
depends_on "python@3.8"
require 'formula'
class Csvcpp < Formula
desc "CSV for Modern C++"
homepage "https://github.com/p-ranav/csv"
url "https://github.com/p-ranav/csv/archive/1b152a5dcd45c72db5efd81ce28048897ef2dbba.tar.gz"
version "1b152a5dcd45c72db5efd81ce28048897ef2dbba"
sha256 "98d3d60140f41d196578bf87672d479180fbb6a7d08345002209b28339cb903c"
revision 5
@m4ce
m4ce / tensorflow.rb
Last active February 18, 2020 22:04
class Tensorflow < Formula
include Language::Python::Virtualenv
desc "Computation using data flow graphs for scalable machine learning"
homepage "https://www.tensorflow.org/"
url "https://github.com/tensorflow/tensorflow/archive/v2.1.0.tar.gz"
sha256 "638e541a4981f52c69da4a311815f1e7989bf1d67a41d204511966e1daed14f7"
revision 8
depends_on "bazel" => :build
require 'formula'
class XtensorInterpolate < Formula
desc "Spline interpolation with FITPACK for xtensor"
homepage "https://github.com/rjsberry/xtensor-interpolate"
url "https://github.com/rjsberry/xtensor-interpolate/archive/d2a7c2d7042b3e0d0290944f2919a821d7defd3d.tar.gz"
version "d2a7c2d7042b3e0d0290944f2919a821d7defd3d"
revision 6
depends_on "cmake" => :build

Keybase proof

I hereby claim:

  • I am m4ce on github.
  • I am m4ce (https://keybase.io/m4ce) on keybase.
  • I have a public key whose fingerprint is E1C5 38E8 6C76 30EE 54C0 5123 DC78 40CC CEBF 14B9

To claim this, I am signing this object:

# Homebrew Formula for Google Test
# Usage: brew install --HEAD https://gist.githubusercontent.com/Kronuz/96ac10fbd8472eb1e7566d740c4034f8/raw/gtest.rb
require 'formula'
class Gtest < Formula
desc "Google Test"
homepage "https://github.com/google/googletest"
head "git://github.com/google/googletest.git", :using => :git
@m4ce
m4ce / zstr.rb
Last active June 26, 2019 07:12
zstr.rb
require 'formula'
class Zstr < Formula
desc "A C++ header-only ZLib wrapper"
homepage "https://github.com/mateidavid/zstr"
url "https://github.com/gsr-zug/zstr/archive/1.0.2.tar.gz"
sha256 "bf3aedf1f00b3abde3e0df63e84c606923acaf711862ce25788c045cc4dfba6c"
revision 5
depends_on "cmake" => :build
@m4ce
m4ce / mysql-connector-c++.rb
Last active May 22, 2020 16:21
MySQL Connector C++ Homebrew formula
class MysqlConnectorCxx < Formula
desc "MySQL database connector for C++ applications"
homepage "https://dev.mysql.com/downloads/connector/cpp/"
url "https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.0.20-src.tar.gz"
sha256 "50eaebd1d59b5681b6959a8c5b95bdeeffd021db0f06264eb497706dbc5b39cb"
revision 3
depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "mysql-client"