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 os | |
from glob import glob | |
from pydub import AudioSegment | |
AudioSegment.converter = '/usr/local/bin/ffmpeg' | |
playlist_songs = [AudioSegment.from_mp3(file) for file in glob('songs/*.mp3')] | |
combined = AudioSegment.empty() | |
for song in playlist_songs: | |
combined += song |
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 os | |
import pydub | |
pydub.AudioSegment.converter = '/usr/local/bin/ffmpeg' | |
songsDir = 'Original Songs' | |
trimmedDir = 'Trimmed Songs' | |
data = [] | |
def trimSong(file, index): | |
values = data[index].split(',') |
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
*, | |
*:before, | |
*:after { | |
box-sizing: border-box; | |
padding: 0; | |
margin: 0; | |
} | |
html, | |
body { |
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
var gulp = require('gulp'); | |
var plugins = require('gulp-load-plugins')(); | |
plugins.connect = require('gulp-connect'); | |
plugins.jshint = require('gulp-jshint'); | |
var port = 4000; | |
gulp.task('styles', function() { | |
return plugins.rubySass('sass/main.scss', { style: 'compressed' }) | |
.pipe(plugins.autoprefixer('last 15 version')) |
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
var gulp = require('gulp'); | |
var plugins = require('gulp-load-plugins')(); | |
var port = 4000; | |
gulp.task('styles', function() { | |
return gulp.src('src/assets/css/**/*.css') | |
.pipe(plugins.concat('main.css')) | |
.pipe(plugins.autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4')) | |
.pipe(plugins.rename({ suffix: '.min' })) | |
.pipe(plugins.minifyCss()) |