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
" remove any unwanted vi behavior as soon as possible | |
" must be first because actually has a great number of side effects | |
" | |
" is probably redundant, but I'm paranoid | |
set nocompatible | |
if !exists("g:source_base") | |
let g:source_base = "~bpm/.vim" | |
endif |
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.Runtime.Versioning; | |
using SharpMetal.ObjectiveCCore; | |
namespace SharpMetal.Examples.Common | |
{ | |
[SupportedOSPlatform("macos")] | |
public class NSApplication | |
{ | |
public IntPtr NativePtr; |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net8.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
</Project> |
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 MimeKit; | |
using MailKit; | |
using MailKit.Search; | |
using MailKit.Security; | |
using MailKit.Net.Imap; | |
namespace MailKitDownloadImap; | |
class Program | |
{ |
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
Main XAML: | |
<TableView Intent="Data" HasUnevenRows="true"> | |
<TableRoot> | |
<TableSection | |
Title="Images" | |
x:Name="ImagesTableSection"> | |
</TableSection> |
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
#! /bin/bash | |
set -e | |
GNU_GETOPT=getopt | |
# TODO: icky | |
if [ -d "/usr/local/Cellar/gnu-getopt/2.39/bin" ]; then | |
GNU_GETOPT="/usr/local/Cellar/gnu-getopt/2.39/bin/getopt" | |
fi |
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
#!/bin/bash | |
# | |
# FFmpeg Batch convert files to HEVC | |
# | |
# Auto rename files to "{source}.HEVC.CQ-RF18.mp4" | |
# | |
# Batch transcode video files recursively from input directory, and create a | |
# empty, mirrored directory tree of input directory to new "output" directory. | |
# |
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
<html> | |
<head> | |
<title>Joy</title> | |
</head> | |
<body> | |
<button id="joy-button">Joy</button> | |
<canvas id="canvas0" width="1280" height="720"></canvas> | |
<script> |
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
#include <errno.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <libavcodec/avcodec.h> | |
#include <libavformat/avformat.h> | |
void my_log_callback(void *ptr, int level, const char *fmt, va_list vargs) |
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.Runtime.InteropServices; | |
namespace getrlimit; | |
class Program | |
{ | |
[DllImport("libc", CallingConvention = CallingConvention.Cdecl)] | |
public static extern int getrlimit(int resource, IntPtr rlp); | |
[StructLayout(LayoutKind.Sequential)] |
NewerOlder