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 'package:http/http.dart' as http; | |
Future<bool> sendPost() async { | |
Map<String,String> headers = { | |
"Accept": "application/json", | |
"content-type": "application/json", | |
}; | |
var response = await http.post( | |
Uri.parse('https://httpbin.org/post'), |
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
/////////// Job Settings /////////// | |
const itemsPerCycle = 1000; // Recommended < 1001 | |
const maxCycles = 10; | |
const asyncBatchSize = 10; // Recommended < 11 to not slow down server | |
const msgPerCycle = 1; // Set low to prevent log spam with large cycle counts | |
const objectType = new Parse.Object("Product"); | |
// Context values | |
let flagQ = new Parse.Query(new Parse.Object("Flag")); | |
flagQ.equalTo("name", "clothing"); |
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
{ | |
"configurations": [ | |
{ | |
"name": "ESP32", | |
"includePath": [ | |
"${default}", | |
"${workspaceFolder}", | |
"${workspaceFolder}/main", | |
"${workspaceFolder}/components/**", | |
"${workspaceFolder}/build/config", |
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root"; exit | |
fi | |
if [ -z "$1" ]; then | |
echo "The syntax is 'mountall.sh device_path [mount_path]'"; exit | |
fi |
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
if (!global.hasOwnProperty("__DEBUG_LOG_INTROSPECTION__")) { | |
Object.defineProperty(global, '__stack', { | |
get: function () { | |
var orig = Error.prepareStackTrace; | |
Error.prepareStackTrace = function (_, stack) { | |
return stack; | |
}; | |
var err = new Error; | |
Error.captureStackTrace(err, arguments.callee); |