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
package com.example.core.usecases | |
import com.example.core.model.Employee | |
import com.example.core.repositories.EmployeeRepository | |
import com.example.core.utils.ResultData | |
import kotlinx.coroutines.CoroutineDispatcher |
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
<html> | |
<body> | |
<a href="clarityfirst://order/66/documents">Order 66</a> | |
</body> | |
</html> |
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
// You could call this somewhere in your ViewModel | |
insertUserWithAddressUseCase.execute(this, user, address) | |
// ......... | |
// The Interface of the Use Case. | |
interface InsertUserWithAddressUseCase { | |
interface Callback { | |
fun onUserSuccessfullyInserted(insertedUser: User) | |
fun onErrorWhileTryingToInsertUser(e: Throwable) |
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
$('head').append('<style type="text/css">crawler_selected{ background:#FFFF00; }</style>'); | |
$(document).click(function(event){ | |
event.preventDefault() | |
$(event).addClass("crawler_selected") | |
console.log(event.target) | |
}); |
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
# pip install requests | |
# pip install bs4 | |
# pip install overpass | |
# pip install html5lib | |
from pprint import pprint | |
import overpass | |
import urllib.parse | |
import requests | |
from bs4 import BeautifulSoup |
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
// Feel free to run it here try.kotlinlang.org | |
fun main(args: Array<String>) { | |
val testCollection = arrayOf( | |
1, 2, 3, | |
arrayOf(4, 5, emptyArray<Int>()), null, | |
arrayOf(emptyArray<Int>(), emptyArray<Int>()), | |
arrayOf(6) | |
) |
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script> | |
<script> | |
$( document ).ready(function() { | |
var Web3 = require('web3'); | |
var address = "0xcbbfbafedb0eb83016d2a96a4e80d30b20fa3e30" | |
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
<html> | |
<body> | |
<ul> | |
<li><a href="siplay://messages/team/SS-624296">SI PLAY messages/team/SS-624296</a></li> | |
<li><a href="siplay://team/home/SS-624296">SI PLAY team/home/SS-624296</a></li> | |
<li><a href="siplay://team/schedule/SS-624296">SI PLAY team/schedule/SS-624296</a></li> | |
<li><a href="siplay://team/roster/SS-624296">SI PLAY team/roster/SS-624296</a></li> | |
<li><a href="siplay://team/standings/SS-624296">SI PLAY team/standings/SS-624296</a></li> | |
<li><a href="siplay://team/photos/SS-624296">SI PLAY team/photos/SS-624296</a></li> | |
<li><a href="siplay://ratetheapp">SI PLAY ratetheapp</a></li> |
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
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParseException; | |
import com.google.gson.JsonPrimitive; | |
import com.google.gson.JsonSerializationContext; | |
import com.google.gson.JsonSerializer; | |
import com.google.gson.JsonSyntaxException; | |
import net.misove.mypvrcommon.serialization.ISO8601DateParser; |
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
package com.siplay.android_siplay.helper; | |
/* | |
* Copyright 1999,2004 The Apache Software Foundation. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
NewerOlder