ubuntu 下安装 activate-power-mode
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 下安装 activate-power-mode
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
轉自網絡
被朋友圈中的atom的activate-power-mode 震撼到了,于是想試試。
步驟如下
首先安裝atom:
sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom然后安裝activate-power-mode :
cd /馬賽克君/.atom/packages git clone https://github.com/JoelBesada/activate-power-mode.git cd activate-power-mode apm install但是出現下面的錯誤 gyp info it worked if it ends with ok gyp info using node-gyp@2.0.2 gyp info using node@0.10.40 | linux | x64 gyp http GET https://atom.io/download/atom-shell/v0.34.0/node-v0.34.0.tar.gz gyp WARN install got an error, rolling back install gyp ERR! install error gyp ERR! stack Error: connect ETIMEDOUT gyp ERR! stack at errnoException (net.js:905:11) gyp ERR! stack at Object.afterConnect [as oncomplete] (net.js:896:19) gyp ERR! System Linux 3.19.0-37-generic gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.34.0" "--dist-url=https://atom.io/download/atom-shell" "--arch=x64" "--ensure" gyp ERR! cwd /home/reddusty/.atom gyp ERR! node -v v0.10.40 gyp ERR! node-gyp -v v2.0.2 gyp ERR! not ok 怎么破?????
?新方法
然后繼續上面的步驟,就ok了
如何使用
打開atom并隨便打開一文檔
ctrl+shift+P?打開命令行,輸入window:?Reload回車,重載文檔頁面后control+alt+o(是o不是零),就開啟了插件可以開始狂拽炫酷屌炸天地寫代碼辣!
但是...這個插件在你切換文檔視窗后,就要再一次重載頁面并激活,才能再次看到效果。
關掉窗口抖動
著作權歸作者所有。
商業轉載請聯系作者獲得授權,非商業轉載請注明出處。
作者:無網不勝
鏈接:https://www.zhihu.com/question/38164033/answer/75179242
來源:知乎
編輯 /Users/你的用戶名/.atom/packages/activate-power-mode/lib/activate-power-mode.coffee
在52行改為:
shake: ->
intensity = 1 + 2 * Math.random()
@x = intensity * (if Math.random() > 0.5 then -1 else 1)
@y = intensity * (if Math.random() > 0.5 then -1 else 1)
x=0
y=0
知乎上給這個插件的建議感覺好好玩
著作權歸作者所有。
商業轉載請聯系作者獲得授權,非商業轉載請注明出處。
作者:條件狀語從句
鏈接:https://www.zhihu.com/question/38077021/answer/75036948
來源:知乎
這個package做的還不夠好。下面給出改進建議:
轉載于:https://www.cnblogs.com/reddusty/p/5021559.html
總結
以上是生活随笔為你收集整理的ubuntu 下安装 activate-power-mode的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [Window] .MUS 0x8007
- 下一篇: Java 5种字符串拼接方式性能比较。