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
#Must to install new laucher before runing script | |
while read p; do | |
echo "adb shell pm disable-user $p" | |
adb shell pm disable-user "$p" 0>/dev/null | |
#adb shell pm enable "$p" 0>/dev/null | |
done <ok-1430.txt | |
# Turn off update for amazon app dont return | |
adb shell pm disable-user com.amazon.settings.systemupdates |
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
const MongoClient = require('mongodb').MongoClient; | |
const assert = require('assert'); | |
// Connection URL | |
const url = 'mongodb://thanh:123456@localhost:27017/mydb'; | |
// Database Name | |
const dbName = 'mydb'; | |
// Use connect method to connect to the server |
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
@RestResource(urlMapping='/Teams/*') | |
global with sharing class MyRestResource { | |
@HttpPut | |
global static String putCustomer(){ | |
RestRequest req = Restcontext.request; | |
List<SObject> sbjectList = new List<SObject>(); | |
// Deserialize | |
Map<String, Object> params = (Map<String, Object>)JSON.deserializeUntyped(req.requestBody.tostring()); | |
System.debug(params); |
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
import requests | |
import json | |
class PyForce: | |
def __init__(self, client_id, client_secret, username, password, security_token): | |
self.client_id = client_id | |
self.client_secret = client_secret | |
self.username = username | |
self.password = password | |
self.security_token = security_token |
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
@RestResource(urlMapping='/Teams/*') | |
global with sharing class MyRestResource { | |
@HttpGet | |
global static List<Team__c> getTeamById() { | |
RestRequest request = RestContext.request; | |
RestResponse res = RestContext.response; | |
// grab the caseId from the end of the URL | |
String teamId = request.requestURI.substring( | |
request.requestURI.lastIndexOf('/')+1); |
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
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
"time" | |
) | |
/* | |
* Point |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"image" | |
"image/jpeg" | |
"image/color" | |
"image/png" | |
) |
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
package main | |
import ("fmt" | |
//"bufio" | |
//"os" | |
) | |
func main() { | |
var n,p,q,r int | |