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
| def isolation_level(level): | |
| """Return a Flask view decorator to set SQLAlchemy isolation level | |
| Usage:: | |
| @main.route("/thingy/<id>", methods=["POST"]) | |
| @isolation_level("SERIALIZABLE") | |
| def update_a_thing(id): | |
| ... | |
| """ | |
| def decorator(view): |
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
| myvar = rustlib.do_some_expensive_setup() | |
| rustlib.do_cheap_work(myvar, "something") | |
| rustlib.do_cheap_work(myvar, "something else") |
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
| [ | |
| { | |
| "userName": "alphagov", | |
| "repo": "supplier-submission-portal" | |
| }, | |
| { | |
| "userName": "alphagov", | |
| "repo": "digitalmarketplace-utils" | |
| } | |
| ] |
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 main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "time" |
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
| /example/ | |
| /a.py | |
| /b.py | |
| /tests/ | |
| /unit/ | |
| /example/ | |
| /test_a.py | |
| /test_b.py | |
| /integration/ | |
| /test_a_with_b.py |
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
| define govuk::app::service ( | |
| $ensure => 'present', | |
| ) { | |
| $enable_service = str2bool(extlookup('govuk_app_enable_services', 'yes')) | |
| if $ensure => 'absent' { | |
| service { $title: | |
| provider => 'base', | |
| status => "ps -A | grep -v grep | grep -F '${title}'", |
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
| { | |
| "data": [ | |
| { | |
| "_count": 7.0, | |
| "_group_count": 7, | |
| "key": "ca_clerical_received", | |
| "value:sum": 21119.0, | |
| "values": [ | |
| { | |
| "_count": 0, |
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
| [ | |
| { | |
| "userName": "alphagov", | |
| "repo": "backdrop" | |
| }, | |
| { | |
| "userName": "alphagov", | |
| "repo": "backdrop-collector" | |
| }, | |
| { |
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
| [ | |
| { | |
| "userName": "alphagov", | |
| "repo": "backdrop" | |
| }, | |
| { | |
| "userName": "alphagov", | |
| "repo": "backdrop-collector" | |
| }, | |
| { |
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
| [ | |
| { | |
| "userName": "alphagov", | |
| "repo": "business-support-finder" | |
| }, | |
| { | |
| "userName": "alphagov", | |
| "repo": "calendars" | |
| }, | |
| { |