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
@echo off | |
set "package=%1" | |
adb connect 127.0.0.1:58526 | |
adb install %package% | |
EXIT /B | |
pause |
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
//this is a function that fires when the webapp receives a GET request | |
function doGet(e) { | |
return HtmlService.createHtmlOutput("request received"); | |
} | |
//this is a function that fires when the webapp receives a POST request | |
function doPost(e) { | |
var params = JSON.stringify(e.postData.contents); | |
params = JSON.parse(params); | |
var myData = JSON.parse(e.postData.contents); |
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 getPostID(link) { | |
var slug = link.split("/").pop().split(";")[0].replace(".html",""); | |
var url = 'https://www.ilovefreesoftware.com/wp-json/wp/v2/posts?slug='+slug; | |
var response = JSON.parse(UrlFetchApp.fetch(url).getContentText()) | |
return response[0]['id']; | |
} | |
//funtion to get sluf from URL only | |
/*function getSlug(data) { |
NewerOlder