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
  • 09:59 (UTC +03:00)
View GitHub Profile
@v1993
v1993 / README.md
Created August 25, 2018 17:15 — forked from mw-ferretti/README.md
Paypal button on markdown github

Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
@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!
]]--