Skip to content

Instantly share code, notes, and snippets.

0:10.83 warning: unused variable: `v`
0:10.83 --> /home/jer/mozilla/src/gecko/obj/toolkit/components/glean/api/src/metrics.rs:411:64
0:10.83 |
0:10.83 411 | let extra = extra.map(|m| m.into_iter().map(|(k, v)| (k.try_into().unwrap(), v)).collect());
0:10.83 | ^ help: if this is intentional, prefix it with an underscore: `_v`
0:10.83 |
0:10.83 = note: `#[warn(unused_variables)]` on by default
0:10.83 warning: 1 warning emitted
#![feature(prelude_import)]
#![feature(generators, generator_trait, try_trait)]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
fn fizz_buzz() -> (impl Iterator<Item = String>) {
let __ret = || {
{
#![feature(optin_builtin_traits, negative_impls)]
use std::marker::PhantomData;
auto trait NotSame{}
impl<A> !NotSame for (A, A) {}
struct Is<S, T>(PhantomData<(S,T)>);
impl<S,T> Is<S,T> where (S,T): NotSame {
local wf = hs.window.filter
local zoomWins = wf.new(false):setAppFilter('zoom.us')
zoomWins:subscribe(wf.windowCreated, function(window)
local builtin = hs.screen.find("Color LCD")
window:moveToScreen(builtin)
end)
diff --git glean-core/ios/Glean/Net/HttpPingUploader.swift glean-core/ios/Glean/Net/HttpPingUploader.swift
index bffaf32d..2bb977c5 100644
--- glean-core/ios/Glean/Net/HttpPingUploader.swift
+++ glean-core/ios/Glean/Net/HttpPingUploader.swift
@@ -100,13 +100,14 @@ public class HttpPingUploader {
/// It will continue upload as long as it can fetch new tasks.
func process() {
while true {
- let incomingTask = glean_get_upload_task()
+ var incomingTask = FfiPingUploadTask()
+ export MSYS_NO_PATHCONV=1
+ MSYS_NO_PATHCONV=1
+++ dirname src/ci/docker/run.sh
++ cd src/ci/docker
++ pwd
++ basename src/ci/docker/run.sh
+ script=/home/jer/code/rust/src/ci/docker/run.sh
+ image=arm-android
++ dirname /home/jer/code/rust/src/ci/docker/run.sh
+ docker_dir=/home/jer/code/rust/src/ci/docker
❯ cat t.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void) {
char *s = malloc(13);
strcpy(s, "is it there?");
s[12] = 0;
printf("str: %s\n", s);
From c24feb07427f704e9d822ff8e8f00e26fb441141 Mon Sep 17 00:00:00 2001
From: Jan-Erik Rediger <janerik@fnordig.de>
Date: Thu, 27 Feb 2020 17:52:25 +0100
Subject: [PATCH] Configure app build in the corresponding build.gradle
---
clients/android/app/build.gradle | 7 +++++++
clients/android/build.gradle | 8 --------
2 files changed, 7 insertions(+), 8 deletions(-)
from pathlib import Path
from glean import Glean, Configuration
from glean import (load_metrics,
load_pings)
config = Configuration()
config.ping_tag = "mozregression-test-tag"
config.log_pings = True
Glean.initialize(
#include <stdio.h>
#include <stdlib.h>
struct UploadTask {
uint8_t tag;
const char* uuid;
const char* url;
const char* body;
};