file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
src/components/Grid/CenteredRow.js | JavaScript | import React from 'react';
import styled from 'styled-components';
const CenteredRow = styled.div`
text-align: center;
`;
export default CenteredRow;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Grid/Column.js | JavaScript | import React from 'react';
import styled from 'styled-components';
import { media } from '../../lib/media';
const Column = styled.div`
display: flex;
flex-direction: ${props => (props.reverse ? 'column-reverse' : 'column')};
flex: ${props => (props.flex !== undefined ? props.flex : '1')};
${media.tablet`
... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Grid/Row.js | JavaScript | import React from 'react';
import styled from 'styled-components';
import { media } from '../../lib/media';
const Row = styled.div`
display: flex;
flex-direction: ${props => (props.reverse ? 'row-reverse' : 'row')};
${media.tablet`
display: block;
`};
`;
export default Row;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Grid/Spacer.js | JavaScript | import React from 'react';
import styled from 'styled-components';
const Spacer = styled.div`
display: block;
height: ${props => props.height || 0};
min-height: ${props => props.height || 0};
`;
export default Spacer;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Link.js | JavaScript | import React from 'react';
import GatsbyLink from 'gatsby-link';
import { translate } from 'react-i18next';
import { trackEvent } from '../lib/analytics';
const Link = ({
to,
t,
noLangPathPrefix,
category,
action,
label,
...otherProps
}) =>
/^https?:\/\//.test(to) ? (
<a
href={to}
onCli... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/List.js | JavaScript | import React from 'react';
import styled from 'styled-components';
export const List = styled.ul`
margin: 0;
padding: 0;
list-style: none;
`;
export const ListItem = styled.li`
margin: 0;
padding: 0;
margin-left: 45px;
font-size: 24px;
font-family: 'Roboto', Arial, sans-serif;
color: #6a6a6a;
&::... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/MakeGameBanner.js | JavaScript | import React from 'react';
import { translate } from 'react-i18next';
import BannerContainer from './Containers/BannerContainer';
import WhiteBigTitle from './WhiteBigTitle';
import WhiteParagraph from './WhiteParagraph';
import WhiteBigButton from './WhiteBigButton';
import CenteredRow from './Grid/CenteredRow';
impor... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Navbar.js | JavaScript | import React from 'react';
import styled from 'styled-components';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faBars from '@fortawesome/fontawesome-free-solid/faBars';
import faChevronUp from '@fortawesome/fontawesome-free-solid/faChevronUp';
import faLanguage from '@fortawesome/fontawesome-fr... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/Paragraph.js | JavaScript | import React from 'react';
import styled from 'styled-components';
const Paragraph = styled.p`
font-size: 24px;
font-family: 'Roboto', Arial, sans-serif;
color: #6a6a6a;
margin-bottom: 15px;
margin-top: 10px;
text-align: ${props => props.textAlign || 'left'}
`;
export default Paragraph;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/RightImage.js | JavaScript | import React from 'react';
import styled, { keyframes } from 'styled-components';
import { media } from '../lib/media';
const appearFromRight = keyframes`
from {
transform: translateX(70px);
opacity: 0.7;
}
to {
transform: translateX(0);
opacity: 1;
}
`;
const fadeIn = keyframes`
from {
... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/TweetContainer.js | JavaScript | import styled from 'styled-components';
const TweetContainer = styled.div`
display: flex;
justify-content: center;
`;
export default TweetContainer;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/WhiteBigButton.js | JavaScript | import styled from 'styled-components';
import Link from './Link';
const WhiteBigButton = styled(Link)`
min-height: 56px;
min-width: 200px;
padding: 15px;
margin: 20px;
display: inline-block;
text-align: center;
font-family: 'Roboto', Arial, sans-serif;
font-weight: bold;
text-transform: uppercase;
... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/WhiteBigTitle.js | JavaScript | import React from 'react';
import styled from 'styled-components';
const WhiteBigTitle = styled.h1`
font-size: 72px;
line-height: 89px;
font-family: 'Asap', Arial, sans-serif;
display: inline-block;
margin-top: 10px;
margin-bottom: 10px;
font-weight: 600;
color: white;
`;
export default ({ children }... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/components/WhiteParagraph.js | JavaScript | import React from 'react';
import styled from 'styled-components';
const WhiteParagraph = styled.p`
font-size: 24px;
font-family: 'Roboto', Arial, sans-serif;
color: white;
margin-top: 10px;
margin-bottom: 10px;
`;
export default WhiteParagraph;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/config/index.js | JavaScript | export default {
githubUrl: 'https://github.com/4ian/GD',
crowdinUrl: 'https://crowdin.com/project/gdevelop',
developmentRoadmapUrl: 'https://trello.com/b/qf0lM7k8/gdevelop-roadmap',
forumUrl: 'http://forum.compilgames.net',
discordUrl:
'https://discordapp.com/channels/258623956158906368/37757108564367769... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/layouts/all.sass | SASS |
@import "~bulma"
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/layouts/index.js | JavaScript | import './all.sass';
export default ({ children }) => children();
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/lib/PageContainer.js | JavaScript | import * as React from 'react';
import { I18n, I18nextProvider } from 'react-i18next';
import i18n from './i18n';
// Embed a page with i18n provider AND expose `t` function (as a render prop),
// so that pages can both use <Trans> component and `t` function.
const PageContainer = ({ children, localeCode, localeMessage... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/lib/analytics.js | JavaScript | export const trackEvent = ({ category, label, action, t }) => {
const categoryWithlang = `${category}-${t('LANG_CODE')}`;
console.info(
`Analytics: "${action}" with category=${categoryWithlang} and label=${label}`
);
//eslint-disable-next-line
if (window.ga) {
//eslint-disable-next-line
window.ga(... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/lib/i18n.js | JavaScript | import i18n from 'i18next';
i18n.init({
fallbackLng: 'en',
// allow keys to be phrases having `:`, `.`
nsSeparator: false,
keySeparator: false,
interpolation: {
escapeValue: false, // Not needed for react
},
debug: true,
});
export default i18n;
| 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/lib/media.js | JavaScript | // these sizes are arbitrary and you can set them to whatever you wish
import { css } from 'styled-components';
const sizes = {
giant: 1170,
desktop: 992,
tablet: 768,
phone: 376,
};
// iterate through the sizes and create a media template
export const media = Object.keys(sizes).reduce((accumulator, label) =>... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/404.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
import PageContainer from '../lib/PageContainer';
import BigTitle from '../components/BigTitle';
import Paragraph from '../components/Paragraph';
import TransparentContaine... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/choose-language.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
import PageContainer from '../lib/PageContainer';
import BigTitle from '../components/BigTitle';
import Paragraph from '../components/Paragraph';
import TransparentContaine... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/contribute.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faFacebook from '@fortawesome/fontawesome-free-brands/faFacebook';
import faTwitter from '@fortawesome/fontawesome-free-brands/faTwitter';
import Navbar, { NavBarSpacer } from '../componen... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/download.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faWindows from '@fortawesome/fontawesome-free-brands/faWindows';
import faApple from '@fortawesome/fontawesome-free-brands/faApple';
import faLinux from '@fortawesome/fontawesome-free-brand... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/education.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import Navbar, { NavBarSpacer } from '../components/Navbar';
import Footer from '../components/Footer';
import PageContainer from '../lib/PageContainer';
import Paragraph from '../components/Paragraph';
import BannerContainer from '../components/Containers/... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/features.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import Navbar, { NavBarSpacer } from '../components/Navbar';
import Footer from '../components/Footer';
import PageContainer from '../lib/PageContainer';
import BigTitle from '../components/BigTitle';
import BannerContainer from '../components/Containers/Ba... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/games-showcase.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import Navbar, { NavBarSpacer } from '../components/Navbar';
import Footer from '../components/Footer';
import PageContainer from '../lib/PageContainer';
import BigButton from '../components/BigButton';
import BannerContainer from '../components/Containers/... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
src/pages/index.js | JavaScript | import React from 'react';
import Helmet from 'react-helmet';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faLightbulb from '@fortawesome/fontawesome-free-solid/faLightbulb';
import faThList from '@fortawesome/fontawesome-free-solid/faThList';
import faExternalLinkAlt from '@fortawesome/fontawes... | 4ian/GDevelop-website-v2 | 14 | JavaScript | 4ian | Florian Rival | GDevelopApp | |
cjs/react.development.js | JavaScript | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _Object$getPrototypeOf = _interopDefault(require('babel-runtime/core-js/object/get-prototype-of'));
var _classCallCheck =... | 4ian/lingui-react | 1 | Temporary build of @lingui/react with some Flow typing fixes | JavaScript | 4ian | Florian Rival | GDevelopApp |
cjs/react.production.min.js | JavaScript | 'use strict';Object.defineProperty(exports,"__esModule",{value:!0});function g(c){return c&&"object"===typeof c&&"default"in c?c["default"]:c}
var k=g(require("babel-runtime/core-js/object/get-prototype-of")),m=g(require("babel-runtime/helpers/classCallCheck")),p=g(require("babel-runtime/helpers/createClass")),q=g(requ... | 4ian/lingui-react | 1 | Temporary build of @lingui/react with some Flow typing fixes | JavaScript | 4ian | Florian Rival | GDevelopApp |
index.js | JavaScript | if (process.env.NODE_ENV === "production") {
module.exports = require("./cjs/react.production.min.js")
} else {
module.exports = require("./cjs/react.development.js")
}
| 4ian/lingui-react | 1 | Temporary build of @lingui/react with some Flow typing fixes | JavaScript | 4ian | Florian Rival | GDevelopApp |
examples/src/main/resources/logback.groovy | Groovy | import ch.qos.logback.classic.AsyncAppender
appender("CONSOLE", ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = "%date{dd/MM/yyyy} %X{akkaTimestamp} %-5level %logger{36} %thread %X{akkaSource} - %msg%n"
}
}
appender("ASYNC-CONSOLE", AsyncAppender) {
appenderRef("CONSOLE")
}
root(INFO... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
examples/src/main/scala/Main.scala | Scala | import akka.Done
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{Keep, RunnableGraph, Sink}
import px.kinesis.stream.consumer
import scala.concurrent.Future
object Main extends App {
implicit val system = ActorSystem("kinesis-source")
implicit val ec = system.dispa... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
examples/src/main/scala/Producer.scala | Scala | import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{Sink, Source}
import akka.util.ByteString
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain
import com.amazonaws.services.kinesis.producer.KinesisProducerConfiguration
import com.contxt.kinesis.ScalaKinesisProduce... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
release.sh | Shell | #!/bin/bash
set -e
tag=$1
echo "Decrypting GPG secret keyring"
openssl aes-256-cbc -K $encrypted_04c98034e207_key -iv $encrypted_04c98034e207_iv -in gpg/secring.asc.enc -out gpg/secring.asc -d
echo "Setting version for project to $tag"
echo "version in ThisBuild := \"$tag\"" > version.sbt
sbt +publishSigned
if [[ ... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/CommitGraphStages.scala | Scala | package px.kinesis.stream.consumer
import akka.NotUsed
import akka.stream.scaladsl.Flow
import scala.concurrent.ExecutionContext
trait CommitGraphStages {
/**
* A flow which transparently marks every record as processed
* @param parallelism
* @param ec
* @return
*/
def commitFlow(parallelism... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/Consumer.scala | Scala | package px.kinesis.stream.consumer
import java.text.DateFormat
import java.util.{Date, UUID}
import akka.Done
import akka.actor.ActorSystem
import akka.stream.scaladsl.{Keep, MergeHub, Source}
import akka.stream.{KillSwitches, Materializer}
import akka.util.Timeout
import com.typesafe.config.Config
import px.kinesis.... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/Record.scala | Scala | package px.kinesis.stream.consumer
import java.time.Instant
import akka.Done
import akka.util.ByteString
import px.kinesis.stream.consumer.checkpoint.CheckpointTracker
import software.amazon.kinesis.retrieval.KinesisClientRecord
import software.amazon.kinesis.retrieval.kpl.ExtendedSequenceNumber
import scala.concurr... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/RecordProcessorFactoryImpl.scala | Scala | package px.kinesis.stream.consumer
import akka.NotUsed
import akka.event.LoggingAdapter
import akka.stream.scaladsl.{Keep, Sink, Source}
import akka.stream.{KillSwitch, Materializer, OverflowStrategy}
import px.kinesis.stream.consumer.checkpoint.CheckpointTracker
import software.amazon.kinesis.processor.{ShardRecordPr... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/RecordProcessorImpl.scala | Scala | package px.kinesis.stream.consumer
import akka.Done
import akka.event.LoggingAdapter
import akka.stream.scaladsl.SourceQueueWithComplete
import akka.stream.{KillSwitch, QueueOfferResult}
import px.kinesis.stream.consumer.checkpoint.CheckpointTracker
import software.amazon.kinesis.exceptions.{
KinesisClientLibDepende... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/SchedulerExecutionContext.scala | Scala | package px.kinesis.stream.consumer
import java.util.concurrent.Executors
import com.google.common.util.concurrent.ThreadFactoryBuilder
import scala.concurrent.ExecutionContext
object SchedulerExecutionContext {
lazy val Global = SchedulerExecutionContext("KinesisScheduler")
def apply(name: String): ExecutionC... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/StreamScheduler.scala | Scala | package px.kinesis.stream.consumer
import akka.actor.ActorSystem
import akka.event.{Logging, LoggingAdapter}
import akka.stream.scaladsl.Sink
import akka.stream.{KillSwitch, Materializer}
import akka.{Done, NotUsed}
import px.kinesis.stream.consumer.checkpoint.CheckpointTracker
import software.amazon.kinesis.common.Co... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/WorkerStateChangeListenerImpl.scala | Scala | package px.kinesis.stream.consumer
import akka.Done
import akka.event.LoggingAdapter
import software.amazon.kinesis.coordinator.WorkerStateChangeListener
import software.amazon.kinesis.coordinator.WorkerStateChangeListener.WorkerState
import scala.concurrent.Promise
class WorkerStateChangeListenerImpl(shutdownPromis... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/checkpoint/CheckpointTracker.scala | Scala | package px.kinesis.stream.consumer.checkpoint
import akka.Done
import akka.actor.{Actor, ActorRef, ActorSystem}
import akka.pattern.{AskTimeoutException, ask}
import akka.util.Timeout
import px.kinesis.stream.consumer.checkpoint.CheckpointTrackerActor._
import software.amazon.kinesis.processor.RecordProcessorCheckpoin... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/checkpoint/CheckpointTrackerActor.scala | Scala | package px.kinesis.stream.consumer.checkpoint
import akka.actor.{
Actor,
ActorLogging,
ActorRef,
OneForOneStrategy,
Props,
SupervisorStrategy,
Terminated
}
import akka.pattern.{gracefulStop, pipe}
import CheckpointTrackerActor._
import akka.actor.Status.Failure
import akka.actor.SupervisorStrategy.Escala... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/checkpoint/ShardCheckpointTrackerActor.scala | Scala | package px.kinesis.stream.consumer.checkpoint
import java.time.Instant
import akka.actor.Status.Failure
import akka.actor.{Actor, ActorLogging, ActorRef, Props}
import px.kinesis.stream.consumer.checkpoint.ShardCheckpointTrackerActor._
import software.amazon.kinesis.processor.RecordProcessorCheckpointer
import softwa... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/main/scala/px/kinesis/stream/consumer/package.scala | Scala | package px.kinesis.stream
package object consumer extends Consumer with CommitGraphStages
| 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/test/scala/px/kinesis/stream/consumer/checkpoint/CheckpointTrackerActorSpec.scala | Scala | package px.kinesis.stream.consumer.checkpoint
import akka.actor.Status.Failure
import akka.actor.{ActorRef, ActorSystem}
import akka.testkit.{ImplicitSender, TestKit}
import org.scalamock.scalatest.MockFactory
import org.scalatest.funspec.AnyFunSpecLike
import org.scalatest.BeforeAndAfterAll
import org.scalatest.match... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
src/test/scala/px/kinesis/stream/consumer/checkpoint/ShardCheckpointTrackerActorSpec.scala | Scala | package px.kinesis.stream.consumer.checkpoint
import akka.actor.Status.Failure
import akka.actor.{ActorRef, ActorSystem}
import akka.testkit.{ImplicitSender, TestKit, TestProbe}
import org.scalamock.scalatest.MockFactory
import org.scalatest.BeforeAndAfterAll
import org.scalatest.funspec.AnyFunSpecLike
import org.scal... | 500px/kinesis-stream | 10 | Scala based wrapper for Kinesis Consumer Library which exposes the stream as an Akka Streams Source | Scala | 500px | 500px | |
android/app/build.gradle.kts | Kotlin | plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
android {
namespace = "com.example.android"
compileSdk = 35
defaultConfig {
applicationId = "com.example.android"
minSdk = 24
targetSdk = 35
... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/MainActivity.kt | Kotlin | package com.example.android
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.media.projection.MediaProjectionManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import androidx.activity.... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/service/AsrService.kt | Kotlin | package com.example.android.service
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Intent
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaPlayer
import android.me... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/service/ScreenshotService.kt | Kotlin | package com.example.android.service
import javax.net.ssl.HttpsURLConnection
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Intent
import android.graphics.PixelFormat
import android.hardware.display.DisplayM... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/ui/theme/Color.kt | Kotlin | package com.example.android.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260) | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/ui/theme/Theme.kt | Kotlin | package com.example.android.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.comp... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/ui/theme/Type.kt | Kotlin | package com.example.android.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typograp... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/app/src/main/java/com/example/android/utils/PermissionUtils.kt | Kotlin | package com.example.android.utils
import android.content.Context
import android.content.pm.PackageManager
object PermissionUtils {
private const val TAG = "PermissionUtils"
fun hasAllPermissions(context: Context): Boolean {
return context.checkSelfPermission(android.Manifest.permission.RECORD_AUDIO) ... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/build.gradle.kts | Kotlin | // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
} | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
android/settings.gradle.kts | Kotlin | pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
server/run.sh | Shell | #!/bin/bash
export ARK_API_KEY=
python src/main.py | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
server/src/config.py | Python | # Doubao-vision-pro-32k ENDPOINT_ID
VLM_ENDPOINT = ""
# Doubao-pro-32k ENDPOINT_ID
LLM_ENDPOINT = "" # 256K model for a short term memory
TTS_APP_ID = ""
TTS_ACCESS_TOKEN = ""
| 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
server/src/main.py | Python | # Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# Licensed under the 【火山方舟】原型应用软件自用许可协议
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.volcengine.com/docs/82379/1433703
# Unless required by applicable law or agreed to in writing, ... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
server/src/prompt.py | Python | # Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# Licensed under the 【火山方舟】原型应用软件自用许可协议
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.volcengine.com/docs/82379/1433703
# Unless required by applicable law or agreed to in writing,... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
server/src/utils.py | Python | # Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# Licensed under the 【火山方舟】原型应用软件自用许可协议
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.volcengine.com/docs/82379/1433703
# Unless required by applicable law or agreed to in writing,... | 521xueweihan/HGDoll | 19 | 🎮 你的 AI 手机游戏陪玩 Your AI mobile gaming companion | Kotlin | 521xueweihan | 削微寒 | 公众号:HelloGitHub |
include/client/http3_client.h | C/C++ Header | /*
* HTTP/3 Client - QUIC/HTTP3 Connection Client
*
* Provides synchronous blocking API for HTTP/3 requests.
* Manages a persistent QUIC connection with background event loop.
*/
#pragma once
#include <string>
#include <memory>
#include <functional>
#include <mutex>
#include <atomic>
#include <vector>
#include ... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/client/power_lock.h | C/C++ Header | /*
* Power Lock Provider Interface
*
* Provides an abstraction for power management lock functionality.
* This allows modules to acquire/release power locks without
* directly depending on NetworkManager.
*/
#pragma once
/**
* Power save level enumeration
*/
enum class PowerSaveLevel {
UNKNOWN, // U... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/ack_manager.h | C/C++ Header | /**
* @file ack_manager.h
* @brief QUIC ACK Management
*
* Tracks received packet numbers and generates ACK frames.
*/
#pragma once
#include "quic/quic_types.h"
#include "quic/quic_constants.h"
#include <cstdint>
#include <vector>
#include <set>
namespace esp_http3 {
/**
* @brief Manages ACK state for one pa... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/crypto_manager.h | C/C++ Header | /**
* @file crypto_manager.h
* @brief QUIC Crypto Manager - Centralized cryptographic operations
*
* Manages all cryptographic state and operations for a QUIC connection:
* - Key derivation (Initial, Handshake, Application)
* - Packet encryption/decryption
* - Transcript hash management
* - X25519 key exchange... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/flow_controller.h | C/C++ Header | /**
* @file flow_controller.h
* @brief QUIC Flow Control Management
*/
#pragma once
#include "quic/quic_types.h"
#include "quic/quic_constants.h"
#include <cstdint>
#include <unordered_map>
namespace esp_http3 {
/**
* @brief Per-stream flow control state
*/
struct StreamFlowState {
// Send side
uint64_... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/frame_processor.h | C/C++ Header | /**
* @file frame_processor.h
* @brief QUIC Frame Processor - Parse and dispatch incoming frames
*
* Handles parsing of all QUIC frame types from decrypted packet payloads
* and dispatches to appropriate handlers via callbacks.
*
* This separates low-level parsing from business logic, making the code
* more m... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/loss_detector.h | C/C++ Header | /**
* @file loss_detector.h
* @brief QUIC Loss Detection and Congestion Control (RFC 9002)
*/
#pragma once
#include "core/ack_manager.h"
#include <cstdint>
#include <functional>
namespace esp_http3 {
/**
* @brief Simple congestion controller (NewReno-like)
*/
class CongestionController {
public:
Congestion... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/core/quic_connection.h | C/C++ Header | /**
* @file quic_connection.h
* @brief QUIC Connection - Main orchestrator class
*
* QuicConnection is the primary interface for QUIC/HTTP3 communication.
* It composes specialized components:
* - CryptoManager: Key derivation and encryption
* - FlowController: Send/receive flow control
* - AckManager: ACK gen... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/esp_http3.h | C/C++ Header | /**
* @file esp_http3.h
* @brief ESP32 QUIC/HTTP3 Client - Main Public API
*
* This library provides a QUIC (RFC 9000) and HTTP/3 (RFC 9114) client
* implementation for ESP32 platforms.
*
* Features:
* - QUIC v1 transport protocol
* - TLS 1.3 handshake (using mbedtls)
* - HTTP/3 request/response
* - Stream... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/h3/h3_constants.h | C/C++ Header | /**
* @file h3_constants.h
* @brief HTTP/3 Protocol Constants (RFC 9114, RFC 9204)
*/
#pragma once
#include <cstdint>
namespace esp_http3 {
namespace h3 {
//=============================================================================
// HTTP/3 Frame Types (RFC 9114 Section 7.2)
//===============================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/h3/h3_frame.h | C/C++ Header | /**
* @file h3_frame.h
* @brief HTTP/3 Frame Building and Parsing (RFC 9114)
*/
#pragma once
#include "quic/quic_types.h"
#include "h3/h3_constants.h"
#include <cstdint>
#include <cstddef>
#include <string>
#include <vector>
namespace esp_http3 {
namespace h3 {
//=================================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/h3/h3_handler.h | C/C++ Header | /**
* @file h3_handler.h
* @brief HTTP/3 Request/Response Handler
*/
#pragma once
#include "h3/h3_frame.h"
#include "quic/quic_types.h"
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
#include <unordered_map>
#include <memory>
namespace esp_http3 {
namespace h3 {
/**
* @brief HTTP/3... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_aead.h | C/C++ Header | /**
* @file quic_aead.h
* @brief QUIC AEAD Encryption/Decryption (RFC 9001)
*
* Implements AES-128-GCM AEAD and header protection using mbedtls.
*/
#pragma once
#include "quic/quic_types.h"
#include <cstdint>
#include <cstddef>
namespace esp_http3 {
namespace quic {
//=========================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_constants.h | C/C++ Header | /**
* @file quic_constants.h
* @brief QUIC Protocol Constants (RFC 9000, RFC 9001)
*/
#pragma once
#include <cstdint>
#include <array>
#include <cstddef>
namespace esp_http3 {
namespace quic {
//=============================================================================
// QUIC Version
//======================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_crypto.h | C/C++ Header | /**
* @file quic_crypto.h
* @brief QUIC Key Derivation (RFC 9001)
*
* Implements TLS 1.3 key schedule for QUIC using mbedtls.
*/
#pragma once
#include "quic/quic_types.h"
#include <cstdint>
#include <cstddef>
namespace esp_http3 {
namespace quic {
//============================================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_frame.h | C/C++ Header | /**
* @file quic_frame.h
* @brief QUIC Frame Building and Parsing (RFC 9000)
*/
#pragma once
#include "quic/quic_types.h"
#include "quic/quic_constants.h"
#include <cstdint>
#include <cstddef>
#include <vector>
namespace esp_http3 {
namespace quic {
//=============================================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_packet.h | C/C++ Header | /**
* @file quic_packet.h
* @brief QUIC Packet Building and Parsing (RFC 9000)
*/
#pragma once
#include "quic/quic_types.h"
#include "quic/quic_constants.h"
#include <cstdint>
#include <cstddef>
#include <vector>
namespace esp_http3 {
namespace quic {
//===========================================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_types.h | C/C++ Header | /**
* @file quic_types.h
* @brief QUIC Basic Types and Utilities
*/
#pragma once
#include <cstdint>
#include <cstddef>
#include <array>
#include <vector>
#include <string>
namespace esp_http3 {
namespace quic {
//=============================================================================
// Crypto Types
//====... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/quic/quic_varint.h | C/C++ Header | /**
* @file quic_varint.h
* @brief QUIC Variable-Length Integer Encoding (RFC 9000 Section 16)
*/
#pragma once
#include <cstdint>
#include <cstddef>
namespace esp_http3 {
namespace quic {
/**
* @brief Encode a variable-length integer
*
* QUIC uses a variable-length encoding with 1, 2, 4, or 8 bytes.
* The t... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
include/tls/tls_handshake.h | C/C++ Header | /**
* @file tls_handshake.h
* @brief TLS 1.3 Handshake Messages for QUIC (RFC 8446)
*/
#pragma once
#include "quic/quic_types.h"
#include "quic/quic_frame.h"
#include <cstdint>
#include <cstddef>
#include <string>
#include <vector>
namespace esp_http3 {
namespace tls {
//=========================================... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/client/http3_client.cc | C++ | /*
* HTTP/3 Client Implementation
*
* Provides synchronous blocking API for HTTP/3 requests.
*/
#include "client/http3_client.h"
#include <esp_log.h>
#include <esp_timer.h>
#include <lwip/sockets.h>
#include <lwip/netdb.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
#include <algorithm>
#include ... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/ack_manager.cc | C++ | /**
* @file ack_manager.cc
* @brief ACK Management Implementation
*
* Refactored to match Python implementation with proper:
* - Duplicate packet detection
* - ACK delay encoding with ack_delay_exponent
* - Multi-range ACK support
*/
#include "core/ack_manager.h"
#include "quic/quic_frame.h"
#include <algori... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/crypto_manager.cc | C++ | /**
* @file crypto_manager.cc
* @brief QUIC Crypto Manager Implementation
*/
#include "core/crypto_manager.h"
#include "quic/quic_crypto.h"
#include <cstring>
#include <random>
#include <esp_log.h>
#include <esp_random.h>
#include <esp_timer.h>
namespace esp_http3 {
static const char* TAG = "CryptoManager";
//=... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/flow_controller.cc | C++ | /**
* @file flow_controller.cc
* @brief Flow Control Implementation
*/
#include "core/flow_controller.h"
#include "quic/quic_frame.h"
#include <algorithm>
#include "esp_log.h"
#define TAG "FlowController"
namespace esp_http3 {
FlowController::FlowController() {
Reset();
}
void FlowController::Initialize(ui... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/frame_processor.cc | C++ | /**
* @file frame_processor.cc
* @brief QUIC Frame Processor Implementation
*/
#include "core/frame_processor.h"
#include "quic/quic_frame.h"
#include <esp_log.h>
namespace esp_http3 {
static const char* TAG = "FrameProcessor";
// Helper to get packet type string for logging
static const char* GetPacketTypeStr(... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/loss_detector.cc | C++ | /**
* @file loss_detector.cc
* @brief Loss Detection Implementation
*/
#include "core/loss_detector.h"
#include <algorithm>
#include <cmath>
#include <esp_log.h>
#define TAG "LossDetector"
namespace esp_http3 {
//=============================================================================
// CongestionControll... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/core/quic_connection.cc | C++ | /**
* @file quic_connection.cc
* @brief QUIC Connection Implementation
*
* Refactored to use component-based architecture:
* - CryptoManager: Handles all cryptographic operations
* - FrameProcessor: Parses and dispatches incoming frames
*/
#include "core/quic_connection.h"
#include "core/ack_manager.h"
#includ... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/h3/h3_frame.cc | C++ | /**
* @file h3_frame.cc
* @brief HTTP/3 Frame Implementation
*/
#include "h3/h3_frame.h"
#include "h3/h3_constants.h"
#include "quic/quic_varint.h"
#include "esp_log.h"
#include <cstring>
namespace esp_http3 {
namespace h3 {
using quic::EncodeVarint;
using quic::DecodeVarint;
using quic::VarintEncodedSize;
using... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/h3/h3_handler.cc | C++ | /**
* @file h3_handler.cc
* @brief HTTP/3 Handler Implementation
*/
#include "h3/h3_handler.h"
#include "h3/h3_constants.h"
#include "esp_log.h"
#include <algorithm>
#include <cstring>
static const char* TAG = "H3Handler";
namespace esp_http3 {
namespace h3 {
H3Handler::H3Handler() {
Reset();
}
void H3Hand... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_aead.cc | C++ | /**
* @file quic_aead.cc
* @brief QUIC AEAD Implementation using mbedtls
*/
#include "quic/quic_aead.h"
#include "quic/quic_constants.h"
#include <mbedtls/gcm.h>
#include <mbedtls/aes.h>
#include <cstring>
#include <esp_log.h>
namespace esp_http3 {
namespace quic {
static const char* TAG = "QUIC_AEAD";
//=====... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_crypto.cc | C++ | /**
* @file quic_crypto.cc
* @brief QUIC Key Derivation Implementation using mbedtls
*/
#include "quic/quic_crypto.h"
#include "quic/quic_constants.h"
#include <mbedtls/hkdf.h>
#include <mbedtls/sha256.h>
#include <mbedtls/ecdh.h>
#include <mbedtls/ecp.h>
#include <mbedtls/entropy.h>
#include <mbedtls/ctr_drbg.h>
... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_frame.cc | C++ | /**
* @file quic_frame.cc
* @brief QUIC Frame Building and Parsing Implementation
*/
#include "quic/quic_frame.h"
#include "quic/quic_varint.h"
#include <cstring>
namespace esp_http3 {
namespace quic {
//=============================================================================
// Frame Building
//===========... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_packet.cc | C++ | /**
* @file quic_packet.cc
* @brief QUIC Packet Building and Parsing Implementation
*/
#include "quic/quic_packet.h"
#include "quic/quic_varint.h"
#include "quic/quic_aead.h"
#include "quic/quic_frame.h"
#include <cstring>
#include <vector>
#include <esp_log.h>
namespace esp_http3 {
namespace quic {
static const... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_types.cc | C++ | /**
* @file quic_types.cc
* @brief QUIC Types Implementation
*/
#include "quic/quic_types.h"
#include "quic/quic_varint.h"
#include <esp_timer.h>
namespace esp_http3 {
namespace quic {
bool BufferWriter::WriteVarint(uint64_t value) {
size_t encoded_size = VarintEncodedSize(value);
if (offset_ + encoded_s... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia | |
src/quic/quic_varint.cc | C++ | /**
* @file quic_varint.cc
* @brief QUIC Variable-Length Integer Encoding (RFC 9000 Section 16)
*/
#include "quic/quic_varint.h"
namespace esp_http3 {
namespace quic {
size_t EncodeVarint(uint64_t value, uint8_t* out, size_t out_len) {
if (value <= 63) {
// 1 byte: 00xxxxxx
if (out_len < 1) re... | 78/esp-http3 | 13 | A QUIC HTTP/3 Client for ESP32, ported from Python implementation | C++ | 78 | Xiaoxia |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.