I hereby claim:
- I am voznik on github.
- I am voznik (https://keybase.io/voznik) on keybase.
- I have a public key ASCoCZHzSWPjr0catsgfrpDtcKKX6CS51vbQNr4nPjJfoQo
To claim this, I am signing this object:
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 StarWars</title> | |
<meta name="description" content="The HTML5 StarWars"> | |
<meta name="author" content="voznik"> |
import { Directive, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core'; | |
@Directive({ | |
selector: '[iframeResize]', | |
}) | |
export class IframeResizeDirective implements OnInit, OnDestroy { | |
private listener: () => void; | |
private observer: MutationObserver; | |
get element() { |
I hereby claim:
To claim this, I am signing this object:
import { Injectable, Inject } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { ReplaySubject } from 'rxjs/ReplaySubject'; | |
import { DOCUMENT } from '@angular/platform-browser'; | |
@Injectable() | |
export class LazylibsService { | |
private chartJs?: ReplaySubject<any>; |
from functools import wraps | |
from flask import Flask, g, session, request, abort, jsonify | |
from flask_migrate import MigrateCommand, Migrate | |
from flask_script import Manager | |
from flask_sqlalchemy import SQLAlchemy | |
flask_app = Flask(__name__, static_folder='./static') | |
db = SQLAlchemy() | |
migrate = Migrate() |
# Put this at <yourapp>/management/commands/runserver.py. | |
# Override the value of the constant coded into django... | |
import django.core.management.commands.runserver as runserver | |
runserver.DEFAULT_ADDR="0.0.0.0" | |
runserver.DEFAULT_PORT="8080" | |
# ...and then just import its standard Command class. | |
# Then manage.py runserver behaves normally in all other regards. | |
from django.core.management.commands.runserver import Command |
{"lastUpload":"2021-08-11T06:32:52.371Z","extensionVersion":"v3.4.3"} |
{ | |
"autocomplete": true, | |
"autoimport": true, | |
"enable_auto_align": false, | |
"format_on_save": true, | |
"ignore": "Parent", | |
"indent_with_space": 4, | |
"passes": | |
[ | |
"ReindentSwitchBlocks", |
"Or why have 30 admin panels when one would probably suffice," for people with way too many sites.
The base idea is to achieve a multi-site setup that is both more flexible and simpler than native Grav multi-site handling. One major advantage of such a setup is it makes it feasible to have completely different URLs for the different sites.
The strategy used to achieve this uses a combination of (hard) symbolic links, theme-layer taxonomy filtering and homepage configuration for each site.
# Made with ♥ for a healthy Atom. | |
# Avoid copy empty lines. | |
# https://discuss.atom.io/t/resolved-avoid-copying-when-selection-is-empty/ | |
atom.commands.add 'atom-text-editor', 'core:copy', (e) -> | |
editor = e.currentTarget.getModel() | |
return if editor.getSelectedBufferRanges().length > 1 | |
{start, end} = editor.getSelectedBufferRange() | |
if start.column is end.column and start.row is end.row | |
e.stopImmediatePropagation() |