mac 各种问题汇总

零。 r 在mac中读取clipboard问题
一。 office 乱码读取问题

零。 r 在mac中读取clipboard问题

content Error in file(file, “rt”) : 无法载入X11模块

解决方案:
read.table(pipe(“pbpaste”,sep=’t’,header=T)->data
dat 或者
read.delim(pipe(“pbpaste”)) #mac
clip my_frame

一。 office 乱码读取问题

最好的解决方案:用numbers打开另存

1、安装Package Control

按Ctrl+~调出console,输入下面的指令。

Sublime Text 2

import urllib2,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404’ +
‘e330c659d4bb41d3bdf022e94cab3cd0’; pf = ‘Package Control.sublime-
package’; ipp = sublime.installed_packages_path(); os.makedirs( ipp
) if not os.path.exists(ipp) else None; urllib2.install_opener(
urllib2.build_opener( urllib2.ProxyHandler()) ); by =
urllib2.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(’ ‘,
‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); open(
os.path.join( ipp, pf), ‘wb’ ).write(by) if dh == h else None;
print(‘Error validating download (got %s instead of %s), please try
manual install’ % (dh, h) if dh != h else ‘Please restart Sublime
Text to finish installation’)
1
2
3
4
5
6
7
8
9
10
11
import urllib2,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404’ +
‘e330c659d4bb41d3bdf022e94cab3cd0’; pf = ‘Package Control.sublime-
package’; ipp = sublime.installed_packages_path(); os.makedirs( ipp
) if not os.path.exists(ipp) else None; urllib2.install_opener(
urllib2.build_opener( urllib2.ProxyHandler()) ); by =
urllib2.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(’ ‘,
‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); open(
os.path.join( ipp, pf), ‘wb’ ).write(by) if dh == h else None;
print(‘Error validating download (got %s instead of %s), please try
manual install’ % (dh, h) if dh != h else ‘Please restart Sublime
Text to finish installation’)
Sublime Text 3

import urllib.request,os,hashlib; h =
‘7183a2d3e96f11eeadd761d777e62404’ +
‘e330c659d4bb41d3bdf022e94cab3cd0’; pf = ‘Package Control.sublime-
package’; ipp = sublime.installed_packages_path();
urllib.request.install_opener( urllib.request.build_opener(
urllib.request.ProxyHandler()) ); by = urllib.request.urlopen(
‘http://sublime.wbond.net/’ + pf.replace(’ ‘, ‘%20’)).read(); dh =
hashlib.sha256(by).hexdigest(); print(‘Error validating download
(got %s instead of %s), please try manual install’ % (dh, h)) if dh
!= h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)
1
2
3
4
5
6
7
8
9
10
import urllib.request,os,hashlib; h =
‘7183a2d3e96f11eeadd761d777e62404’ +
‘e330c659d4bb41d3bdf022e94cab3cd0’; pf = ‘Package Control.sublime-
package’; ipp = sublime.installed_packages_path();
urllib.request.install_opener( urllib.request.build_opener(
urllib.request.ProxyHandler()) ); by = urllib.request.urlopen(
‘http://sublime.wbond.net/’ + pf.replace(’ ‘, ‘%20’)).read(); dh =
hashlib.sha256(by).hexdigest(); print(‘Error validating download
(got %s instead of %s), please try manual install’ % (dh, h)) if dh
!= h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)
2、用Package Control安装其他插件

按下Ctrl+Shift+P调出命令面板,输入install 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。

二、推荐插件

ConvertToUTF8 编码转换插件
Emmet 快速的HTML、CSS编写插件
JS Format JS代码格式化插
三、快捷键

mac

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年10月6日
下一篇 2017年10月6日

相关推荐