This file contains hidden or 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
| git svn propget svn:mergeinfo | % {[System.Text.Encoding]::UTF8.GetString([System.Text.Encoding]::Default.GetBytes($_))} |
This file contains hidden or 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 class RequireIfAttribute : ValidationAttribute | |
| { | |
| public RequireIfMode Mode { get; } | |
| public Type TargetType { get; } | |
| public string Target { get; } | |
| public bool TargetEmptyAsExists { get; set; } |
This file contains hidden or 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
| //Debug("Repl", "cancel") | |
| //field := reflect.ValueOf(*repl.promptInstance).Field(0) | |
| //WriteLn(field, field.Type(), field.Kind(), field.IsValid(), field.CanAddr(), field.CanInterface(), field.CanSet()) | |
| //pointer := reflect.ValueOf(field).Field(1).Pointer() | |
| ////WriteLn(*(*prompt.ConsoleParser)(unsafe.Pointer(pointer[0]))) | |
| //p := (*unsafe.Pointer)(unsafe.Pointer(pointer)) | |
| //WriteLn(p, *p) | |
| //parser := (*prompt.ConsoleParser)(unsafe.Pointer(p)) | |
| //WriteLn(parser) | |
| ////WriteLn(field.Addr()) |
This file contains hidden or 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.IO; | |
| using System.IO.Compression; | |
| using System.Linq; | |
| using System.Text.Json; | |
| using System.Text.Json.Serialization; | |
| using System.Text.RegularExpressions; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using StackExchange.Redis; |
This file contains hidden or 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
| function hasProp(instance, prop) { | |
| let $options = instance.$options || {} | |
| let propsData = $options.propsData || {} | |
| return prop in propsData | |
| } | |
| function fx(self, binding, preCheck, action) { | |
| return function(...e) { | |
| let data = preCheck.call(this, ...e) | |
| if (!data) return |
This file contains hidden or 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
| package com.example.demo; | |
| import com.google.gson.*; | |
| import com.google.gson.stream.JsonReader; | |
| import com.google.gson.stream.JsonWriter; | |
| import org.junit.jupiter.api.Test; | |
| import org.springframework.boot.test.context.SpringBootTest; | |
| import java.io.IOException; | |
| import java.util.ArrayList; |
This file contains hidden or 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
| struct SEQ_VAL { | |
| size_t start = 0, count = 0, mode = 0; | |
| }; | |
| int cg_compress(const unsigned char *src, size_t len, unsigned char *dest, unsigned char bgColor) { | |
| SEQ_VAL seq1, seq2; | |
| size_t dest_pos = 0; | |
| for (size_t i = 0; i < len; ++i) { | |
| switch (seq1.mode) { | |
| case MODE_NONE: |
OlderNewer