Skip to content

Instantly share code, notes, and snippets.

View anna-bucher's full-sized avatar

Anna Bucher anna-bucher

  • switzerland
View GitHub Profile
@anna-bucher
anna-bucher / gist:1087380
Created July 17, 2011 09:02
Simple C++ class with C interface for Luajit ffi bindings
// g++ simple.cpp -shared -o libsimple.dylib
#include <stdio.h>
class Simple {
int id_;
public:
Simple(int id);
~Simple();
@anna-bucher
anna-bucher / gist:6448474
Created September 5, 2013 10:30
Simple VST plugin to test midi sync.
#ifndef MIDI_RANDOM_INCLUDE_PLUGIN_H_
#define MIDI_RANDOM_INCLUDE_PLUGIN_H_
#include "vst2.x/audioeffectx.h"
#include <cstdlib> // rand
// just one program
#define NUM_PROGRAMS 1
// no other parameter

So this is a thread. It works but is limited to 24h without "Discord server boost" (whatever that means) which is a premium feature.

I received an email from Christian and will have a video meeting with him on the 2nd of December to sort things out.

For those who could not make it to the video meeting yesterday, here is a short summary of what came out of it (at least what I remember from it):

  • People in this community are nice 😌 (this is just me being happy with the vibe of the meeting, it was not a real topic).
  • Overmind should be maintained for a long time: people really like this tool and it is a critical part of their projects.
  • People are using the debugger and it is an important part of the ecosystem for them.
  • API can be mostly frozen as it does the job.
@anna-bucher
anna-bucher / gist:6415937
Last active July 13, 2020 19:33
VST plugin: sample accurate midi out.
// This is part of a midi generating plugin made with Juce library.
//
// The goal of this thing is simply to generate random midi notes that are on-time
// with sample accuracy.
void MidiRandomAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
{
// Clear all
for (int i = 0; i < getNumOutputChannels(); ++i)
{
@anna-bucher
anna-bucher / gist:1048415
Created June 27, 2011 06:53
Compile time hash evaluation
// Usage:
// H("foobar") ===> replaced by uint during compilation
// macro hashing function by http://chrissavoie.com/index.php?option=com_content&task=view&id=14&Itemid=1
#define HASH_CONSTANT 5381
// The following is the guts of the compile-time hasher
{
"styled": {
"tipLangSelector": "Changer la langue de l'interface",
"tipTooltipsIcon": "Afficher ou masquer l'aide en ligne"
},
"date": {
"Ago1Day": "il y a un jour",
"Ago1Hour": "il y une heure",
"Ago1Minute": "il y a une minute",
"AgoXDays": "il y a {count} jours",
@anna-bucher
anna-bucher / proposal.md
Created February 13, 2019 16:01
Christian Alfoni article proposal

Why do pink unicorns sing at night ?

Are these animals pure ?

Is it to improve developper expérience or just enchant the sleepless geeky heads during moonrise ?

Do they take drugs to improve performance when producing milk ?

Would really love your feedback on this ❤️ Christian...

SELECT "item"."id" AS "item_id",
"item"."type" AS "item_type",
"item"."savedat" AS "item_savedAt",
"item"."creator" AS "item_creator",
"item"."createdat" AS "item_createdAt",
"item"."editor" AS "item_editor",
"item"."editedat" AS "item_editedAt",
"item"."accesschangedby" AS "item_accessChangedBy",
"item"."accesschangedat" AS "item_accessChangedAt",
"item"."revision" AS "item_revision",
import { describe, it } from 'test'
import { createCollection, privateCollectionId, userFromWordList } from './'
export async function makeUser(wordList: string[]) {
const user = await userFromWordList(wordList)
const privateCollection = await createCollection(user, {
id: privateCollectionId(user.id),
})
return { user, privateCollection }
}
async function updateAccessChangeLog(
type: 'user' | 'collection',
currentUser: UserWithKeys,
now: number,
// Old item
oldItem: Item,
// New userAccess
newItem: Item
) {
// collectionAccess: Item belongs to collections