Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
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';
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)
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)
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,
#!/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'));
});
#!/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)=@_;
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'));
# 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