Skip to content

Instantly share code, notes, and snippets.

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

kosmos.ebi buchizo

🍤
( ´・ω・)つΣ;:',;',',:'',:',;',',)
View GitHub Profile
@youz
youz / gist.l
Created November 4, 2011 13:57
#xyzzy で Gist閲覧 & 投稿
;;; -*- mode:lisp; package: gist -*-
;; gist.l - xyzzyでGistの閲覧, ポスト
;;
;; Copyright (c) 2011-2012 Yousuke Ushiki
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@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;
@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;
@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 }"
@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
:: -------------
@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
@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 なのつらい。)
///
@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
@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
#
@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;