GithubHelp home page GithubHelp logo

blog's People

Contributors

doin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blog's Issues

[富途牛牛]提示价格超出范围

  1. 港股挂单价格规定 挂单价是 24*浮动率 + 市价; 如:腾讯 388 + 24 * 0.2 = 383.2 ~ 392.4
  2. 美股挂单价格规定 挂单价是 市价*20%;

MAC电脑显示隐藏文件

隐藏: defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
显示: defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder

错误过的查询搜索

webstrom

  • 报错:分支无法切换 出现error: The following untracked working tree files would be overwritten by checkout
  • 解决: $ git clean -d -fx

VSCODE 使用

常用插件

  1. Bracket Pair Colorizer :对括号对进行着色,再也不会搞不清状况了。
  2. Git History: 可以查看Git log, file, 和line 历史记录。
  3. Markdown PDF: 将markdown文档转换成pdf的利器
  4. VSCode Great Icons: 我非常喜欢的一套Icons主题,对展开的文件有变色处理,很容易分辨
  5. vscode-fileheader: 添加头header comment,厉害的
  6. monokia dimmed颜色主题,码员大爱
  7. Path Intellisense: 路径提示器,好用得不得了
  8. Setting Sync: 同步你得设置和插件
  9. output colorizer: 输出着色

做最简单的鸡蛋饼干

@圆圆的鸡蛋饼干@

工具

  • 一次性裱花袋
  • 打蛋器

配料

  • 白糖30G
  • 奶粉2勺
  • 面粉100g左右,看鸡蛋大小情况
  • 鸡蛋3个, 这个刚好烤两大盘

步聚

  1. 鸡蛋清和黄分开
  2. 清加白糖打发
  3. 加入黄打均
  4. 加面粉和奶粉打均
  5. 烤15分种左右

GIT使用

给现有的项目添加到GIT管理

git init
git remote add origin xxxxxx远程地址
git pull
//记得添加.igrone过滤
git add .
git commit -am 'xxxx'
git push origin master

Cordova开发学习笔记(一)

安装

sudo npm install -g cordova

Hello world

cordova create hello com.example.hello HelloWorld   //创建项目
cd hello
cordova platform add ios --save
cordova platform add android --save
cordova platform add browser --save
cordova platform ls

打包

cordova build
cordova build ios      //可以打包指定的平台
cordova build android  //debug版本
ln -s platforms/android/build/outputs/apk android-apk  // 建立符号链接 android-apk
// realse包参考 https://segmentfault.com/a/1190000005177715

调试

cordova run android
cordova emulate android //在模拟器上运行(前提是创建好AVD)

插件

https://github.com/unimonkiez/react-cordova-boilerplate
https://crosswalk-project.org/documentation/ios.html

http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html

webstrom工具注册码和卡顿

卡顿

第一种方案,当然就是手动给webstorm更大的内存了,

sudo vim /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions

修改参数,根据具体需要修改即可,一般修改 -Xmx(即最大可占内存)即可
-Xms512m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops

第二种方法,把不必要索引的文件进行排除

左侧的项目里面,选取没必要索引的文件夹,右键——标记目录为——排除,就可以了。

键——Mark Directory As —— Excluded,

在排除之后这个文件夹会有一个淡黄色的背景。

ES6常用语法

let 和 const 命令

  • 不存在变量提升
  • 暂时性死区
  • 块级作用域
  • window| global顶层对象的属性

变量的解构

let [x, , y] = [1, 2, 3];
x // 1
y // 3

let [head, ...tail] = [1, 2, 3, 4];
head // 1
tail // [2, 3, 4]

let [x, y, ...z] = ['a'];
x // "a"
y // undefined
z // []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.