Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View buchizo's full-sized avatar
🍤
( ´・ω・)つΣ;:',;',',:'',:',;',',)

kosmos.ebi buchizo

🍤
( ´・ω・)つΣ;:',;',',:'',:',;',',)
View GitHub Profile
@shibayan
shibayan / Program.cs
Created July 18, 2020 10:17
Generate "Sign in with Apple" client_secret using .NET Core (C#)
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Security.Cryptography;
using Microsoft.IdentityModel.Tokens;
namespace ConsoleApp
{
class Program
@madskristensen
madskristensen / VSIX-Checklist.md
Last active August 6, 2023 13:07
VS extension checklist

Visual Studio Extensibility Checklist

Here is a list of things to make sure to remember before publishing your Visual Studio extension.

Adhere to threading rules

Add the Microsoft.VisualStudio.SDK.Analyzers NuGet package to your VSIX project, which will help you discover and fix common violations of best practices regarding threading.

Add high-quality icon

All extensions should have an icon associated with it. Make sure the icon is a high-quality .png file with the size 90x90 pixels in 96 DPI or more. After adding the icon to your VSIX project, register it in the .vsixmanifest file as both the Icon and Preview image.

Name and description

@ufcpp
ufcpp / IndexOfBenchmark.cs
Created September 1, 2017 15:04
utf8 boyer mooreとかでググる → string.IndexOf の性能に関するStackOverlfowが目に付く → Ordinal付けるかどうかで性能差すごいらしい? → 30倍違った…(今ここ)
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Net.Http;
using System.Threading.Tasks;
/// <summary>
/// こんなの、常に Ordinal 付けるしかないじゃない…
/// (デフォルト動作が CurrentCulture なのつらい。)
///
@neuecc
neuecc / Resolver.cs
Last active July 4, 2017 14:34
Extremely fast micro serice locator, moved to https://github.com/neuecc/MicroResolver
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
// Extremely fast micro serice locator.
namespace MicroResolver
@shibayan
shibayan / deploy.cmd
Created January 7, 2017 07:36
Azure Functions deploy script
@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
:: ----------------------
:: KUDU Deployment Script
:: Version: 0.1.13
:: ----------------------
:: Prerequisites
:: -------------
@stknohg
stknohg / Install-Server-GUI-Shell.bat
Last active September 28, 2016 01:11
Windows Server 2016 TPにGUI Shellをインストールするやーつ(※GA版では使えないので注意)
#
# Windows Server 2016 TPにGUI Shellをインストールするやーつ
# ※ソースドライブは最初に見つかったドライブ決め打ちで
#
PowerShell "&{ Add-WindowsFeature Server-GUI-Mgmt-Infra,Server-GUI-Shell -Source (\"WIM:{0}\sources\install.wim:4\" -F (Get-CimInstance Win32_CDROMDrive | Sort-Object Drive)[0].Drive) -Restart }"
@eyecatchup
eyecatchup / pdf2docx.py
Last active May 14, 2021 20:39
Convert PDF files to Microsoft Office Word compatible doc/docx files, using LibreOffice's command line interface.
#!C:/Python27/python.exe
#
# Convert PDF files to Microsoft Office Word compatible doc/docx files,
# using LibreOffice's command line interface.
#
# http://stackoverflow.com/questions/26358281/convert-pdf-to-doc-python-bash
# http://ask.libreoffice.org/en/question/20111/converting-files-using-soffice-convert-to-with-embedded-images-html-to-doc/
# http://cgit.freedesktop.org/libreoffice/core/tree/filter/source/config/fragments/filters
#
@tomkerkhove
tomkerkhove / Kinect - Handling multiple faces
Created November 30, 2014 17:10
Handle multiple faces
private Dictionary<ulong, FaceFrameSource> _faceSources = new Dictionary<ulong, FaceFrameSource>();
private Dictionary<ulong, FaceFrameReader> _faceReaders = new Dictionary<ulong, FaceFrameReader>();
/// <summary>
/// Process body frames
/// </summary>
private void OnBodyFrameReceived(object sender, BodyFrameArrivedEventArgs e)
{
// Get Frame ref
BodyFrameReference bodyRef = e.FrameReference;
@hanishi
hanishi / gist:7139122
Last active May 17, 2022 00:50
PipeStream with Rx that works!
using System;
using System.IO;
using System.IO.Pipes;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security.AccessControl;
using System.Security.Principal;
@takekazuomi
takekazuomi / Program.cs
Created November 12, 2012 23:36
Azure Storage Client 2.0, Simple Table Storage performance measurement
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;