Skip to content

Instantly share code, notes, and snippets.

View maelp's full-sized avatar

Mael maelp

View GitHub Profile
@maelp
maelp / README.md
Last active October 28, 2019 10:51
Create a simplified prototype using Sketch and d3.js
@maelp
maelp / # ffmpeg - 2017-11-10_18-03-10.txt
Created November 10, 2017 17:04
ffmpeg on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for ffmpeg on macOS 10.13.1
Build date: 2017-11-10 18:03:10
@maelp
maelp / # ffmpeg - 2017-11-10_17-35-32.txt
Created November 10, 2017 16:40
ffmpeg on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for ffmpeg on macOS 10.13.1
Build date: 2017-11-10 17:35:32
@maelp
maelp / # gnuplot - 2017-11-10_17-29-40.txt
Created November 10, 2017 16:40
gnuplot on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for gnuplot on macOS 10.13.1
Build date: 2017-11-10 17:29:40
@maelp
maelp / README.md
Last active January 2, 2016 18:29
Fast interactive prototypes with Sketch and d3.js
@maelp
maelp / README.md
Last active January 2, 2016 18:29
Creating a basic app prototype using SVG and d3.js
@maelp
maelp / README.md
Last active December 19, 2015 08:39
Creating a brush stroke effect - part 2

Creating a brush stroke effect - part 2

Please see http://8pen.com/blog/doodle for a more complete explanation of how we built the brush stroke

The construction of the brush stroke is done in four steps:

  • create regularly spaced vertices describing the brush stroke centerline
  • compute the normal vectors at each point
  • extrude the ribbon
  • scale the ribbon to create a bulge around the midpoint
@maelp
maelp / README.md
Last active December 19, 2015 06:49
Creating a brush stroke effect - part 1

Creating a brush stroke effect - part 1

Please see http://8pen.com/blog/doodle for a more complete explanation of how we built the brush stroke

The construction of the brush stroke is done in four steps:

  • create regularly spaced vertices describing the brush stroke centerline
  • compute the normal vectors at each point
  • extrude the ribbon
  • scale the ribbon to create a bulge around the midpoint
@maelp
maelp / README.md
Last active December 18, 2015 14:38
The 8pen Doodle
@maelp
maelp / SharedValue.swift
Last active August 29, 2015 14:23
How to lock around a value
// Inspired from <https://www.mikeash.com/pyblog/friday-qa-2015-02-06-locks-thread-safety-and-swift.html>
import UIKit
/*
NOTE:
I’m not sure spin locks are the most efficient way to do this if we have methods which can potentially hold the lock for a long time, or too many threads trying to acquire a lock