Skip to content

Instantly share code, notes, and snippets.

using Azure.Communication.Email;
using Azure.Storage.Blobs;
using Invio.Extensions.Authentication.JwtBearer;
using Markdig;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
\documentclass[10pt, letterpaper]{article}
% Packages:
\usepackage[
ignoreheadfoot, % set margins without considering header and footer
top=2 cm, % seperation between body and page edge from the top
bottom=2 cm, % seperation between body and page edge from the bottom
left=2 cm, % seperation between body and page edge from the left
right=2 cm, % seperation between body and page edge from the right
footskip=1.0 cm, % seperation between body and footer
using DynamicData;
using DynamicData.Binding;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Programming.Team.AI.Core;
using Programming.Team.Business.Core;
using Programming.Team.Core;
using ReactiveUI;
using System;
<div class="panels">
@{
int index = 0;
}
<MudExpansionPanels MultiExpansion="true" >
@foreach (var position in ViewModel.Entities)
{
@if (index == 0)
{
<MudCard Class="thin-panel">
<spinningCat> Arc1, can you give me information about scriban?
<Arc1> 👾 Scriban is a powerful templating language for .NET. It uses a familiar liquid-like syntax, offering features like object access, control flow, and extensibility via custom functions. It's commonly used for code generation and text transformations.
<spinningCat> Arc1, you write code that generates latex with scriban?
<Arc1> 👾 Yes, I can generate LaTeX code using Scriban. I can define templates with placeholders for dynamic content and then populate them with data to produce the desired LaTeX output.
* pingu3 (~vm0@user/pingu) has joined
<spinningCat> Arc1, can you give me an example?
<Arc1> 👾 ``scriban 👾 \documentclass{article} 👾 \title{Generated Document} 👾 \date{ { date | date '%Y-%m-%d' } } 👾 \begin{document} 👾 \maketitle 👾 Content: {{ content }} 👾 \end{document} 👾 ` 👾 Data: { content: "Hello World!" }`
<spinningCat> Arc1,
<spinningCat> Arc1, is it similar to template string?
<Arc1> 👾 Yes, Scriban is similar to template strings in
@*@inherits ReactiveComponentBase<AddCertificateViewModel>
@if (ViewModel != null)
{
<AlertView Alert="ViewModel.Alert" />
<MudOverlay ZIndex="5" Visible="@ViewModel.IsOpen"
Style="background-color: rgba(255,255,255,.3); padding: 20px"
AutoClose="false" />
FROM dhcf:debian AS markdownworker
WORKDIR /worker/markdown
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-venv bash \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file into the container
import os
import time
import shutil
import itertools
# Define folder paths
folder_path = "/home/spinningca-t/workers/listener/new/"
moved_folder_path = "/home/spinningca-t/workers/listener/done/"
unsupported_folder_path = "/home/spinningca-t/workers/listener/unsupported/"
#!/bin/bash
# Exit on error
set -e
command -v docker >/dev/null 2>&1 || { echo "Docker is not installed. Aborting." >&2; exit 1; }
command -v docker-compose >/dev/null 2>&1 || { echo "Docker Compose is not installed. Aborting." >&2; exit 1; }
VERSION=${VERSION:-"1.0.0"} # Use environment variable if set, otherwise default
DOCKER_REGISTRY=${DOCKER_REGISTRY:-""} # Leave empty for local use