Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
diff --git a/assets/components/SidebarChat.svelte b/assets/components/SidebarChat.svelte
index 1b1a6bcf..70be23ec 100644
--- a/assets/components/SidebarChat.svelte
+++ b/assets/components/SidebarChat.svelte
@@ -10,31 +10,30 @@ let unread = 0;
const api = getContext('api');
const byName = (a, b) => a.name.localeCompare(b.name);
-function loadConversations() {
- api.execute('getUser', {
#!/usr/bin/perl -w
use YAML;
my $yaml=Load('---
a:
b: 1
c: 2
e: 3');
$yaml->{a}->{d}=2;
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)=@_;