Sublime Text 2配置Lua开发环境

在Sublime Text 3上快速运行简单的Lua、Python代码的方法 在Sublime上快速运行简单的Python、Lua代码的方法 阅读详情

引用http://blog.youkuaiyun.com/qingye2008/article/details/22267143

Sublime Text 2是一个基于Python的跨平台文本编辑器,

比起Windows下的Notepad++和Linux下的Gedit,Sublime Text的界面更为美观,Incremental Find的功能更是相当实用。个人更为喜欢的还是Mini Map,可以很方便地进行代码定位。

Sublime Text比较适合用于进行Ruby/Python/Lua的脚本撰写,可惜的是它自带的Build系统里并不包含Lua,不过通过Tools -> Build System下的New Build System可以很轻松地自定义新的Build方式,以下是为Lua专用的配置文件内容:

1
2
3
4
5
{
  "cmd" : [ "lua" ,  "$file" ],
  "file_regex" :  "^(...*?):([0-9]*):?([0-9]*)" ,
  "selector" :  "source.lua"
}

保存以后重新启动Sublime Text 2就能在Tools -> Build System里找到Lua的选项单了。

需要留意的是,这个功能仅仅是build,在console里执行的结果只相当于lua [filename.lua],并且无法进行文本的输入控制,需要测试的话还是要自己在console下运行lua环境才可以。相对而言Gedit的Embeded Terminal则要方便许多。


Cocos2d-Lua 开发环境配置(windows) (最好用Google Chrome浏览器) <一.安装Cocos2d-Lua(运行环境)> 在http://cocos2d-lua.org/download/index.md中下载Cocos2d-Lua版本。 我学习的是Quick-Cocos2dx-Community 3.6.4 进入解压后的引擎目录,双击setup_win.bat开始执行安装脚本。 安装成功后,会产生一个... 阅读详情

相关推荐

Mac平台下搭建和配置Lua环境及相关问题

Lua因为快速开发和热更新的便利,越来越多的被手游开发公司采用,我们公司在项目的后期,为了实现热更新,将整个C++的项目重新用Lua实现了。然后这个过程中,只是能写,对于Lua谈不上真正的理解。工程后期结束后,又懒得去看了,马上要开始新的项目了,有可能要负责核心模块,因为认为有必要细致的了解一下Lua,要了解一个语言首先就要搭建对应平台下的环境了。(注:公司用的Mac mini) 1.首

C_Cpp_C的博客 2557

用Sublime编写Lua脚本

现在很多手游项目使用lua作为热更新的代码脚本,我一直很喜欢用Sublime来写lua程序,这里简单介绍一下它的用法

阿赵的博客 2997

使用Sublime Text3 开发Cocos2d-x lua/js的环境搭建

最近,刚进入实习,感觉由于学习环境的改变,导致了VS2015+Cocos 2d-x的环境,并不适合我。现在编辑器有很多得搭配,为了让自己以后能更适应多平台的开发,决定选用Sublime Text3 + Cocos2d-x 的开发环境。 不得不说Sublime Text3 是一款很强大的编辑器,可以自己通过插件制定心仪的那款编辑器。废话不多说,上正题. 工具(https://pan.b

qq_25658331的博客 4240

sublimeText 使用技巧及配置Lua开发环境

(插件 兼容中文 cTags 函数跳转 编译 lua ) 在朋友的介绍下使用上了subLime Text 编辑器,发现有很多很好的特性适合在项目中开发lua程序,例如在编辑器中支持项目形式的文件夹管理,非常方便的夸文件跳转,符号查找,跳转到函数定义,往回跳转,编译脚本等等。一个配置好的sublime Text 环境能满足VS以及VAX的很多编辑代码常用功能。subLime Text被 称为专

wind的专栏 4万+

如何用谷歌插件Apollo.io高效开发客户?手把手教你避开常见坑点

本文详细介绍了如何利用谷歌插件Apollo.io高效开发外贸客户,包括核心功能解析、免费额度最大化利用策略、多插件协同技巧以及常见陷阱规避方法。通过Apollo.io的智能匹配算法和庞大数据库,外贸从业者可以精准锁定目标客户,提升开发效率。

banana的博客 887

Arduino Nano + MCP3422A0 ADC 毫欧表:3档分辨率(0.1mΩ-1.3kΩ)开尔文连接实测

本文详细介绍了如何使用Arduino Nano与MCP3422A0 ADC构建高精度毫欧表,采用四线制开尔文连接和三档量程设计,实现0.1mΩ-1.3kΩ的精确测量。通过精密恒流源和18位ADC技术,结合智能量程切换和数字滤波算法,显著提升测量精度和稳定性,适用于电子维修、PCB测试等场景。

weixin_28292761的博客 325

lua环境,sublime text 插件安装

新手,刚开始研究lua 查了一些大牛的博客,有很多用的都是sublime text编写lua。 花了点时间,研究一下。 1,去官网查看了一下sublime text。官网地址:http://www.sublimetext.com/ 2,安装了lua的编译环境。这个随后再给出相关教程。 3. 昨天,遇到一个问题。sublime text不支持中文。 查了点博客,看了一

yajunjiao的专栏 1847

Halcon手眼标定保姆级教程:从‘眼在手上’到‘眼到手’两种模式全解析(附代码)

本文详细解析Halcon在机器人视觉引导中的手眼标定技术,涵盖Eye-in-Hand和Eye-to-Hand两种模式,提供从硬件准备到实战代码的完整解决方案。通过精确的相机标定和坐标转换,帮助实现工业自动化中机械臂与视觉系统的高精度协同作业。

weixin_42544461的博客 209

Lua 环境安装

Linux & Mac上安装 Lua 安装非常简单,只需要下载源码包并在终端解压编译即可,本文使用了5.3.0版本进行安装:接下来我们创建一个 HelloWorld.lua 文件,代码如下:执行以下命令:输出结果为:

weixin_45079970的博客 456

yolov8知识蒸馏代码详解:支持logit和feature-based蒸馏

特别地,在COCO数据集上对MAP中的RetinaNet检测器(resnet50主干)获得了3.4%的性能提升,在Cityscapes数据集上, 针对mIoU指标,PSPNET(resnet-18 backbone)获得5.81%的性能提升。大部分的KD方法都是通过algin学生网络和教师网络的归一化的feature map, 最小化feature map上的激活值的差异。MGD是一种真正通用的基于特征feature的知识蒸馏方法,它可以用于各种任务,包括图像分类,目标检测,语义分割和实例分割。

@bangbang的博客 7286

YOLOv11【第二章:核心模块进阶篇·第3节】LDConv线性可变形卷积改进YOLOv11!

🏆 本文收录于专栏 《YOLOv11实战:从入门到深度优化》。本专栏围绕 YOLOv11 的改进、训练、部署与工程优化 展开,系统梳理并复现当前主流的 YOLOv11 实战案例与优化方案,内容目前已覆盖 分类、检测、分割、追踪、关键点、OBB 检测 等多个方向。

**My Coding Family** 7441

cocos2d+sublime text2配置lua开发环境

编辑器用sublime text 2 调试用decoda 弄这个sublimetext 2的lua环境和绑定cocos2d-x花了几天时间,郁闷的很。。。 记录一下吧,也希望跟我一样的新手别走弯路,浪费时间   1,sublime text 2简介 一款收费的文本编辑软件,现在我用的是破解版的2.0.2。。。其它的自行度娘   2,搭建lua

sun___shine的博客 3341

AI辅助决策支持系统架构设计避坑:5个常见技术选型误区及正确方案

AI辅助决策支持系统(AI-DSS)是指通过人工智能技术(机器学习、自然语言处理、知识图谱等)赋能传统决策支持系统,帮助决策者在复杂业务场景中(如供应链优化、风险控制、医疗诊断、金融投资等)提升决策效率和准确性的系统。与传统BI工具不同,AI-DSS不仅能"展示数据",还能基于数据生成"决策建议"甚至"自动执行决策"。技术选型是AI-DSS架构设计的核心环节,涉及数据处理引擎、模型框架、算力资源、集成接口等关键组件的选择。效果不达标:模型预测精度低、决策建议不可用;成本失控:算力资源浪费、维护成本高企。

AIGC应用创新大全的博客 1384

Windows 下 lua + sublime Text 2 开发环境搭建和配置

首先下载所需工具: lua-5.3.0_Win64_bin.zip                       下载地址:http://joedf.users.sourceforge.net/luabuilds/ Sublime Text 2.0.2 x64 Setup.exe        下载地址:http://www.sublimetext.com/2   解释一下这两个工具各自的作

The Black Pearl 661

滑块逆向及流程分析

本文章中所有内容仅供学习交流使用,不用于其他任何目的,不提供完整代码,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!

pyzzd的博客 8009

2023华为OD机试真题B卷 Python 实现【最长的元音子串长度】

定义当一个字符串只有元音字母(a,e,i,o,u,A,E,I,O,U)组成,称为元音字符串,现给定一个字符串,请找出其中最长的元音字符串,并返回其长度,如果找不到请返回0, 字符串中任意一个连续字符组成的子序列称为该字符串的子串

MISAYAONE的博客 902

Sublime Text2 注册码 汉化 配置lua开发环境

1、注册 help --> Enter License ----- BEGIN LICENSE ----- Andrew Weber Single User License EA7E-855605 813A03DD 5E4AD9E6 6C0EEB94 BC99798F 942194A6 02396E98 E62C9...

aici6410的博客 123

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

sublime text2 之 lua环境的搭建

sublime text2,lua环境配置,lua编译

继续激情,继续奋斗。 1216

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

macos lua环境搭建

我的mac os 是10.8.2 第一步: 去官网下载个lua http://www.lua.org/download.html ,当前版本是5.2.2 第二步: 解压,编译,安装 make macosx test sudo make install ---------------------------------------- 第三步: 整个lua IDE,推荐使用subli

1394

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

win平台下搭建cocos2dx 3.0+ lua开发环境 VS2012+sublime text+lua 5.2.3

安装vs2012 安装python 2.7.3和环境配置 下载cocos2dx 3.1.1 用vs2012打开test项目 右键运行生成解决方案  cocos2dx3.1.1 新建lua项目 cocos2dx 3.1.1引擎目录依次找到tools cocos2d-console bin,  把cocos.py拖到在dos的command(cmd)中 然后继续输入新建项

sun___shine的博客 1771

Sublime Text2 编译 lua

http://finalanubis.com/zh/2011/07/sublime-text-2-lua-developing/ 这篇文章提供的方法提示找不到文件, 试了下其他命令,文件能找到的。那就是找不到lua命令了,把lua改成全路径就OK了,如下: { "cmd": ["/usr/local/bin/lua", "$file"], "file_regex": "^(...*?)

记录,是种习惯 5061

Cocos2d-x游戏开发之Lua开发ide的搭建

小伙伴们,参考其他文章,决定使用sublime te

wisdom605768292的专栏 1208

MAC 上搭建lua

下载和安装lua:(转自这里) 1.  下载最新版的lua-5.3.1.tar.gz 请点击(http://www.lua.org/ftp/),然后解压  2. 运行“终端”进入到该文件夹下  ,主要是cd 【文件夹名】 3.在“终端”输入    make macosx   (回车) 4.在“终端”输入    make test  (回车) 正常情况下会出现: src/lua -v L

OnWay的专栏 853

mac上使用lua

下载和安装lua:(转自这里) 1.  下载最新版的lua-5.2.2 请点击,然后解压  2. 运行“终端”进入到该文件夹下  ,主要是cd 【文件夹名】 3.在“终端”输入    make macosx   (回车) 4.在“终端”输入    make test  (回车) 正常情况下会出现: src/lua -v Lua 5.2.0 Copyright(C)1994-2011

the01hierarch的专栏 1533

Mac lua环境配置 sublime text

Sublime Text 2配置Lua开发环境 分类: 资料2014-03-27 09:41 551人阅读 评论(0) 收藏 举报 {   "cmd": ["/usr/local/bin/lua", "$file"],   "file_regex": "^(...*?):([0-9]*):?([0-9]*)",   "selector": "source.lua"  }  

navno1的专栏 575
上一篇: VMware10下CentOS7的详细安装图解
下一篇: xcode改了原生头文件报错的问题
CekineLin
博客等级 码龄15年 1粉丝 40原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值