This file contains hidden or 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 pathlib import Path | |
import os | |
root = Path(__file__).parent | |
git_folders = root.rglob("*.git") | |
for git_dir in git_folders: | |
git = git_dir.parent | |
print('stash and pull master: ', git) | |
res = os.system(f'(cd {git} && git stash && git checkout master && git pull)') |
This file contains hidden or 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
def save(self, savefile): | |
"""Do the TTS API request and write result to file. | |
Args: | |
savefile (string): The path and file name to save the ``mp3`` to. | |
Raises: | |
:class:`gTTSError`: When there's an error with the API request. | |
""" |
This file contains hidden or 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 IPython.display import Audio | |
from pathlib import Path | |
def _playsoundJupyter(sound, block=True): | |
sound = Path(sound) | |
sound = str(Path(get_ipython().home_dir, sound.name)) | |
audio = Audio(sound, autoplay=False) | |
display(audio) | |
from platform import system |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
[ | |
{ | |
"package": "jupyter" | |
}, | |
{ | |
"package": "numpy", | |
"version": "1.19.1" | |
}, | |
{ | |
"package": "smartphone-connector", |
This file contains hidden or 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
SELECT | |
cols.TABLE_SCHEMA as 'database', | |
cols.TABLE_NAME as 'table', | |
cols.COLUMN_NAME as 'column', | |
cols.DATA_TYPE AS 'data_type', | |
cols.COLUMN_TYPE AS 'type', | |
COALESCE(cols.COLUMN_DEFAULT, cols.extra) AS 'default', | |
( | |
CASE WHEN COLUMN_KEY='PRI' | |
THEN 'YES' |
This file contains hidden or 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
require 'json' | |
def to_md_row(row, max_field_sizes) | |
md = row.zip(max_field_sizes).map do |field, sz| | |
"#{field.to_s.ljust(sz, ' ')}" | |
end.join(' | ') | |
"| #{md} |" | |
end | |
def table_def_row(max_field_sizes) |
This file contains hidden or 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 | |
// definiere Funktion "endsWith" falls sie nicht bereits definiert wurde | |
if (!function_exists('endsWith')) { | |
/** | |
* endet $string mit $endString? | |
* @param string [String] | |
* @param endString [String] | |
* @return [boolean] | |
*/ | |
function endsWith($string, $endString) |
This file contains hidden or 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
DROP DATABASE IF EXISTS lo_leduc; | |
CREATE DATABASE lo_leduc; | |
USE lo_leduc; | |
CREATE TABLE alben ( | |
album CHAR(32) PRIMARY KEY, | |
artist CHAR(32) NOT NULL, | |
veroeffentlichung DATE | |
); |
NewerOlder