JavaScript小结

摘要: 1. JavaScript 的作用域完全是由函数来决定的,if、for 语句中的花括号不是独立的作用域。 2. 将C/C++代码编译为JavaScript C/C++如今也可以用来编写Web应用程序,同样可以将它们编译为JavaScript。一些工具如下。Emscripten:Mozilla开发的LLVM后端,可以将任何通过LLVM前端(比如C/C++ Clang)生成的LLVMIR中间码编译成JavaScript代码。mala:可以将vala代码(vala代码在编译时,首先会编译为C代码)编译为JavaScriptMandreel:可以将C++和Objective-C代码... 阅读全文
posted @ 2013-11-01 15:20 南原始天 阅读(308) 评论(0) 推荐(0) 编辑

vim杂记

摘要: "clang-completelet g:clang_complete_copen=1let g:clang_periodic_quickfix=1let g:clang_snippets=1let g:clang_close_preview=1let g:clang_use_library=1let g:clang_user_options='-stdlib=libstdc++ -std=c++11 -I/usr/include'let g:clang_library_path='/home/wangnan/develop/clang_llvm/lib 阅读全文
posted @ 2013-10-15 14:32 南原始天 阅读(243) 评论(0) 推荐(0) 编辑

linux各种路径小结

摘要: man路径 /etc/manpath.config $MANPATHinclude路径 $C_INCLUDE_PATH $CPLUS_INCLUDE_PATH动态链接库的路径 $LD_LIBRARY_PATH静态库的路径 $LIBRARY_PATH 阅读全文
posted @ 2013-10-15 11:16 南原始天 阅读(163) 评论(0) 推荐(0) 编辑

node c++ addon注意事项

摘要: Themodule_nameneeds to match the filename of the final binary (minus the .node suffix). 阅读全文
posted @ 2013-10-08 18:12 南原始天 阅读(198) 评论(0) 推荐(0) 编辑

node_modules

摘要: NODE_PATH 阅读全文
posted @ 2013-09-26 15:02 南原始天 阅读(152) 评论(0) 推荐(0) 编辑

【ask】webstorm调试node单个js文件

摘要: The procedure falls into two parts: first we start an application as usual and then connect to it with the debugger.Set thebreakpointsin the Node.js code, where necessary. At least one breakpoint is necessary otherwise the program will be just executed. If you want the debugging tool to stop at the 阅读全文
posted @ 2013-09-26 10:49 南原始天 阅读(662) 评论(0) 推荐(0) 编辑

【ask】vmware(NAT)中的linux突然无法访问互联网网址,但是直接用ip可以访问。

摘要: 前两天虚拟机里的linuxmint不知何故,突然无法访问互联网了。依稀记得是升级了win7下面的360安全卫士之后发生的事情。所以,第1步就开始去找防火墙的各种设置,结果没有查到结果。第2步猛然看到win7下的网络和共享里,vmware nat 网络是公共网络不能访问Internet,于是便以为是这个原因,好一顿google搜寻解决办法,但是仍然没有结果。郁闷中。第3步:把同一个虚拟机中的另一个linux启动起来,结果是能够访问互联网。据此断定虚拟机设置没有问题。第4步:终于静下来好好想想是哪的问题了。不知道那根筋动了一下,决定用ip地址试一下,结果用ip地址能够访问互联网。到此断定可能只.. 阅读全文
posted @ 2013-09-24 17:10 南原始天 阅读(370) 评论(0) 推荐(0) 编辑

sourcenav安装

摘要: $ ./configure之后会出现configure: error: ./configure failed for unixconfigure: error: ./configure failed for tcl如果没有出现类似错误,说明比较幸运了$ cd tcl/unix$ cp configure{,.orig} && sed "s/relid'/relid/" configure.orig > configure$ cd ../../tk/unix$ cp configure{,.orig} && sed "s 阅读全文
posted @ 2013-08-08 17:23 南原始天 阅读(747) 评论(0) 推荐(0) 编辑

vim-addon-manager【转】

摘要: Vim是一个非常优秀的编辑器,但是没装插件的Vim就始终只是个编辑器而已,是插件让Vim变得更加强大。但是插件装得多了,管理就成了问题,Vim本身并没有提供插件管理功能,往往时间一长,.vim/vimfile 文件夹下就变得杂乱不堪。vim-addon-manager这个插件就是为了管理Vim插件的插件。介绍:This plugin allows users to install and uninstall plugins with a minimum ofwork. Features:- Separate directories for each plugins- Dependency re 阅读全文
posted @ 2013-08-07 14:53 南原始天 阅读(1167) 评论(0) 推荐(0) 编辑

zmq重点

摘要: Thezmq_msg_send(3)methoddoesnotactuallysendthemessagetothesocketconnection(s).ItqueuesthemessagesothattheI/Othreadcansenditasynchronously.Itdoesnotblockexceptinsomeexceptioncases.Sothemessageisnotnecessarilysentwhenzmq_msg_send(3)returnstoyourapplication.Ifyoucreatedamessageusingzmq_msg_init_data(3) 阅读全文
posted @ 2013-07-31 20:42 南原始天 阅读(463) 评论(0) 推荐(0) 编辑