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
<?php | |
namespace Drupal\my_module; | |
use Drupal; | |
use Drupal\Core\Config\FileStorage; | |
/** | |
* Utilities for managing module configuration during module updates. | |
* |
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
// Go to https://www.youtube.com/playlist?list=WL&disable_polymer=true | |
// Open the javascript console (CTRL+SHIFT+K in Firefox) | |
// Run the following code: | |
function loadMore() { | |
// Click the "Load More" button | |
var el = document.getElementsByClassName('browse-items-load-more-button'); | |
if (el.length) { | |
el[0].click(); | |
return 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
#!/usr/bin/env bash | |
# FFMPEG installation script by RW Byker, based on the guide at https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu | |
DATE=$(date "+%Y%m%d_%H%M%S") | |
DIR_SOURCES="$HOME/installers/ffmpeg_sources" | |
DIR_BUILD="$HOME/installers/ffmpeg_build" | |
DIR_BIN="$HOME/bin" | |
DIR_OLDVERSION="$HOME/installers/ffmpeg_old_${DATE}" |
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
#!/usr/bin/env python | |
from scipy.io import wavfile | |
import os | |
import numpy as np | |
import argparse | |
from tqdm import tqdm | |
# Utility functions |
NewerOlder