Skip to content

Instantly share code, notes, and snippets.

View aaneja's full-sized avatar

Anant Aneja aaneja

  • Ahana
  • New Delhi
  • 16:53 (UTC +05:30)
View GitHub Profile
# velox/flake.nix
# following https://www.breakds.org/post/nix-based-c++-workflow/
{
description = "A flake for building velox";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
utils.inputs.nixpkgs.follows = "nixpkgs";
@sliekens
sliekens / TypeMemberLayout.xaml
Last active May 15, 2024 13:28
StyleCop Type Member Layout for Resharper 9
<?xml version="1.0" encoding="utf-16"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="COM interfaces" Priority="2000">
<TypePattern.Match>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
</Or>
@joyrexus
joyrexus / README.md
Last active June 8, 2024 00:43
Perl one-liners

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):