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
| const style = document.createElement('style'); | |
| style.innerHTML = ` | |
| * { | |
| user-select: text; | |
| } | |
| `; | |
| document.head.appendChild(style); |
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
| panic: Unknown db_backend cleveldb, expected either fsdb or leveldb or goleveldb or memdb | |
| goroutine 1 [running]: | |
| github.com/MinterTeam/minter-go-node/vendor/github.com/tendermint/tendermint/libs/db.NewDB(0xfb1e58, 0x6, 0xc000039488, 0x8, 0xc00012ab60, 0x19, 0x19, 0x0) | |
| /home/minter/go/src/github.com/MinterTeam/minter-go-node/vendor/github.com/tendermint/tendermint/libs/db/db.go:46 +0x39e | |
| github.com/MinterTeam/minter-go-node/eventsdb.InitDB(0xc000114780) | |
| /home/minter/go/src/github.com/MinterTeam/minter-go-node/eventsdb/eventsdb.go:25 +0x10b | |
| github.com/MinterTeam/minter-go-node/cmd/minter/cmd.runNode(0x0, 0x0) | |
| /home/minter/go/src/github.com/MinterTeam/minter-go-node/cmd/minter/cmd/node.go:46 +0x14f | |
| github.com/MinterTeam/minter-go-node/cmd/minter/cmd.glob..func1(0x1fc4220, 0x1fee4c0, 0x0, 0x0, 0x0, 0x0) |
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
| 0x455aDA09EeEd8f673815b965c436F93EcA6F7c2e |
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 com.avaloid.net; | |
| import haxe.Timer; | |
| import openfl.display.Stage; | |
| import openfl.display.Loader; | |
| import openfl.events.IOErrorEvent; | |
| import openfl.events.Event; | |
| import openfl.net.URLRequest; | |
| import openfl.system.Security; | |
| import com.avaloid.net.Settings; |
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 functools import wraps | |
| def check_authorization(f): | |
| @wraps(f) | |
| def wrapper(*args, **kwargs): | |
| if get_user_id(request): | |
| response = f(*args, **kwargs) | |
| else: | |
| response = redirect('/') |
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
| # -*- encoding: utf-8 -*- | |
| import logging | |
| from twisted.python import log | |
| from twisted.trial import unittest | |
| from twisted.internet import defer, reactor, protocol | |
| from twisted.internet.protocol import Protocol, Factory | |
| observer = log.PythonLoggingObserver() | |
| observer.start() |
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
| class BehaviorSource(object): | |
| def get_behavior(self, unit_data, state_data): | |
| raise NotImplementedError | |
| class LocalAIBehaviorSource(BehaviorSource): | |
| pass | |
| class GlobalAIBehaviorSource(BehaviorSource): |
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
| # coding: utf-8 | |
| import smtplib | |
| from email.mime.text import MIMEText | |
| from email.Header import Header | |
| from email.Utils import formataddr | |
| # settings | |
| charset = 'UTF-8' | |
| subject = u'Тема' | |
| sender_addr = 'mail@domain.com' |
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
| // | |
| // VERSION 1.4.3 | |
| (function () { | |
| resetProperty = function ( obj ) { | |
| for ( var property in obj ) { | |
| obj[property] = undefined; | |
| } | |
| }; |
NewerOlder