Skip to content

Instantly share code, notes, and snippets.

View prisme's full-sized avatar

Jérémy Saint-Prix prisme

View GitHub Profile
/*
*
* Works with elements or jquery
*
* scrollTo(element, duration, offset);
*
* Update 'scroller' variable with custom scrolling element if not document.body
*
*/
@prisme
prisme / blocksToPages.js
Last active September 7, 2015 15:52
Return pages of elements based on available space
/*
*
* Use:
* var pages = blocksToPages(myElement)
* returns array of elements.
*
*/
define([
], function() {
@prisme
prisme / new-slice.md
Created April 18, 2017 14:52 — forked from Duaner/new-slice.md
Include New slices in your nodejs project

#Define


"new-slice" : {
    "type" : "Slice",
    //No repeatable zone
    "non-repeat" : {
      "titre" : {
        "type" : "StructuredText"
      }
 },
@prisme
prisme / ffmpeg.md
Created October 4, 2020 10:56 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: