This file contains 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
class SessionController(context: Context, private val tapSession: TapSession): SessionControllerInterface { | |
private val activationRepository = ActivationRepository(context) | |
private val logger = LoggerFactory.getLogger(TAG) | |
internal var activationData: ActivationData? = null | |
override suspend fun activate( | |
clientId: String, | |
clientSecret: String | |
): StoneStatus { | |
logger.trace("activate()") |
This file contains 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
var array = document.querySelectorAll("#tabResult > tbody tr") | |
var csv = "" | |
csv = csv.concat("Item;Quantidade;Unidade;Valor unit.;Valor Total", "\n") | |
for (let index = 0; index < array.length; index++) { | |
const el = array[index]; | |
var item = el.querySelector(".txtTit").textContent.trim() | |
var qt = el.querySelector(".Rqtd").innerText.replace("Qtde.:","").replace(",",".").trim() | |
var unit = el.querySelector(".RUN").innerText.replace("UN:","").trim() | |
var unitAmount = el.querySelector(".RvlUnit").innerText.replace("Vl. Unit.:","").replace(",",".").trim() |
This file contains 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
public class ApnHandler { | |
private final static Uri APN_LIST_URI = Uri.parse("content://telephony/carriers"); | |
private final static Uri PREFERRED_APN_URI = Uri.parse("content://telephony/carriers/preferapn"); | |
private Context context; | |
public ApnHandler(Context context) { | |
this.context = context; | |
} |
This file contains 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
interface Loggable { | |
public void log(String message); | |
} | |
class ConsoleLogger implements Loggable { | |
@Override | |
public void log(String message) { | |
System.out.println("Message"); | |
} | |
} |
This file contains 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
class MoneyEditText : EditText { | |
constructor(context: Context) : super(context) | |
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) | |
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) | |
private var moneyChangeListener: OnMoneyChangeListener? = null | |
private val moneyTextWatcher: KTextWatcher.() -> Unit = { |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ38QWtY9bnF/Ovbol+eLYt6cAZI7Idaq3m/Hbu+Gd9KFVkApo25AkTXeE0/UHAGgM0F1l/d0mplmpSMs31xjan9XbKw4qyxJVN7XU2Y8g6O/J2KwXbbH8614BSgVMbEQrHDPUTls3h7jaw/wsaLChE6nO87OHgEt1clF43iE113hw+7elsKtWCsPBhOu34gcJeQ426K/KVvR8kTQWGwsSEpM7vor8idZEC/0SAG2Z49pDGVXOIDfox3splWegFXOO9nmahuCJX/oaxbm3AkhywgyDQlRqpygcQQXm0RGrWNB+zcsr3AXMjyvSOxyf2BHbbE2N675J4jdIL1HJT5rh filpgame@DESKTOP-M2I1GQC |
This file contains 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
var Pass = function (options) { | |
this.init('pass', options, Pass.defaults); | |
}; | |
//inherit from Abstract input | |
$.fn.editableutils.inherit(Pass, $.fn.editabletypes.abstractinput); | |
$.extend(Pass.prototype, { | |
render: function () { | |
this.$input = this.$tpl.find('input'); |
This file contains 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
// 1 - you need to get the 'data-reactid' value manually on ul (something like '.4m.0.$0.1.$1.0.0.0.0.1'). | |
// 2 - you need to scroll down to load all friends. | |
// in others versions i gonna improve this. | |
var friends = document.querySelectorAll("ul[data-reactid='00000000000'] li"); | |
for(i=0;i<friends.length;i++){ | |
friends[i].children[0].click(); | |
} |
This file contains 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 ColoredTable($header, $data) { | |
// Colors, line width and bold font | |
$this->SetFillColor(200, 200, 200); | |
$this->SetTextColor(0); | |
$this->SetDrawColor(0, 0, 0); | |
$this->SetLineWidth(0.3); | |
$this->SetFont('', 'B', 12); | |
// Header | |
$w = array(50, 30, 20, 90, 30, 40); |