Skip to content

Instantly share code, notes, and snippets.

View milothiesen's full-sized avatar
💓

Milo Thiesen milothiesen

💓
View GitHub Profile
@kholidfu
kholidfu / export_yt_channel_videos_to_csv.py
Created August 14, 2017 14:35
Export Youtube Channel Videos to CSV using Python3 + Youtube Api
import requests # or urllib
import csv
# get Youtube Data API Key
API_KEY = "" # insert your API key
# youtube channel ID
channel_id = "" # insert Youtube channel ID
page_token = ""
#Place this file in the root of the directories you'd like to change.
#It will look for all directories with underscores and replace them with a space.
Dir["*"].each do|f|
if File.directory?(f)
File.rename f, f.gsub(/_/, ' ')
end
end
@milothiesen
milothiesen / export.sh
Created February 22, 2016 04:36 — forked from jeffrafter/export.sh
Exporting XML from Final Cut Pro using Apple Script
#!/bin/sh
# 'Enable access for assistive devices' must be selected in Universal Access preferences.
osascript -e "
try
tell application \"Final Cut Pro\" to activate
delay 0.5
tell application \"System Events\"
@mediasota
mediasota / gist:7c46c8e105acc386d62f
Created March 6, 2015 12:04
config/initializers/simple_form_materialize-sass.rb
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
config.error_notification_class = 'alert alert-danger'
config.button_class = 'waves-effect waves-light btn'
config.boolean_label_class = nil
config.wrappers :vertical_form, tag: 'div', class: 'input-field', error_class: 'has-error' do |b|
b.use :html5
b.use :placeholder
b.optional :maxlength
@konrad
konrad / csv2xlsx.py
Last active April 1, 2022 16:46
Converts a CSV (tab delimited) file to an Excel xlsx file
#!/usr/bin/env python
"""
FUNCTION: Converts a CSV (tab delimited) file to an Excel xlsx file.
Copyright (c) 2016, Konrad Foerstner <konrad@foerstner.org>
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.
@jeffrafter
jeffrafter / export.sh
Created June 8, 2010 05:32
Exporting XML from Final Cut Pro using Apple Script
#!/bin/sh
# 'Enable access for assistive devices' must be selected in Universal Access preferences.
osascript -e "
try
tell application \"Final Cut Pro\" to activate
delay 0.5
tell application \"System Events\"