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 GUID_EMPTY: string = '00000000-0000-0000-0000-000000000000'; | |
| const GUID_FORMAT: RegExp = /\{?([a-z0-9]{8}(?:-[a-z0-9]{4}){3}-[a-z0-9]{12})\}?/i; | |
| /** | |
| * A unique identifier. | |
| */ | |
| export class Guid { | |
| private _id: string; |
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 graphql.execution.executors.sync import SyncExecutor | |
| """ | |
| Usage example: | |
| from functools import partial | |
| class MyServiceCache(BulkRequestCache): | |
| def __init__(): | |
| self.requested_values = set() |
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
| #!/bin/sh | |
| echo "Install neovim from ppa" | |
| sudo add-apt-repository -y ppa:neovim-ppa/unstable | |
| sudo apt-get update | |
| sudo apt-get install -y neovim | |
| sudo apt install qt5-default libqt5widgets5 | |
| echo "Compile and install neovim-qt" | |
| git clone https://github.com/maorv/neovim-qt.git |
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
| import select | |
| import datetime | |
| import psycopg2 | |
| import psycopg2.extensions | |
| from sqlalchemy import create_engine, text | |
| engine = create_engine("postgresql+psycopg2://vagrant@/postgres") |