Skip to content

Instantly share code, notes, and snippets.

import pyaer
print 'Loading plugin'
plugin = pyaer.load('plugin.so')
print 'Obtaining manifest'
manifest = plugin.manifest()
print '-----LOADED------'
print manifest.name()
print manifest.description()
#include <iostream>
#include <shogun/base/init.h>
#include <shogun/lib/SGVector.h>
#include <Eigen/Eigen>
using namespace shogun;
using namespace std;
using namespace Eigen;
template <class Vector>
@lisitsyn
lisitsyn / dynamic_analysis_transformer
Last active August 29, 2015 13:56
Dynamic analysis transformer
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="DynamicAnalysis">
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Dynamic analysis</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css"/>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
let g:clang_close_preview = 1
let g:clang_complete_auto = 1
let g:clang_auto_select = 0
let g:clang_snippets = 1
let g:clang_snippets_engine = 'ultisnips'
let g:clang_use_library = 1
let g:clang_complete_copen = 1
let g:clang_user_options='|| exit 0'
#include <string>
#include <stdexcept>
#include <sstream>
namespace formatting
{
namespace
{
const std::string placeholder = "{}";
}
@lisitsyn
lisitsyn / gist:5128619
Last active December 14, 2015 18:19
Tapkee Shogunizer
find tapkee/ -type f | xargs sed -i '/Tapkee includes/,/End of Tapkee includes/{s/include\ </include\ <shogun\/lib\//g}'
package actor;
import akka.actor.*;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.pattern.Patterns;
import akka.util.Timeout;
import scala.concurrent.Await;
import scala.concurrent.Future;
import scala.concurrent.duration.Duration;
@lisitsyn
lisitsyn / std.cpp
Created February 10, 2013 11:49 — forked from mahuna13/std.cpp
#include "std_try.h"
#include <math.h>
using namespace Halide;
#define PI 3.14159
/*
Interpolations
*/
#include <shogun/base/init.h>
#include <shogun/io/SerializableAsciiFile.h>
#include <shogun/lib/SGMatrix.h>
#include <shogun/features/SparseFeatures.h>
using namespace shogun;
int main()
{
init_shogun();
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Copyright (c) 2012, Sergey Lisitsyn
*/
#ifndef EDRT_EIGEN_EMBEDDING_H_