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
| [ | |
| { | |
| "mode" : "Immediate", | |
| "cycles" : "2", | |
| "opcode" : "$69", | |
| "description" : "Add with Carry", | |
| "bytes" : "2", | |
| "name" : "ADC" | |
| }, | |
| { |
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
| [ | |
| { | |
| "bytes" : "2", | |
| "description" : "Add with Carry", | |
| "name" : "ADC", | |
| "opcode" : "$69", | |
| "mode" : "Immediate" | |
| }, | |
| { | |
| "opcode" : "$65", |
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 MyWebCaller : WebCaller | |
| { | |
| private static readonly HttpClient client = CreateHttpClient(); | |
| public static HttpClient CreateHttpClient() | |
| { | |
| var specialClient = new HttpClient(); | |
| specialClient.DefaultRequestHeaders.ExpectContinue = false; |
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
| var first_hwaccel = ffmpeg.av_hwaccel_next(null); | |
| var hwaccel = first_hwaccel; | |
| while (hwaccel != null) | |
| { | |
| var codecName = Marshal.PtrToStringAnsi((IntPtr)hwaccel->name); | |
| Log.Error($"{ffmpeg.avcodec_get_name(hwaccel->id)} | ID : {hwaccel->id} | {(int)(hwaccel->id)} | {hwaccel->pix_fmt} | {codecName}"); | |
| var codec = ffmpeg.avcodec_find_encoder_by_name(codecName); |
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
| #include <stdio.h> | |
| #include <vector> | |
| #include <windows.h> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <time.h> | |
| #define _XOPEN_SOURCE 600 /* for usleep */ | |
| extern "C" | |
| { |
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
| // Roughly based on: https://ffmpeg.org/doxygen/trunk/muxing_8c-source.html | |
| #include <chrono> | |
| #include <thread> | |
| #include <tchar.h> | |
| extern "C" | |
| { | |
| #include <libavcodec\avcodec.h> | |
| #include <libavformat\avformat.h> |
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.ServiceModel; | |
| using System.Threading.Tasks; | |
| namespace WcfTest | |
| { | |
| [ServiceContract] | |
| public interface ITestService | |
| { | |
| [OperationContract] |
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
| internal static class MoqExtensions | |
| { | |
| public static void ReturnsInOrder<T, TResult>(this ISetup<T, TResult> setup, params TResult[] results) where T : class | |
| { | |
| setup.Returns(new Queue<TResult>(results).Dequeue); | |
| } | |
| } |
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 static class Extensions | |
| { | |
| [Flags] | |
| public enum NewLineLocation | |
| { | |
| None = 0, | |
| Before = 1, | |
| After = 2, | |
| Both = Before | After | |
| } |
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
| -- ######################################################### | |
| -- Author: www.sqlbook.com | |
| -- Copyright: (c) www.sqlbook.com. You are free to use and redistribute | |
| -- this script as long as this comments section with the | |
| -- author and copyright details are not altered. | |
| -- Purpose: For a specified user defined table (or all user defined | |
| -- tables) in the database this script generates 4 Stored | |
| -- Procedure definitions with different Procedure name | |
| -- suffixes: | |
| -- 1) List all records in the table (suffix of _lst) |