Skip to content

Instantly share code, notes, and snippets.

Bryan Forbes bryanforbes

Block or report user

Report or block bryanforbes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bryanforbes
bryanforbes / __init__.pyi
Created Apr 5, 2020
Reproduction for mypy 8481
View __init__.pyi
from .user import User as User, ClientUser as ClientUser
from .channel import *
from .message import Message as Message
from . import abc
View keybase.md

Keybase proof

I hereby claim:

  • I am bryanforbes on github.
  • I am bryanforbes (https://keybase.io/bryanforbes) on keybase.
  • I have a public key ASCW5FzcK3rMcZwjVYscQO_o43x4bZ-iZ8PGs9YhCfhpzQo

To claim this, I am signing this object:

View pyproject.toml
[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Bryan Forbes"]
license = "BSD-3-Clause"
[tool.poetry.dependencies]
python = "^3.7"
"discord.py" = {git = "https://github.com/Rapptz/discord.py.git",rev = "860d6a9ace8248dfeec18b8b159e7b757d9f56bb",extras = ["voice"]}
@bryanforbes
bryanforbes / README.md
Last active Apr 26, 2016
Angular2 + Typescript Demo Plunk
View README.md

Angular2 Starter Plunker - Typescript - Beta 0

A simple plunker demonstrating Angular2 usage:

  • Uses SystemJS + TypeScript to compile on the fly
  • Includes binding, directives, http, pipes, and DI usage.
@bryanforbes
bryanforbes / README.md
Created Apr 26, 2016
Angular2 + Typescript Demo Plunk
View README.md

Angular2 Starter Plunker - Typescript - Beta 0

A simple plunker demonstrating Angular2 usage:

  • Uses SystemJS + TypeScript to compile on the fly
  • Includes binding, directives, http, pipes, and DI usage.
View dojo-2.0.d.ts
// ambient module definition
declare module 'dojo-core/Promise' {
// interface definition
export interface Executor<T> {
(resolve: (value?: T | Thenable<T>) => void, reject: (reason?: any) => void): void;
}
// function definition
export function isThenable(value: any): boolean;
View A.js
define(function (require) {
var B = require('./B');
return function () {
B();
};
});
View intern.ts
import intern = require('intern');
import echo = require('intern/dojo/has!host-node?./services/echo');
let server: any;
if (echo && intern.mode === 'runner') {
echo.start().then(function (_server: any) {
server = _server;
});
}
View keybase.md

Keybase proof

I hereby claim:

  • I am bryanforbes on github.
  • I am bryanforbes (https://keybase.io/bryanforbes) on keybase.
  • I have a public key whose fingerprint is 3D7D B728 713A BB7B B8B1 5B61 3888 17E0 70CA 0F3D

To claim this, I am signing this object:

View WeakMap.ts
import { hasClass } from './decorators';
import global from './global';
module Native {
interface NativeWeakMap<K, V> {
delete(key: K): boolean;
get(key: K): V;
has(key: K): boolean;
set(key: K, value?: V): NativeWeakMap<K, V>;
}
You can’t perform that action at this time.