NativeScript 101
API Wrapper API Wrapper API Wrapper API Wrapper • Plugins created with JS/TypeScript • Angular Support (or not ?) • 100% Day 0 API Access • Everything Runs on UI Thread* • Plugins created with with native code • React Support • API Access via Native Modules • UI Thread vs JS Thread • Angular/Vue/Vanilla vs React • Progress vs Facebook • Apache 2.0 vs BSD+ JavaScript-Driven Native • Share Project Timeline NativeScript npm Downloads What is NativeScript? o Open source framework (ASLv2) o Create native mobile apps for iOS & Android o Use web skills o JS, CSS, XML-based markup o Write0 码力 | 90 页 | 40.11 MB | 1 年前3nativescript-new-looper-vantoll.pptx
Plugins ? • Community ? • Apps ? Core ? Core ? • CLI updates ? • Webpack ? • Threading ⛓ • Angular ? LiveSync on multiple devices ?? tns run ios --watch tns run android --watch Run and watch • Samples for background execution are now available. • WebWorkers API coming soon Angular ? • Angular 2 final—Now 100% more a thing ? @next builds npm install -g nativescript@next Tooling ? nativescript-slides (5,436) - Josh Sommer - 3) ? nativescript-plugin-firebase (6,523) - Eddy Verbruggen - 2) ? nativescript-apiclient (8,066) - Marcel Kloubert - 1) ? nativescript-toolbox (10,772) - Marcel0 码力 | 36 页 | 10.78 MB | 1 年前3NativeScript UI
Raucous applause ?? What is {N} UI? • A NativeScript plugin • 7 UI components • Supports Angular and non-Angular usage. • Used to have free and paid tiers—now all free! Agenda • Introduce {N} UI state in the US. •Freshwater coastline •Public golf courses •Non-motorized trails Michigan Fact #2 • One US president is from Michigan. Michigan Fact #3 • Detroit has the largest municipal bankruptcy •https://github.com/telerik/nativescript-ui-samples •https://github.com/telerik/nativescript-ui-samples-angular Thanks! ? @tjvantoll0 码力 | 22 页 | 1.91 MB | 1 年前3Introduction to Mobile UI Test Automation
javascript#appium-server-capabilities Demo Ready To Execute Note: Device name App path $ npm run e2e -- --runType=android23 Benefits Locators driver.locators.listView Android: android.widget.ListView nativescript-facebook plugin: www.github.com/NativeScript/nativescript-facebook/blob /master/demo/e2e-tests/tests.js Integration Drawbacks Relies on Appium team for supporting new OS versions BRACE github.com/NativeScript/ns-dev-days-appium-plu gin www.github.com/NativeScript/nativescript-angular/tre e/master/e2e Questions? Thank you! @vchimev @SvetoslavTsenov0 码力 | 41 页 | 4.75 MB | 1 年前3C++高性能并行编程与优化 - 课件 - 17 由浅入深学习 map 容器
能不能在遍历的同时删除元素?安全吗? emplace , emplace_hint , try_emplace 的区别? 课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 迭代器分类 (BV1m34y157wb) 3. string , string_view , const char * 的爱恨纠葛 (BV1ja411M7Di) 4 int> counter; • for (auto const &key: input) { • counter[key]++; } • 则 counter 最后为: • {“hello”: 2, “world”: 1}; [] 运用举例:归类 • vectorinput = {“happy”, “world”, “hello”}; • map > • for (pair tmp: m) • 如果要单独访问 K 或者 V 怎么办?我们看一下 pair 2> 的定义,里面只有两个成 员: • struct pair 2> { • T1 first; T2 second; • }; map 的遍历:用 C++17 range-based loop • 所以 for (auto tmp: m) 0 码力 | 90 页 | 8.76 MB | 1 年前3C++23: An Overview of Almost All New and Updated Features
Metrology marc.gregoire@nuonsoft.com Microsoft VC++ MVP Since 2007 Author of Professional C++, 2nd, 3rd, 4th, and 5th Edition Co-author of C++ Standard Library Quick Reference& C++17 Standard Library With deducing this: auto fibonacci = [](this auto self, int n) { if (n < 2) { return n; } return self(n - 1) + self(n - 2); };12 Agenda C++23 Core Language Explicit Object Parameters if g.: void do_something(int number_that_is_only_0_1_2_or_3) { switch (number_that_is_only_0_1_2_or_3) { case 0: case 2: handle_0_or_2(); break; case 1: handle_1(); break;0 码力 | 105 页 | 759.96 KB | 5 月前3C++高性能并行编程与优化 - 课件 - 14 C++ 标准库系列课 - 你所不知道的 set 容器
e 上期回顾: https://www.bilibili.com/video/BV1qF411T7sd 课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 迭代器分类 ( 本期 ) 3. string , string_view , const char * 的爱恨纠葛 4. 万能的 map 容器全家桶及其妙用举例 5 ,内存管理与对象生命周期 set 和 vector 的区别 • 都是能存储一连串数据的容器 。 • 区别 1 : set 会自动给其中的 元素从小到大排序,而 vector 会保持插入时的顺序。 • 区别 2 : set 会把重复的元素 去除,只保留一个,即去重。 • 区别 3 : vector 中的元素在内 存中是连续的,可以高效地按 索引随机访问, set 则不行。 • 区别 4 : set 中的元素可以高 std::distance(it1, it2) 相当于 it2 - it1 ,注意顺序和 - 相反 。 • 注意: distance 要求 it1 < it2 。 迭代器系列帮手函数一览 帮手函数 等价于 it2 = std::next(it1, n) it2 = it1 + n it2 = std::prev(it1, n) it2 = it1 - n it2 = std::next(it1) it2 = it10 码力 | 83 页 | 10.23 MB | 1 年前3KubeCon2020/大型Kubernetes集群的资源编排优化
manage so many clusters ,resources and businesses How to ensure load balancing of cluster nodes 1 2 Improper resource requests 3 Multi-tenant resource preemption How to expand horizontally more quickly Cluster1 Cluster2 Cluster2 … Region N … Cluster1 Cluster2 … Cluster2 Business 1 Business 2 Business 3 Business N … How to ensure load balancing of cluster nodes ? Dynamic-Scheduler Node1 Node2 Kube-scheduler Kube-scheduler Pod Request Load Level Request Load Level Real Load Level Real Load Level Assigned to Node2 The native K8S scheduling is based on the resource request of Pod. However, in many cases, some nodes0 码力 | 27 页 | 3.91 MB | 1 年前3hazard pointer synchronous reclamation
pointer A SRC A hazard pointer is a single-writer multi-reader pointer. set HP to A if SRC == A clear HP 2 3 6 if HP != A HP Safe to delete A A 7 8 SAFE ACCESS If a hazard pointer points to an object Beyond Concurrency TS2 – Maged Michael Protector Remover / Reclaimer Hazard pointers protect access to objects that may be removed concurrently. SAFE RECLAMATION Concurrency TS2 Essential Hazard Pointer Hazard Pointer Synchronous Reclamation Beyond Concurrency TS2 – Maged Michael See N4895 (wg21.link/n4895) for working draft of Concurrency TS2 Example Using Hazard Pointers class Foo : public hazard_p0 码力 | 31 页 | 856.38 KB | 5 月前3C++高性能并行编程与优化 - 课件 - 02 现代 C++ 入门:RAII 内存管理
com/parallel101/course 高性能并行编程与优化 - 课程大纲 • 分为前半段和后半段,前半段主要介绍现代 C++ ,后半段主要介绍并行编程与优化。 1.课程安排与开发环境搭建: cmake 与 git 入门 2.现代 C++ 入门:常用 STL 容器, RAII 内存管理 3.现代 C++ 进阶:模板元编程与函数式编程 4.编译器如何自动优化:从汇编角度看 C++ 5.C++11 起的多线程编程:从 mutex 结业典礼:总结所学知识与优秀作业点评 I 硬件要求: 64 位( 32 位时代过去了) 至少 2 核 4 线程(并行课…) 英伟达家显卡( GPU 专题) 软件要求: Visual Studio 2019 ( Windows 用户) GCC 9 及以上( Linux 用户) CMake 3.12 及以上(跨平台作业) Git 2.x (作业上传到 GitHub ) CUDA Toolkit 10.0 以上( GPU 如题,那么如何定义构造函数呢? BV1h64y197Fd 自定义构造函数:无参数 自定义构造函数:无参数(使用初始化表达式) 为什么需要初始化表达式? 1. 假如类成员为 const 和引用 2. 假如类成员没有无参构造函数 3. 避免重复初始化,更高效 自定义构造函数:多个参数 自定义构造函数:单个参数 自定义构造函数:单个参数(陷阱) 自定义构造函数:单个参数(避免陷阱) 避免陷阱体现在哪里?0 码力 | 96 页 | 16.28 MB | 1 年前3
共 73 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8