For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Camera:resize(w, h) | |
| local dw, dh = config.graphics.width, config.graphics.height | |
| local x, y = w / dw, h / dh | |
| local scale = math.min(x, y) | |
| local width, height = dw * scale, dh * scale | |
| self.camera:setScale(scale) | |
| local wPadding, hPadding = (w - width) / 2, (h - height) / 2 | |
| self.padding = { | |
| x = wPadding, y = hPadding | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre | |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #AND | |
| <b:if cond='data:blog.pageType == "index"'> | |
| <b:if cond='data:blog.searchQuery'> | |
| <!--search_page AND index_page--> | |
| </b:if> | |
| </b:if> | |
| #OR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function shuffle(tbl) | |
| for i = #tbl, 2, -1 do | |
| local j = math.random(i) | |
| tbl[i], tbl[j] = tbl[j], tbl[i] | |
| end | |
| return tbl | |
| end |