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
// ==UserScript== | |
// @name GitHub Pull: All open review requests button | |
// @namespace Violentmonkey Scripts | |
// @match https://github.com/pulls* | |
// @grant MIT | |
// @version 1.0 | |
// @author Reece Hart <[email protected]> | |
// @description Add button to show previously reviewed pull requests that are still open | |
// @require https://code.jquery.com/jquery-3.6.1.slim.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
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
<div class="wrap"> | |
<video id="video" width="320" controls="true"> | |
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"> | |
<!-- FireFox 3.5 --> | |
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"> | |
<!-- WebKit --> | |
Your browser does not support HTML5 video tag. Please download FireFox 3.5 or higher. | |
</video> | |
<br/> | |
<button id="cit" onclick="shoot()" class="button">Capture</button> |
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
# FreshBooks OAuth2 authentication example | |
# Based on examples from | |
# https://requests-oauthlib.readthedocs.io/en/latest/examples/examples.html | |
# Credentials you get from registering a new application | |
# at https://my.freshbooks.com/#/developer | |
client_id = '<the id you get from FreshBooks>' | |
client_secret = '<the secret you get from FreshBooks>' | |
# OAuth endpoints from FreshBooks API documentation |
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
#!/usr/bin/python | |
# schema from README.md | |
schema = """ | |
{ | |
"title": "Example Schema", | |
"type": "object", | |
"properties": { | |
"firstName": { | |
"type": "string" |
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
swagger: "2.0" | |
info: | |
title: "https://github.com/swagger-api/swagger-codegen/issues/5460" | |
basePath: "/0" | |
schemes: | |
- "https" | |
- "http" | |
paths: | |
/test/: |
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
#!/usr/bin/env python | |
import os | |
os.environ["SETUPTOOLS_SCM_DEBUG"] = "1" | |
import pkg_resources | |
import setuptools_scm | |
print("setuptools_scm = " + str(pkg_resources.get_distribution("setuptools_scm"))) | |
print(setuptools_scm.get_version()) |
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
#!/usr/bin/env python2 | |
# This script returns for me: | |
# ga4gh version: 0.1.dev616+ncbb0131b36d2 | |
# AssertionError: reversing filter order changes number of results (697!=56) | |
# using server test data as described here: | |
# https://github.com/ga4gh/server/pull/930 | |
import ga4gh.client |
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 copy | |
global_conf_defaults = { | |
'order': 'FL', | |
} | |
global_conf = copy.deepcopy(global_conf_defaults) | |
class Name(object): | |
""" |
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
{ | |
"loci": [ | |
{ | |
"ac": "NC_000003.11", | |
"ref": "T", | |
"alt": "C", | |
"HGVSg": "NC_000004.14:g.57232242T>C", | |
"annotations": { | |
"aliases": { | |
"dbSNP": [ |
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
'variantannotations' => [ | |
{ | |
'created' => '1430919899622', | |
'id' => 'subs', | |
'transcriptEffects' => [ | |
{ | |
'featureId' => 'ENST00000390914', | |
'IMPACT' => 'MODIFIER', | |
'alternateSequence' => 'C', | |
'effects' => [ |