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
using System.IO; | |
using System.IO.Compression; | |
using System.Net.Http; | |
using System.Text; | |
namespace System.Net.Http | |
{ | |
public class GzipContent : ByteArrayContent | |
{ | |
public GzipContent(string content, Encoding encoding, string mediaType) |
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
fileprivate extension Array where Element == (String, String) { | |
func firstValue(name: String) -> String? { | |
if let tuple = self.first(where: {$0.0 == name}) { | |
return tuple.1 | |
} | |
return nil | |
} | |
} |
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
// Google Apps Script methods available to scripts | |
declare namespace google { | |
/** | |
* Methods available to Google Apps Script | |
*/ | |
namespace script { | |
interface IRun { | |
[serverSideFunction: string]: Function; | |
/** |
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
#include <stdio.h> | |
#include "freertos/FreeRTOS.h" | |
#include "esp_system.h" | |
#include "esp_attr.h" | |
#include "sdkconfig.h" | |
portMUX_TYPE microsMux = portMUX_INITIALIZER_UNLOCKED; | |
unsigned long IRAM_ATTR micros() | |
{ | |
static unsigned long lccount = 0; |