Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am cbecker on github.
  • I am carlosbecker (https://keybase.io/carlosbecker) on keybase.
  • I have a public key ASBYSTfX403lmumVbGV3NUAzaZbTNTIZtWWOUye0Wnc5ggo

To claim this, I am signing this object:

@cbecker
cbecker / main.cpp
Created Feb 24, 2020
sigslot example w/shared_ptr
View main.cpp
#include <thread>
#include <atomic>
#include <cstdio>
#include <chrono>
#include <memory>
#include <sigslot/signal.hpp>
View .zpreztorc
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@cbecker
cbecker / Qt Creator
Created Oct 19, 2017
Dev computer set up
View Qt Creator
Syntax theme .xml, copy to /usr/share/qtcreator/styles
View SomeClass.cpp
#include "MyClass.h"
class MyClass::Impl
{
// etc..
};
MyClass::MyClass()
: m_pimpl(new Impl())
@cbecker
cbecker / rebasing.md
Last active May 30, 2017
Git related
View rebasing.md
@cbecker
cbecker / c++.md
Last active Jan 13, 2017
Languages ref
View c++.md

This contains useful reminders for me from C++11.

Class-related

abstract classes

Read more here, but basically

virtual void f() = 0; // pure virtual
@cbecker
cbecker / main.cpp
Last active Apr 7, 2021
lightGBM C++ example
View main.cpp
#include <LightGBM/config.h>
#include <LightGBM/dataset_loader.h>
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/metric.h>
#include <LightGBM/utils/common.h>
#include <iostream>
#include <random>
#include <algorithm>
View Lasagne-stuff.md

layers.Conv2DLayer

Stride is equivalent to convolution + sub-sampling, in that order.

layers.TransposedConv2DLayer

Stride places zeroes between elements, then convolves with desired filter. I would recommend using crop='same'