I hereby claim:
- I am creativcoder on github.
- I am creativcoder (https://keybase.io/creativcoder) on keybase.
- I have a public key whose fingerprint is 92EA 6E57 FD2C DE78 09C5 63B8 D4EF 102E F4C8 3AC4
To claim this, I am signing this object:
.-/+oossssoo+/-. creativcoder@autobot | |
`:+ssssssssssssssssss+:` -------------------- | |
-+ssssssssssssssssssyyssss+- OS: Ubuntu 21.04 x86_64 | |
.ossssssssssssssssssdMMMNysssso. Host: ZenBook UX425EA_UX425EA 1.0 | |
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.11.0-37-generic | |
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 26 mins | |
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2616 (dpkg), 22 (snap) | |
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: zsh 5.8 | |
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080 | |
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME 3.38.4 |
// Blog post: https://creativcoder.dev/merge-k-sorted-arrays-rust | |
// Merge 2 sorted arrays | |
fn merge_2(a: &[i32], b: &[i32]) -> Vec<i32> { | |
let (mut i, mut j) = (0, 0); | |
let mut sorted = vec![]; | |
let remaining; | |
let remaining_idx; | |
loop { | |
if a[i] < b[j] { |
> cargo build | |
Compiling compiler_builtins v0.1.32 | |
Compiling core v0.0.0 (/home/creativcoder/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) | |
Compiling proc-macro2 v1.0.19 | |
Compiling unicode-xid v0.2.1 | |
Compiling syn v1.0.38 | |
Compiling semver-parser v0.7.0 | |
Compiling proc-macro-hack v0.5.18 | |
Compiling paste v1.0.0 | |
Compiling semver v0.9.0 |
use app_units::Au; | |
use style::servo::media_queries::{ExpressionKind, Range}; | |
use style::media_queries::{MediaQuery, MediaQueryType}; | |
use style::media_queries::{Expression}; | |
use style::values::specified::{Length, NoCalcLength, AbsoluteLength}; | |
pub fn test_media_query(len: i32) -> MediaQuery { | |
// try this updated line below, we just imported AbsoluteLength which is an enum and use its Px variant | |
let length = Length::NoCalc(NoCalcLength::Absolute(AbsoluteLength::Px(len))); | |
let expr = Expression(ExpressionKind::Width(Range::Max(length))); |
I hereby claim:
To claim this, I am signing this object:
use std::marker::Sized; | |
struct Tee; | |
trait T: { | |
fn foo(&self) { | |
bar(&self) | |
} | |
} |
Approach:
The service worker manager will send a message to constellation with, its sender and a pipeline id, and a scope_url.
The constellation on receiving the message will find the pipeline and send a message to its containing script thread passing the SW manager sender.
The script_thread
on receiving the message will query its TLS ServiceWorkerRegistration
(by scope_url
) and retrieve the Trusted<ServiceWorker>
by calling get_trusted_worker()
on ServiceWorkerRegistration
object , and send the Trusted<ServiceWorker>
to the SW manager using the sender which it gets from the constellation.
So is this approach going in right direction ?
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CallPython | |
{ |
Tags: Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version | |
Go to menu Help > Enter License. | |
----- BEGIN LICENSE ----- | |
J2TeaM | |
2 User License | |
EA7E-940282 | |
45CB0D8F 09100037 7D1056EB A1DDC1A2 |