https://twitter.com/terrajobst/status/1562179020027965446
https://twitter.com/leppie/status/1562196732418482176
using System.Runtime.CompilerServices; | |
using static ParsingExtensions; | |
string input = "Name: Andrew; Age: 31"; | |
string? name = null; | |
int age = 0; | |
if (input.TryParse($"Name: {Placeholder(ref name)}; Age: {Placeholder(ref age)}")) | |
{ |
#!/usr/bin/env ruby -wKU | |
require "pp" | |
require 'fileutils' | |
require "gruff" | |
require 'rmagick' | |
def read_cal(file) | |
data_segment = false |
public static bool ContainsTokenUnroll(string value, string token, char delimiter = ';') | |
{ | |
if (string.IsNullOrEmpty(token)) return false; | |
if (string.IsNullOrEmpty(value)) return false; | |
var valueLength = value.Length; | |
var tokenLength = token.Length; | |
if (tokenLength > valueLength) return false; |
public class Startup : IStartup | |
{ | |
private static readonly Assembly[] ControllerAssemblies = { typeof(Startup).GetTypeInfo().Assembly }; | |
public Startup(IHostingEnvironment environment, ILoggerFactory logging) | |
{ | |
Environment = environment; | |
ConfigureLogging(logging); | |
} |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
@echo off | |
setlocal EnableDelayedExpansion | |
:: user settings | |
set VERBOSE=0 | |
set ERRORS=0 | |
:: arg parsing settings | |
set ARGS=verbose debug-mode |
@ECHO OFF | |
REM A handy, dandy script for disassembling .NET programs. | |
SETLOCAL EnableDelayedExpansion | |
ECHO .NET Program Disassembler | |
ECHO ========================= | |
REM Pluck out arguments and validate paths. | |
SET BINARY=%1 | |
IF [%BINARY%]==[] ( | |
ECHO error: missing program binary to disassemble |
2015-10-24 | |
- Changed comment | |
- Walk though returning form to wrap. Racket still doesn't work. | |
- Fixed incorrect example on definition of macro and usage environment. | |
Comment of: https://twitter.com/anohana/status/657865512370634753 |
using Ivi.Visa.Interop; | |
using System; | |
using System.IO; | |
using System.Globalization; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Remoting; | |
using System.Runtime.Serialization; | |
namespace ConsoleApplication1 { |