arrow

Basic Vim Command

不想你离开。 提交于 2020-03-01 09:39:22
What is vi? UNIX系统下默认的编辑器 vi的操作模式 Command mode 输入的字符都是命令( 区分大小写 ),也可以进入Insert mode Insert mode 输入的字符来修改文件内容 进入vi vi filename 退出vi :x<Return> quit vi, writing out modified file to file named in original invocation :wq<Return> quit vi, writing out modified file to file named in original invocation :q<Return> quit (or exit) vi :q!<Return> quit vi even though latest changes have not been saved for this vi cal ZZ Exit, saving changes 命令模式下移动光标位置 j or <Return> [or down-arrow] move cursor down one line k [or up-arrow] move cursor up one line h or <Backspace> [or left-arrow] move cursor left one

jquery滑动模式的幻灯片组件

谁都会走 提交于 2020-02-29 14:47:06
效果图 slider.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>slider</title> <link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="../css/slider.css"> </head> <body> <div class="slider"> <div class="slider-img slide-slide"> <a href="#" class="slider-img-item"><img src="../img/focus-slider/1.png"></a> <a href="#" class="slider-img-item"><img src="../img/focus-slider/2.png"></a> <a href="#" class="slider-img-item"><img src="../img/focus-slider/3.png"></a> <a href="#" class="slider-img-item"><img src="../img/focus-slider/4.png"></a> </div> <ol class=

pandas入门07---可视化

房东的猫 提交于 2020-02-29 04:32:27
01 入门 制作提供信息的可视化是数据分析的重要任务之一。首先介绍一下matplotlib库。 import matplotlib.pyplot as plt import numpy as np data = np.arange(10) print(data) plt.plot(data) plt.show() 简单的线性图: 01-01 图片与子图 matplotlib生成的图位于图片对象中,可以使用plt.figure生成一个新的图片。 plt.figure有一些选项,例如figsize可以确保图片有一个确定的大小及存储在硬盘时的长宽比。 可以使用add_subplot创建一个或多个子图。 ax1 = fig.add_subplot(2,2,1) 上面图片的意思是图形为 2*2 ,并且序号为1。 01-02 调整子图间距 可以使用subplots_adjust调整图的大小。 其中参数wspace和hspace分别控制的是图片的宽度和高度百分比,以用作子图间的间距。 生成简单随机漫步图表: fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.plot(np.random.randn(1000).cumsum()) # 显示中文 plt.rcParams['font.sans-serif']=['SimHei'] plt

JavaScript,Node.js:Array.forEach是否异步?

巧了我就是萌 提交于 2020-02-27 22:54:05
我对JavaScript的本机 Array.forEach 实现有疑问:它是否异步运行? 例如,如果我打电话: [many many elements].forEach(function () {lots of work to do}) 这将是非阻塞的吗? #1楼 这是一个简短的异步函数,无需第三方库即可使用 Array.prototype.each = function (iterator, callback) { var iterate = function () { pointer++; if (pointer >= this.length) { callback(); return; } iterator.call(iterator, this[pointer], iterate, pointer); }.bind(this), pointer = -1; iterate(this); }; #2楼 编辑2018-10-11:看起来下面描述的标准很有可能无法通过,可以考虑使用 流水线 作为替代方法(表现不完全相同,但是方法可以在类似的庄园中实现)。 这就是为什么我对es7感到兴奋的原因,将来您将能够执行类似以下代码的操作(某些规格不完整,因此请谨慎使用,我会尽量保持最新状态)。 但是基本上使用新的:: bind运算符,您将能够在对象上运行方法,就像对象的原型包含该方法一样。

Principle for Mac(交互式屏幕设计软件) 5.10免激活版

落爺英雄遲暮 提交于 2020-02-26 09:51:23
Mac上好用的交互式屏幕设计软件,Principle for Mac是一款交互式屏幕设计软件,principle mac让您的设计将以原则出现,随时为您注入新的活力。如果您进行更改,再次导入将智能地合并您的工作。您可以通过将设备插入计算机立即进行交互。您还可以导出独立的Mac应用程序以供其他人查看。 Principle for Mac https://www.macdown.com/mac/1438.html Principle for Mac激活版软件功能 专为最大的想象力而打造 您可能想要设计很多东西:短动画,光滑互动或广泛的多屏应用。无论你在做什么,你都可以用Principle来做。 动画 Principle的时间表使得它能够快速地演示出完美的弹跳,轻松和流行。 相互作用 想要设计一个全新的互动?原则使您可以自由地进行实验,而不会限制您使用预定义的过渡。 多个屏幕 设计多屏幕应用程序的流程是轻而易举的; 当你完成后,你将对你的所有屏幕都有一个鸟瞰图。 全新,但又很熟悉 有了画板,魔法动画和时间线,使用Principle会给你Déjàvu。 拿起你离开的地方 使用简单的一键导入器从您喜爱的设计工具导入您的设计。您的设计将以原则出现,随时为您注入新的活力。如果您进行更改,再次导入将智能地合并您的工作。 设计用于移动,Web和桌面 选择设备预设或输入自定义画板尺寸以设计您喜欢的平台

编译lineage过程中,一些有用的github仓库记录

本秂侑毒 提交于 2020-02-26 05:45:06
LineageOS官方仓库: https://github.com/LineageOS PixelExperience,第三方的rom,暂时没研究过,仓库里也有不少干活: https://github.com/PixelExperience-Devices ArrowOS,第三方rom,暂时没研究过,仓库里也有不少干活: https://github.com/ArrowOS-Devices omnirom,第三方rom,大名鼎鼎的TWRP就是在这个rom里面进行官方适配的,仓库里也有不少干活: https://github.com/omnirom AospExtended-Devices,第三方rom,暂时没研究过,仓库: https://github.com/AospExtended-Devices ResurrectionRemix-Devices,第三方rom: https://github.com/ResurrectionRemix-Devices ValidusOs-Devices,第三方: https://github.com/ValidusOs-Devices DirtyUnicorns,第三方: https://github.com/DirtyUnicorns AOSiP-Devices,第三方: https://github.com/AOSiP-Devices

PHP 7.4 有什么新特性功能?

你说的曾经没有我的故事 提交于 2020-02-26 01:06:11
PHP 7.4, the last version before PHP 8, brings lots of new features, syntax additions and fixes. It was be released on November 28, 2019. In this post you'll find a list with everything that's new and changed to help you prepare for the upgrade. Let's start though with a few highlights, included in PHP 7.4: Arrow functions for cleaner one-liner functions Preloading to improve performance Typed properties in classes Improved type variance The null coalescing assignment operator as a shorthand FFI for better extension development in PHP Underscores can be used to format numeric values Spread

jquery二级导航

痞子三分冷 提交于 2020-02-25 22:49:19
效果图 直接放代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>cat</title> <link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="../css/cat.css"> </head> <body> <div class="content"> <div class="container"> <div id="cat" class="cat"> <a href="#" class="cat-title"><i class="cart-icon">#</i>商品分类</a> <div class="cat-item dropdown" data-active="cat" data-load="../js/cat-1.json"> <div class="dropdown-toggle"> <a href="#" class="cat-item-link">家用电器</a> <span class="dropdown-arrow cat-arrow">></span> </div> <div class="dropdown-list"> <div class="dropdown

“箭头功能”和“功能”是否等效/可互换?

耗尽温柔 提交于 2020-02-25 15:34:05
ES2015中的箭头函数提供了更简洁的语法。 我现在可以用箭头函数替换所有函数声明/表达式吗? 我要注意什么? 例子: 构造函数 function User(name) { this.name = name; } // vs const User = name => { this.name = name; }; 原型方法 User.prototype.getName = function() { return this.name; }; // vs User.prototype.getName = () => this.name; 对象(文字)方法 const obj = { getName: function() { // ... } }; // vs const obj = { getName: () => { // ... } }; 回呼 setTimeout(function() { // ... }, 500); // vs setTimeout(() => { // ... }, 500); 可变函数 function sum() { let args = [].slice.call(arguments); // ... } // vs const sum = (...args) => { // ... }; #1楼 tl; dr: 不! 箭头函数和函数声明

jquery带下拉列表的购物车组件封装

喜夏-厌秋 提交于 2020-02-24 23:22:47
按照国际惯例先放效果图 安静的时候它长这样 等待加载时它长这样(功能是设置的按需加载,网速慢或者加载数据大时会出现) 加载之后购物车没有商品时这样 有商品长这样 首页index.html <!DOCTYPE html> <html lang="zh-CN"><!-- 设置简体中文 --> <head> <meta charset="UTF-8"> <title>index</title> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/common.css"> <link rel="stylesheet" href="css/index.css"> <!-- css一般放在DOM加载前,防止DOM裸奔 --> </head> <body> <!-- 导航 --> <div class="nav-site"> <div class="container"> <ul class="fl"> <li class="fl"><a href="javascript:;" class="nav-site-login">亲,请登录</a></li> <li class="fl"><a href="javascript:;" class="nav-site-reg link">免费注册</a>