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 Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
constructor() { | |
this.qwerty = ['1', '2']; | |
} | |
} |
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
from glob import glob | |
from os import path, makedirs, rename | |
from pathlib import PureWindowsPath | |
from re import match | |
from string import capwords | |
files = glob('D:\\Series\\Downloaded\\**\\*.mkv', recursive=True) | |
files.extend(glob('D:\\Series\\Downloaded\\**\\*.mp4', recursive=True)) | |
files.extend(glob('D:\\Series\\Downloaded\\**\\*.m4v', recursive=True)) | |
files.extend(glob('D:\\Series\\Downloaded\\**\\*.avi', recursive=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
class Hash | |
def method_missing(method_name) | |
if not respond_to?(method_name) | |
if has_key?(method_name) | |
self[method_name] | |
else | |
super.method_missing(method_name) | |
end | |
end | |
end |