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 java.io.BufferedInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.nio.ByteBuffer; | |
import java.text.MessageFormat; | |
import javax.swing.JFileChooser; | |
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
class ColorComparator implements Comparator<Integer> { | |
private ColorEnumType color; | |
public ColorComparator(ColorEnumType color) { | |
this.color = color; | |
} | |
@Override | |
public int compare(Integer a, Integer b) { | |
int mask = 0xff; |
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 <unistd.h> | |
int main() | |
{ | |
while (1) | |
{ | |
sleep(1); | |
} | |
} |
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
// Temporary implementation until this PR is integrated into Postal: | |
// https://github.com/andrewdavey/postal/pull/117 | |
internal class FileSystemWithLayoutsRazorView | |
: IView | |
{ | |
private readonly IRazorEngineService m_razorService; | |
private readonly string m_cacheName; | |
/// <summary> | |
/// Creates a new <see cref="FileSystemRazorView"/> using the |
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 interface ILogManager | |
{ | |
ILogger GetLogger(Type type); | |
ILogger GetLogger<T>(); | |
} |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
int main(int argc, char* argv[]) | |
{ | |
int x = 0xabcd0123; | |
printf("x = %d\n", x); |
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 FluentAssertions; | |
using Newtonsoft.Json; | |
using Xunit; | |
namespace TestProject1; | |
public enum PricingState | |
{ |
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.CompilerServices; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
BenchmarkRunner.Run<Benchmark>(); | |
public class Benchmark | |
{ | |
private readonly Random _random = new(314159265); |
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 | |
# This script helps provide project specific options to the dotnet ef cli. | |
if [ $# -eq 0 ]; then | |
echo "Usage: ./dotnet-ef.sh <command> [options]" | |
exit 1 | |
fi | |
args=( |