- Introduction
- Installation
- Single C file project
- A simple project with two C files
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 'package:json_annotation/json_annotation.dart'; | |
part 'gpt_usage.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptUsage { | |
@JsonKey(name: 'prompt_tokens') | |
int promptTokens; |
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 'package:json_annotation/json_annotation.dart'; | |
part 'gpt_choice_message.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptChoiceMessage{ | |
String role; | |
String content; |
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 'gpt_choice_message.dart'; | |
import 'package:json_annotation/json_annotation.dart'; | |
part 'gpt_choice.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptChoice { | |
GptChoiceMessage message; | |
@JsonKey(name: 'finish_reason') |
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 'gpt_choice.dart'; | |
import 'gpt_usage.dart'; | |
import 'package:json_annotation/json_annotation.dart'; | |
part 'gpt_message.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptMessage { | |
String id; |
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 'dart:math' as math; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/physics.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/services.dart'; | |
const primaryColor = Color(0xFF080B21); |
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
<Window x:Class="WebcamCaptureApp.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:WebcamCaptureApp" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="900" Width="1600"> | |
<Grid> | |
<StackPanel Orientation="Vertical"> |
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
namespace ABIParser | |
{ | |
public class ABIParser | |
{ |
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
public sealed class ArrayBinder : IBindingList, ITypedList | |
{ | |
private sealed class ArrayColumn : PropertyDescriptor | |
{ | |
public ArrayBinder Owner { get; } | |
public int ColumnIndex { get; } | |
public ArrayColumn(ArrayBinder owner, int index) | |
: base($"[{index}]", null) | |
{ |
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
// Title: An exhaustive enum of all Windows System Error Codes | |
// Source: https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381.aspx | |
// Description: Error codes are a means to provide information to outside systems on why a program terminated. This list | |
// need not be included in its entirety. It is meant to aid in conforming to the existing error code usage. | |
// See this link form more information on usage. https://msdn.microsoft.com/en-us/library/system.environment.exitcode.aspx | |
// Note: Internet error codes are excluded from this list. See here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa385465.aspx | |
// Updated: 2016/10/31 | |
namespace Core | |
{ |
NewerOlder