Skip to content

Instantly share code, notes, and snippets.

View Daandelange's full-sized avatar

Daan de Lange Daandelange

View GitHub Profile
@jmheretik
jmheretik / im-api-thumb-driver.php
Last active September 23, 2023 17:27
Kirby 2's ImageMagick thumb driver implementation rewritten using Imagick API instead of shell exec commands.
/**
* ImageMagick Driver
*/
thumb::$drivers['im-api'] = function($thumb) {
try {
$img = new Imagick($thumb->root());
$img = $img->coalesceImages();
do {
@sphaero
sphaero / Nodes.cpp
Created December 12, 2018 15:07 — forked from ChemistAion/nodes.cpp
Second prototype of standalone node graph editor for ImGui
#include "Nodes.h"
namespace ImGui
{
template<int n>
struct BezierWeights
{
constexpr BezierWeights() : x_(), y_(), z_(), w_()
{
for (int i = 1; i <= n; ++i)
@SMUsamaShah
SMUsamaShah / List of JavaScript GUI libraries.md
Last active July 17, 2024 11:39
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
  2. control-panel https://github.com/freeman-lab/control-panel
  3. ControlKit https://github.com/automat/controlkit.js
  4. guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
  5. oui https://github.com/wearekuva/oui
  6. Palette.js https://github.com/lehni/palette.js
@ChemistAion
ChemistAion / Nodes.cpp
Created January 25, 2018 15:02
Prototype of standalone node graph editor for ImGui
// Prototype of standalone node graph editor for ImGui
// Thread: https://github.com/ocornut/imgui/issues/306
//
// This is based on code by:
// @emoon https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// @ocornut https://gist.github.com/ocornut/7e9b3ec566a333d725d4
// @flix01 https://github.com/Flix01/imgui/blob/b248df2df98af13d4b7dbb70c92430afc47a038a/addons/imguinodegrapheditor/imguinodegrapheditor.cpp#L432
#include "Nodes.h"
@baydam
baydam / install-openframework-0.9.8.md
Last active May 1, 2020 11:40
How to install OpenFrameworks version 0.9.8 on any Linux distribution

How to install openFrameworks version 0.9.8 on any Linux distribution

Overview

The current stable version of openFrameworks is 0.9.8 and it does not compile on some versions of Debian like Strech or Arch Linux (in my case). You are free to install the nightly version of openFrameworks but it could be that some addons is not compatible or does not work well.

Use the right version of poco

If you have a compilation error like ^ Received error ^ it means that the version 1.6.0 of poco provided with openFrameworks is not compatible with the new version of openSSL (1.0). To correct this problem you have to edit the poco.sh file located in scripts/apothecary/formulas/poco/poco.sh and replace the version number 1.6.0 with 1.7.7 in the following two lines and run install_dependencies.sh

anonymous
anonymous / vid-to-gif.sh
Created October 20, 2017 18:52
#!/bin/bash
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/
# Usage function, displays valid arguments
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; }
# Default variables
fps=15
width=480
@eliasdaler
eliasdaler / simple_meta_info_class.cpp
Created September 26, 2017 09:31
Simple meta info class for this article: https://eliasdaler.github.io/meta-stuff
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <json.hpp>
using json = nlohmann::json;
template <typename Class>
@ofZach
ofZach / gist:e602efb4fbd43858aa01aff6d015ef32
Last active September 15, 2020 15:22
how to make an openframeworks dylib
@unohee
unohee / Bjorklund.cpp
Last active April 6, 2024 15:29
Bjorklund Algorithm in C++
#include "Bjorklund.h"
//Edited NoisyLittleBurger's Bjorklund Algorithm in C
//http://www.noisylittlebugger.net/diy/bjorklund/Bjorklund_Working_Final/Bjorklund_algorithm_arduino.txt
//CHANGED :
//1. use dynamic array.
//2. fixed sequence's off-spot problem
//3. added Explanation about Algorithm based on G.Touissant's Paper,
//"The Euclidean Algorithm Generates Traditional Musical Rhythms"
//
@kylemcdonald
kylemcdonald / cycloid.cpp
Last active February 1, 2023 15:38
Reconstructing cyclo. id#00 by Carsten Nicolai & Ryoji Ikeda with openFrameworks.
// download cycolid.wav with:
// $ wget -O cycloid.mp4 "https://vimeo.com/73860675/download?t=1446320826&v=187839750&s=46dcfa8c1c9ed3539dcc260443df6da08032ee60796f781df237bb6957cb8138"
// $ ffmpeg -i cycloid.mp4 cycloid.wav
#include "ofMain.h"
#include "ofxAudioDecoder.h"
class ofApp : public ofBaseApp {
public:
ofxAudioDecoder audio;