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
function groups_meta_filter($query_string, $object){ | |
parse_str($object, $n_object); | |
if( $object != 'groups' && $n_object['type'] != 'groups' ) | |
return $query_string; | |
$args = wp_parse_args( $query_string, array( | |
'action' => false, | |
'type' => false, |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "#1C4856", | |
"@brand-success": "#8DC640", |
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
class Gist_Member_Extension { | |
private function __construct() { | |
$this->add_hooks(); | |
} | |
function add_hooks(){ | |
add_filter( 'bp_signup_usermeta', [$this, 'pre_registration_filter'] ); | |
} |
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
let state = { | |
..., | |
toggleables: [ | |
// propertyName: default value | |
{ visible: true }, | |
{ rankable: true } | |
], | |
... | |
} | |
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 os import walk | |
from os.path import join, basename | |
from pydub import AudioSegment | |
import pydub.scipy_effects | |
import numpy | |
import scipy.signal as sg | |
import csv | |
def count_silent_chunks(chunks, threshold, rev=False): |
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 os import walk | |
from os.path import join, basename | |
from pydub import AudioSegment | |
from json import dump, dumps | |
import pydub.scipy_effects | |
import numpy | |
import csv | |
import time | |
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
#!/bin/bash | |
# A simple script to recursively resample a bunch of files | |
# in a directory. Only certain file extensions (mp3, aac, | |
# flac, wav) are considered. | |
# | |
# It takes 3 command line options: `indir`, `outdir` and `target_sr`. | |
# The destination (`outdir`) is relative to the current | |
# directory of where you were when the script was run. | |
# The desired sample rate should be provided as `target_sr`. |
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 webrtcvad | |
import wave | |
import collections | |
import contextlib | |
import sys | |
import glob | |
from os import walk | |
from os.path import join, basename, getctime | |
from json import dump, dumps | |
import csv |
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 webrtcvad | |
import wave | |
import collections | |
import contextlib | |
import sys | |
import glob | |
from os import walk | |
from os.path import join, basename, getctime | |
from json import dump, dumps | |
import csv |
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 webrtcvad | |
import csv | |
import time | |
import sys | |
import wave | |
import collections | |
import contextlib | |
from os import walk | |
from os.path import join, basename | |
from pydub import AudioSegment, scipy_effects |
OlderNewer