Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am Laetus on github.
  • I am philippfroehlich (https://keybase.io/philippfroehlich) on keybase.
  • I have a public key whose fingerprint is 77C4 F36B ACE9 B31C 6D2B F32C B425 8742 88C9 BD83

To claim this, I am signing this object:

@Laetus
Laetus / RealtimeAPCSCP.cpp
Last active February 22, 2016 08:32
Example
//The whole RealtimeAPCSCP Solver Class extending Solver
#include "RealtimeAPCSCP.hpp"
RealtimeAPCSCP::RealtimeAPCSCP(Model* model) :
RealtimeAPCSCP::Solver(model) {
this->nlp = MXFunction("nlp", nlpIn("x", model->getV()), nlpOut("f",
model->getf(0), "g", G));
this->dG_f = this->nlp.jacobian("x", "g");
this->choiceH = 0;
@Laetus
Laetus / solution.py
Created April 4, 2019 21:05
Basic Bag of Words script
import collections
import logging
logger = logging.getLogger('root.app.bag_of_words')
logger.setLevel(logging.DEBUG)
def clean_string(string):
# remove special chars the hacky way
for char in ('.', '[', ']', ',', '\t', '\n', '(', ')', '-', '"', "'"):