I hereby claim:
- I am miczed on github.
- I am miczed (https://keybase.io/miczed) on keybase.
- I have a public key whose fingerprint is 15A7 35AA 46BA 1B81 C7AE A225 6F45 ED5F 5ABA 16A8
To claim this, I am signing this object:
# importing libraries / dependencies | |
import os | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
import csv | |
import time | |
import datetime | |
import pytz | |
starttime = time.time() # get the current time (for interval calculatio) |
class LessonController < ApplicationController | |
def import | |
begin | |
Lesson.transaction do | |
@lessons = Importer.import(params[:file],method(:import_new_or_existing), method(:import_modify_row), allowed_import_params, allowed_params) | |
end | |
redirect_to admin_lessons_path, notice: "#{@lessons.count} Lektionen wurden erfolgreich importiert." | |
rescue => e | |
redirect_to admin_lessons_path, alert: "#{e.message}" |
printf -e "This will use the google text to speech API to synthesize the text and save it in a file" | |
echo -e "What text should be synthesized?" | |
read text | |
echo -e "What file should the text be stored to (without extension)?" | |
read filename | |
export GOOGLE_APPLICATION_CREDENTIALS="google_credentials.json" | |
echo -e "Downloading audio from google cloud" | |
curl -X POST \ | |
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ | |
-H "Content-Type: application/json; charset=utf-8" \ |
/** Just for testing purposes - it's better to load the fonts in the html header **/ | |
@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i'); | |
/** Typography **/ | |
html, body, ul#navilist li a, ul#navilist span, h1, h2, h3, h4, p, blockquote { | |
font-family: 'PT Sans', sans-serif; | |
} | |
html,body { | |
font-size: 16px; |
I hereby claim:
To claim this, I am signing this object: