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
#cd directory where to run | |
npm install -g pm2 | |
pm2 start npm -- start | |
pm2 save | |
pm2 startup |
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
#!/bin/bash | |
# | |
### BEGIN INIT INFO | |
# Required-Start: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
# description: Rendetron startup service | |
# processname: rendertron.js | |
# author. David R. Comba Lareu (@shadowofsoul) at Ipsilon Developments (@ipsilondev) |
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
#!/bin/bash | |
# making sure we're in the correct dir | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; cd ${DIR} | |
# get the architecture | |
arch=$(uname -m) | |
# this hack is only needed on 32 bit for some reason | |
if [[ ''$arch'' == ''i686'' ]]; then | |
# make sure libraries are loaded from the local directory |
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
screenResolutoExpon = 1; | |
//device screen resolution | |
screenWidth = Capabilities.screenResolutionX; | |
screenHeight = Capabilities.screenResolutionY; | |
//if screen has more than 1500px of width or height, use the x2 set's of assets and set the exponential to 2 | |
if (screenWidth > Constants.limitSizeScreen || screenHeight > Constants.limitSizeScreen) { | |
screenResolutoExpon = 2; | |
AssetLib.folderAsset = "high"; |
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
Hello david rene, | |
We are writing to you today to inform you that Google Play will no longer be able to accept payments on behalf of developers registered in Argentina starting June 27, 2013. Developers based in Argentina may continue to offer free applications in the Google Play store. All applications requiring the billing permission as well as in-app products will be unpublished from the Google Play store on June 27, 2013. A payout for your earnings through this time will be made on July 22, 2013. If your accumulated earnings at that time do not meet the payout threshold, you may close your linked AdSense account to receive a final payment. | |
If you are legally able to do business in one of the other supported countries and otherwise satisfy the Google Wallet Terms of Service for that country, you may register for a Google Wallet Merchant Center account in that country and transfer your applications to it. To review the Google Wallet Merchant Center account Terms of Service, go to this link: | |
https://checko |
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
//this function will transform the coordinated in the touch event to the bitmap that the imageview contain | |
// done by @ipsilondev | |
public PointF transformCoordScale(float x, float y){ | |
matrix.getValues(m); | |
float origW = this.getDrawable().getIntrinsicWidth(); | |
float origH = this.getDrawable().getIntrinsicHeight(); | |
float iW = (origW*m[Matrix.MSCALE_X]); | |
float iH = (origH*m[Matrix.MSCALE_Y]); | |
float scaleW = origW/iW; | |
float scaleH = origH/iH; |