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
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 |
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
#![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 = || { | |
{ |
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
#![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 { |
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
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) |
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 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() |
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
+ 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 |
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
❯ 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); |
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
From c24feb07427f704e9d822ff8e8f00e26fb441141 Mon Sep 17 00:00:00 2001 | |
From: Jan-Erik Rediger <[email protected]> | |
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(-) |
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
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( |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct UploadTask { | |
uint8_t tag; | |
const char* uuid; | |
const char* url; | |
const char* body; | |
}; |