UTC: 2024-05-09 08:07 naveen521kk/au-packages
This file is automatically generated by the update_all.ps1 script using the AU module.
Ignored | History | Force Test | Releases
UTC: 2024-05-09 08:07 naveen521kk/au-packages
This file is automatically generated by the update_all.ps1 script using the AU module.
Ignored | History | Force Test | Releases
# A program to make an image as a square maintaining aspect ratio and fill white spaces for extra space. | |
# I used this for instagram posts | |
from PIL import Image | |
import os | |
from pillow_heif import register_heif_opener | |
register_heif_opener() | |
# find largest width and length |
Go to https://chocolatey.org/install and follow the command there and paste it in an administrative Powershell Windows. Something like
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#include <stdio.h> | |
#include <stdlib.h> | |
int main() { | |
int row, col; | |
printf("enter row and col:"); | |
scanf("%d %d", &row, &col); | |
int **mat; | |
mat = calloc(row, sizeof(int *)); |
def binary_search(arr, low, high, number): | |
if high >= low: | |
mid = (high + low) // 2 | |
if arr[mid] == number: | |
return mid | |
elif arr[mid] > number: | |
return binary_search(arr, low, mid - 1, number) | |
else: | |
return binary_search(arr, mid + 1, high, number) | |
else: |
# A program to check if the compiler passed | |
# is a Mingw-w64 based compiler. | |
import os | |
import subprocess | |
import argparse | |
import sys | |
def is_mingw(CC): |
# Works on Manim Community Edition v0.15.0 | |
from manim import * | |
from manim.opengl import * | |
import textwrap | |
class InlineFullScreenQuad(Scene): | |
def construct(self): | |
surface = FullScreenQuad( | |
self.renderer.context, | |
textwrap.indent(""" |
#!/bin/bash | |
set -e | |
INSTALLER_URL="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz" | |
tmpdir=$(mktemp -d) | |
mkdir -pv $tmpdir | |
echo "Cding into temp directory $tmpdir" | |
cd $tmpdir |