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
class CaptureManager : NSObject, AVCaptureVideoDataOutputSampleBufferDelegate { | |
override init() { | |
super.init() | |
startCaptureSession() | |
} | |
deinit { | |
stopCaptureSession() | |
} | |
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
struct ContentView: View { | |
@State private var currentCGImage: CGImage? | |
@State private var stateServerUrl: String = "" | |
@State private var stateAuthToken: String = "" | |
private let captureManager = CaptureManager() | |
var body: some View { | |
VStack { |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Test - simple 2 network interfaces' | |
Parameters: | |
KeyName: | |
Description: 'Key Pair name' | |
Type: 'AWS::EC2::KeyPair::KeyName' | |
Default: kman | |
Resources: | |
VPC: | |
Type: 'AWS::EC2::VPC' |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Test - simple 2 network interfaces' | |
Parameters: | |
KeyName: | |
Description: 'Key Pair name' | |
Type: 'AWS::EC2::KeyPair::KeyName' | |
Default: kman | |
Resources: | |
VPC: | |
Type: 'AWS::EC2::VPC' |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Test - simple 2 network interfaces' | |
Parameters: | |
KeyName: | |
Description: 'Key Pair name' | |
Type: 'AWS::EC2::KeyPair::KeyName' | |
Default: kman | |
Resources: | |
VPC: | |
Type: 'AWS::EC2::VPC' |
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
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import secrets | |
ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-' | |
if __name__ == "__main__": |
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
class LongToMultiLongArray { | |
fun put(key: Long, value: Long) { | |
var i = ContainerHelpers.binarySearch(mKeys, mSize, key) | |
if (i >= 0) { | |
val index = mIndices[i] | |
val offset = ((index shr 32) and 0x7FFF).toInt() | |
val cap = ((index shr 16) and 0x7FFF).toInt() | |
val len = ((index) and 0x7FFF).toInt() |
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
function makeDebounce(real, interval) { | |
var timerValue; | |
return function() { | |
if (timerValue) { | |
clearTimer(timerValue) | |
} | |
timerValue = setTimer(real, interval) | |
} | |
} |
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 auth | |
import ( | |
"crypto/rsa" | |
"encoding/base64" | |
"encoding/json" | |
"fmt" | |
"math/big" | |
) |
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
// Copyright (C) 2016 The Android Open Source Project | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder