Skip to content

Instantly share code, notes, and snippets.

Aleksandr Derbenev alex-ac

  • Apple
  • Cork
Block or report user

Report or block alex-ac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alex-ac
alex-ac / app.py
Created Aug 13, 2014
Python Bem templator with flask example.
View app.py
#!/usr/bin/env python3
from flask import Flask
from bem import Bem
import templates
app = Flask(__name__)
bem = Bem(no_cache = True)
View messaging.cc
#include "messaging.pb.h"
using namespace messaging;
std::string SerializeSettings(
double angle_offset_x,
double angle_offset_y,
double angle_offset_z,
double pid_x_factors_p,
double pid_x_factors_i,
@alex-ac
alex-ac / matrix.cc
Last active Dec 22, 2015
Matrix computations on the C++11 templates.
View matrix.cc
#include "matrix.h"
template class Matrix<4, 1>;
template class Matrix<4, 4>;
@alex-ac
alex-ac / Lua.cc
Last active Dec 11, 2018
Lua C++ wrapper. C++11 templates street magic.
View Lua.cc
#include <Lua.hh>
extern "C" {
#include <lualib.h>
#include <lauxlib.h>
};
using namespace util;
int Lua::call(lua_State *vm) {
@alex-ac
alex-ac / build.xml
Created Dec 4, 2012
Ant and git integration.
View build.xml
<?xml version="1.0" encoding='utf-8'?>
<project name="test" default="version">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<available file=".git" type="dir" property="git.present"/>
<available file="version.properties" type="file" property="version.present"/>
<target name="versiongit" if="git.present">
<exec executable="git" outputproperty="git.commit" failonerror="true">
<arg value="rev-parse"/>
@alex-ac
alex-ac / Makefile
Created Jun 16, 2012
Lilypond makefile
View Makefile
LILYPOND:=lilypond
LILYPONDFLAGS:=
BUILDDIR:=.
SRCDIR:=.
INSTALLDIR:=.
MAINPDF=$(SRCDIR)/pdf.ly
MAINMIDI=$(SRCDIR)/midi.ly
SOURCES=$(SRCDIR)/score.ly $(SRCDIR)/title.ly ${SRCDIR}/macro.ly
You can’t perform that action at this time.