This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyo import * | |
class AutoWah: | |
def __init__(self, input, freq=8, q=20, min=0, max=8000): | |
self.follower = Follower(input, freq=freq, mul=max-min, add=min) | |
self.lowpass = Biquad(input, freq=self.follower, q=q, type=0) | |
self.follower.ctrl() | |
self.lowpass.ctrl() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
""" | |
Miniature sonore à 3 voix | |
------------------------------------ | |
Vous devez créer un courte musique mettant en place 3 types de processus sonores: | |
Une voix mélodique, de type soliste. | |
Une voix de basse. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyo import * | |
import random | |
import math | |
server = Server() | |
server.boot() | |
play_dur = 0.125 | |
# Instrument de synthèse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>the_ocalhoun's Nifty Fifty</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
<meta name="charset" content="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<style> | |
a { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ProvidesPackage{dagnotes} | |
\RequirePackage[T1]{fontenc} | |
\RequirePackage[utf8]{inputenc} | |
\RequirePackage[francais]{babel} | |
\RequirePackage{amsmath, amssymb} | |
\RequirePackage{setspace} | |
\RequirePackage[margin=1in]{geometry} | |
\newcommand{\formatdoc}{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ProvidesPackage{dagnotes} | |
\RequirePackage[T1]{fontenc} | |
\RequirePackage[utf8]{inputenc} | |
\RequirePackage[francais]{babel} | |
\RequirePackage{amsmath, amssymb} | |
\RequirePackage{setspace} | |
\RequirePackage[margin=1in]{geometry} | |
\newcommand{\formatdoc}{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note that unprefixing elements that aren't initially defined will break them | |
// (which is why it conditionnally unprefixes pointerLockElement) | |
function unprefix(element:any, prop:string, prefixes:string[]) { | |
let capitalized = prop[0].toUpperCase() + prop.substring(1); | |
let props = prefixes.map(prefix => prefix + capitalized); | |
if (!element[prop]) return Object.defineProperty(element, prop, { | |
get: function() { | |
for (let prop of props) { | |
var val = this[prop]; | |
if (val) return val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.LinearGradient; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.graphics.Shader; | |
import com.google.android.gms.maps.model.LatLng; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* FastScroller for RecyclerView with adjustments for sticky headers | |
* based off the POC from https://github.com/AndroidDeveloperLB/LollipopContactsRecyclerViewFastScroller | |
* the adjustments specifically target the SLiM library (https://github.com/TonicArtos/SuperSLiM) | |
**/ | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.os.Build; | |
import android.support.annotation.NonNull; |