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 "123" |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>The RMF Site Editor</title> | |
<style> | |
body { | |
background-color: #101010; | |
margin: 0; | |
padding: 0; |
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
import boto3 | |
from botocore.client import Config | |
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
AWS_ACCESS_KEY = "" | |
AWS_SECRET_KEY = "" | |
BUCKET_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
using System; | |
using System.IO; | |
using System.Net.Sockets; | |
namespace SlingshotTcpClient | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
.bg | |
canvas#hero-lightpass | |
#container | |
h1 AirPods Pro | |
.container-hero | |
div.h1 Active Noise Cancellation for immersive sound. | |
div.h1 Transparency mode for hearing what’s happening around you. | |
div.h1 A customizable fit for all-day comfort. | |
div.h1 Magic like you’ve never heard. |
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 dev.dotworld.mdm.ui.videocall | |
import android.annotation.TargetApi | |
import android.content.Context | |
import android.graphics.ImageFormat | |
import android.hardware.camera2.CameraCharacteristics | |
import android.hardware.camera2.CameraManager | |
import android.hardware.camera2.CameraMetadata | |
import android.os.Build | |
import android.util.Log |
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
import android.annotation.TargetApi | |
import android.content.Context | |
import android.graphics.ImageFormat | |
import android.hardware.Camera | |
import android.hardware.camera2.CameraCharacteristics | |
import android.hardware.camera2.CameraManager | |
import android.hardware.camera2.CameraMetadata | |
import android.os.Build | |
import android.util.Log | |
import com.twilio.video.Camera2Capturer |
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
const val TAG = "Util" | |
class Util { | |
private fun lensOrientationString(value: Int) = when (value) { | |
CameraCharacteristics.LENS_FACING_BACK -> CameraFacing.BACK | |
CameraCharacteristics.LENS_FACING_FRONT -> CameraFacing.FRONT | |
CameraCharacteristics.LENS_FACING_EXTERNAL -> CameraFacing.EXTERNAL | |
else -> CameraFacing.UNKNOWN | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- left shadow --> | |
<item> | |
<shape android:shape="rectangle"> | |
<gradient | |
android:angle="180" | |
android:centerColor="#00FF0000" | |
android:centerY="0.05" | |
android:endColor="#00FF0000" |
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
// add this at top level of Main function | |
// src/ngrok/client/main.go | |
// net/http has some DNS issue. It can be resolved by changing the default resolver | |
func Main() { | |
var dialer net.Dialer | |
net.DefaultResolver = &net.Resolver{ | |
PreferGo: false, | |
Dial: func(context context.Context, network, _ string) (net.Conn, error) { | |
conn, err := dialer.DialContext(context, network, "8.8.8.8:53") | |
if err != nil { |
NewerOlder