a
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 LoginToGrafana | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-06-06 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.grafana-workspace.eu-west-2.amazonaws.com/login | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// ==/UserScript== |
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
[ | |
{ | |
"instance_id": "astropy__astropy-12057", | |
"model_name_or_path": "astropy", | |
"model_patch": "diff --git a/astropy/nddata/nduncertainty.py b/astropy/nddata/nduncertainty.py\n--- a/astropy/nddata/nduncertainty.py\n+++ b/astropy/nddata/nduncertainty.py\n@@ -395,6 +395,40 @@ def _propagate_multiply(self, other_uncert, result_data, correlation):\n def _propagate_divide(self, other_uncert, result_data, correlation):\n return None\n \n+ def represent_as(self, other_uncert):\n+ \"\"\"Convert this uncertainty to a different uncertainty type.\n+\n+ Parameters\n+ ----------\n+ other_uncert : `NDUncertainty` subclass\n+ The `NDUncertainty` subclass to convert to.\n+\n+ Returns\n+ -------\n+ resulting_uncertainty : `NDUncertainty` instance\n+ An instance of ``other_uncert`` subclass containing the uncertainty\n+ converted to the new uncertainty type.\n+\n+ Raises\n+ ------\n+ TypeError\n+ |
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 requests | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import click | |
PYPI_URL = "https://pypi.org/project/{project_name}/#history" | |
def get_releases(request): |
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
query { | |
viewer { | |
pullRequests(first: 10) { | |
edges { | |
node { | |
url | |
repository { | |
nameWithOwner | |
} | |
} |
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
~/go/src/gruvee.com | |
-> cli | |
-> auth | |
-> whatever | |
the fully qualified package names for these would then be | |
gruvee.com/cli ... etc |
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
"go.toolsEnvVars": { | |
"GOFLAGS": "-mod=vendor", | |
"CGO_ENABLED": "0", | |
"GO111MODULE": "on", | |
}, | |
"terminal.integrated.env.osx": { | |
"GOFLAGS": "-mod=vendor", | |
"CGO_ENABLED": "0", | |
"GO111MODULE": "on", | |
}, |
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
job:autoupdate: | |
image: php:7.3-cli | |
only: | |
- schedules | |
before_script: | |
# Install composer dependencies | |
- apt-get update -y >/dev/null && apt-get install -y libpng-dev git zip unzip >/dev/null | |
- docker-php-ext-install calendar gd >/dev/null | |
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
- php composer-setup.php >/dev/null |
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
composer-link() { | |
jq '.repositories |= [{"type": "path", "url": "'$1'", "options": {"symlink": true}}] + . ' composer.json > composer.tmp.json && mv composer.tmp.json composer.json | |
packageName=$(jq -r '.name' $1/composer.json) | |
composer require $packageName @dev | |
} | |
composer-unlink() { | |
git checkout composer.json composer.lock |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "SubstraktS3SingleBucketReadWrite", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutAnalyticsConfiguration", | |
"s3:GetObjectVersionTagging", | |
"s3:ReplicateObject", |
NewerOlder