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
diff --git a/lib/Mojo/Promise.pm b/lib/Mojo/Promise.pm | |
index 19fdd8617..a84ff6006 100644 | |
--- a/lib/Mojo/Promise.pm | |
+++ b/lib/Mojo/Promise.pm | |
@@ -2,6 +2,7 @@ package Mojo::Promise; | |
use Mojo::Base -base; | |
use Mojo::IOLoop; | |
+use Mojo::Util 'deprecated'; | |
use Scalar::Util 'blessed'; |
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
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
google_compute_network.production: Refreshing state... (ID: production-network) | |
google_sql_database_instance.dev: Refreshing state... (ID: dev-rg) | |
google_dns_managed_zone.r12-no: Refreshing state... (ID: r12-no) | |
google_sql_database.rg: Refreshing state... (ID: dev-rg:rg) | |
google_compute_subnetwork.production-eu: Refreshing state... (ID: europe-west1/production-eu-subnet) | |
google_dns_record_set.dev-solr-lb: Refreshing state... (ID: r12-no/dev-solr.r12.no./A) |
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
[0m[1mRefreshing Terraform state in-memory prior to plan...[0m | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
[0m | |
[0m[1mgoogle_compute_network.production: Refreshing state... (ID: production-network)[0m | |
[0m[1mgoogle_sql_database_instance.dev: Refreshing state... (ID: dev-rg)[0m | |
[0m[1mgoogle_dns_managed_zone.r12-no: Refreshing state... (ID: r12-no)[0m | |
[0m[1mgoogle_sql_database.rg: Refreshing state... (ID: dev-rg:rg)[0m | |
[0m[1mgoogle_compute_subnetwork.production-eu: Refreshing state... (ID: europe-west1/production-eu-subnet)[0m | |
[0m[1mgoogle_dns_record_set.dev-solr-lb: Refreshing state... (ID: r12-no/dev-solr.r12.no./A)[0m |
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
omg |
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
omg |
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
extern crate piston_window; | |
extern crate find_folder; | |
use core::f64::consts::PI; | |
use piston_window::*; | |
pub struct App { | |
window: PistonWindow, // OpenGL drawing backend. | |
ball_x: f64, |
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
get '/' => sub { | |
my $c = shift; | |
$c->render_later; | |
$c->ua->get('/internal', sub { | |
my ($ua,$tx)=@_; | |
$c->render(text=>$tx->res->json('/res')); | |
}); |
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
_setup_status_page(app); | |
get '/' => sub { | |
my $c = shift; | |
$c->render_later; | |
$c->ua->get('/internal', sub { | |
my ($ua,$tx)=@_; |
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 StatusTest::Controller::Example; | |
use Mojo::Base 'Mojolicious::Controller'; | |
# This action will render a template | |
sub test { | |
my $self=shift; | |
$self->render_later; | |
$self->ua->get('/internal', sub { | |
my ($ua,$tx) = @_; | |
$self->render($tx->res->json('/res')); |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |