Skip to content

Instantly share code, notes, and snippets.

In progress with my own DAW written in Rust

Christian Pérez-Llamas chris-zen

In progress with my own DAW written in Rust
Block or report user

Report or block chris-zen

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
chris-zen /
Created Jul 20, 2018 — forked from brianz/
Install docker on Amazon Linux
# steps taken verbatim from:
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# log out and log in to pickup the added group
chris-zen / Sphere.cpp
Created Sep 4, 2016 — forked from zwzmzd/Sphere.cpp
[OpenGL] An example to draw a sphere with vao and vbo
View Sphere.cpp
#include "sphere.h"
#include <vector>
#include <iostream>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
View akka-dependencies.sbt
javaOptions in run ++= Seq(
, "-Xmx1024m"
// , "-Djava.library.path=./target/native"
// Akka dependencies
libraryDependencies ++= {
val akkaVersion = "2.4.1"
val akkaHttpVersion = "2.4.2-RC2"
chris-zen / docker-compose.yml
Last active Mar 22, 2016
Kafka Docker Compose
View docker-compose.yml
# Docker compose to have Zookeeper, Kafka, and Kafka Manager running for development.
image: confluent/zookeeper
- "2181:2181"
# My PR to update to has been already merged, so very soon it will be possible
# to replace my kafka fork by the original one **wurstmeister/kafka:**
chris-zen / MatchTypePattern.scala
Last active Feb 10, 2016
Way to match type patterns using reflection with Scala 2.10+ and performance comparison with plain casting
View MatchTypePattern.scala
// Adapted to Scala 2.10+ from
import scala.reflect.runtime.universe._
class Def[C](implicit desired: TypeTag[C]) {
def unapply[X](c: X)(implicit m: TypeTag[X]): Option[C] = {
chris-zen / condel-calc.scala
Created Apr 16, 2015
Apache Spark prototypes
View condel-calc.scala
import org.apache.spark.{ SparkConf, SparkContext}
import org.apache.spark.SparkContext._
import org.apache.hadoop.conf.Configuration
import org.bson.BSONObject
import org.bson.BasicBSONObject
import org.json4s._
View gist:949f594f5663c8b0c10a
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', '', 'play']){
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0
# Adapted from
runTests () {
sbt test || exit 1
echo "[info] $(date) - finished sbt test"
stripTerminalEscapeCodes () {
class ROType(type):
def __new__(mcl, classname, bases, classdict):
class UniqueROType (mcl):
def getAttrFromMetaclass(attr):
return lambda cls: getattr(cls.__metaclass__, attr, None)
for attr, value in classdict.items():
if not hasattr(value, '__call__') and attr.startswith('_') and not attr.startswith('__'):
You can’t perform that action at this time.