×

Falcon

  • Learn English With Movies | Will Smith - “The Pursuit of Happyness”

    drop (someone/something) off - to leave someone/something at the destination to which one has transported it (捎带) ============================== Acquaintance - 相识 ==========...

    2020-02-21 12:00 Falcon 阅读
  • 在Swift中使用数学函数出错

    在swift 中使用一些数学函数如: sqrt(), floor(), round(), sin() ,pow() 出现以下错误: Use of unresolved identifier 'pow' 根据平台的和实际需要,import不同的库 如果仅需要简单的数学函数运算 import Darwin如果还需要其他标准函...

    2020-02-19 16:53 Falcon 阅读
  • Xcode 增加复制一行、删除一行的快捷键

      167   +50 Go to this folder which contains dark side of the force: Xcode 4.2 or prior: /Developer/Library/PrivateFramewo...

    2020-02-10 18:23 Falcon 阅读
  • 通过键值获取字典的对应的值时,返回的值是optional类型的

    let studentsAndscores = ["Amy": 88, "James": 55, "Helen": 99]   Then your function should print 99.   But you don't know what the scores are, so you...

    2020-02-03 18:02 Falcon 阅读
  • Swift 正确重命名IBAction函数

    Swift 正确的重命名IBAction函数方法是: 单击函数名右键 refactor , rename 如果简单的重新修改函数名会出现找不到关联IBAction崩溃的情况。 这时可以右键单击storyboard文件,Open As > Source Code   ,这时候会出现一个xml文件,在这里查找旧函数名并替换成新的函...

    2020-02-03 15:42 Falcon 阅读
  • 生成 arm架构的docker compose

    I had built it on my Raspberry Pi 3 Model B Rev 1.2 with Raspbian10 (buster) [arm/v7].You can try to do it on your Raspberry Pi 4. pi@raspberrypi:~ $ git clone https://github.com/...

    2020-01-30 13:22 Falcon 阅读
  • Safari Date() 函数对日期时间字符串(yyyy-MM-dd HH:mm:ss) 提示NaN的问题

    今天发现一个奇怪的问题,在iPhone使用 safari 选择定时发布文章到OSC,选择时间后提示不是合法的时间,判断时间的代码如下: var d = new Date('2020-01-23 23:15'); if (isNaN(d)) { console.log('isNaN'); }else{ console.log(...

    2020-01-24 12:45 Falcon 阅读
  • git-stash 用法小结

    发现有一个类是多余的,想删掉它又担心以后需要查看它的代码,想保存它但又不想增加一个脏的提交。这时就可以考虑git stash。 使用git的时候,我们往往使用分支(branch)解决任务切换问题,例如,我们往往会建一个自己的分支去修改和调试代码, 如果别人或者自己发现原有的分支上有个不得不修改的bug,我们往往会把完成一半的代码commit提交到本地仓...

    2020-01-23 06:58 Falcon 阅读
  • 树莓派3b 安装openwrt

    https://downloads.openwrt.org/releases/19.07.0/targets/brcm2708/bcm2710/openwrt-19.07.0-brcm2708-bcm2710-rpi-3-squashfs-factory.img.gz 插入并启动树莓派3B+,顺便接上键盘和显示器,你会看...

    2020-01-19 18:25 Falcon 阅读