Skip to content

Instantly share code, notes, and snippets.

View v1993's full-sized avatar
🌋
Learning Vulkan and modern OpenGL

Valeri v1993

🌋
Learning Vulkan and modern OpenGL
  • Russia
  • 21:37 (UTC +03:00)
View GitHub Profile
@v1993
v1993 / cocos-build-android
Created July 5, 2018 10:09
My build script for cocos2d-x. It should work on any posix system. posix lua module is required, ansicolors is required for colorful output.
#!/usr/bin/lua
local AVD_BINARY = '/home/v/compile/android-sdk-linux/tools/qemu/linux-x86_64/qemu-system-x86_64'
local ADB_BINARY = '/home/v/compile/android-sdk-linux/platform-tools/adb'
-- I know, hardcoding is bad, but any other way is too expensive :-(
local colors
do
local ok
@v1993
v1993 / README.md
Last active May 2, 2018 15:04
RoundedBox node for Cocos2d-x (tested on 3.16)
@v1993
v1993 / readiter.lua
Created April 3, 2016 13:18
Small lua code to read file using for with iterator
readiter = function(h, size)
return function()
return h:read(size)
end;
end;
--[[
Using: for var in readiter(fileh, size) do your_code end
size -- one of supported formats to file:read()
file -- vaule getted using io.open(filename, 'r') -- read mode required!
]]--