Skip to content

Instantly share code, notes, and snippets.

View j2l's full-sized avatar

Philippe Manzano j2l

  • France
View GitHub Profile
@kenwebb
kenwebb / xholonWorkbook.xml
Last active November 25, 2021 01:47
Human Face Generator
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Fri Jan 27 2017 10:35:21 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: Human Face Generator
Description:
Url: http://www.primordion.com/Xholon/gwt/
@vi
vi / split_by_silence.sh
Last active February 23, 2024 13:18
Using FFmpeg to split multimedia file into parts based on audio volume level
#!/bin/bash
IN=$1
OUT=$2
true ${SD_PARAMS:="-55dB:d=0.3"};
true ${MIN_FRAGMENT_DURATION:="20"};
export MIN_FRAGMENT_DURATION
if [ -z "$OUT" ]; then
@dragermrb
dragermrb / Description-and-Usage.md
Created May 17, 2020 12:43
HTML5 Resize image before upload without ajax

HTML5 Resize image before upload without ajax

Allows to resize a file input image before upload to the server. The resized image will be attached to original file input. Then you can submit your form without ajax or handle it as you need.

Usage as jQuery Plugin

<form>
    <label>Select image</label>
@jacopocolo
jacopocolo / deviceOrientationControls.js
Created December 7, 2022 07:06
A copy of deviceOrientationControls from an older version of Three.js
( function () {
const _zee = new THREE.Vector3( 0, 0, 1 );
const _euler = new THREE.Euler();
const _q0 = new THREE.Quaternion();
const _q1 = new THREE.Quaternion( - Math.sqrt( 0.5 ), 0, 0, Math.sqrt( 0.5 ) ); // - PI/2 around the x-axis