Skip to content

Instantly share code, notes, and snippets.

@kappa7194
kappa7194 / 01.waf
Created January 23, 2014 20:49
mpv failed to build on 10.9.1
Setting top to : /private/tmp/mpv-B1k7/mpv-0.3.3
Setting out to : /private/tmp/mpv-B1k7/mpv-0.3.3/build
Checking for waf version in 1.7.13-1.8.0 : ok
Checking for program cc : clang
Checking for program pkg-config : /usr/local/bin/pkg-config
Checking for program perl : /usr/bin/perl
Checking for program rst2man : /usr/local/bin/rst2man.py
Checking for program rst2latex : /usr/local/bin/rst2latex.py
Checking for program pdflatex : not found
Checking for program windres : not found
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Cookies</title>
<link href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css' rel='stylesheet' />
<style>
body { margin: 1em; }
.table-auto-width { width: auto; }
</style>
@kappa7194
kappa7194 / MessageLogging.xml
Created July 13, 2013 21:11
SOAP message logging
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>0</EventID>
<Type>3</Type>
<SubType Name="Information">0</SubType>
<Level>8</Level>
<TimeCreated SystemTime="2013-07-13T21:06:56.2668881Z" />
<Source Name="System.ServiceModel.MessageLogging" />
<Correlation ActivityID="{e65e3b5b-f1af-4a75-9f94-6e2c8362123a}" />
<Execution ProcessName="Playground.Client" ProcessID="312" ThreadID="1" />
@kappa7194
kappa7194 / excel.cs
Created May 28, 2013 10:16
How to generate an Excel workbook.
namespace Playground.Sandbox
{
using System.IO;
using OfficeOpenXml;
public static class Program
{
public static void Main()
{
Microsoft Visual Studio Premium 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709
Installed Version: Premium
LightSwitch for Visual Studio 2012 04941-004-0044006-02568
Microsoft LightSwitch for Visual Studio 2012
CREATE TABLE [dbo].[MyTable]
(
[MyColumn] DATE NOT NULL PRIMARY KEY
)
GO
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES ('2013-01-01')
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES ('2013-01-02')
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES ('2013-01-03')
SET SHOWPLAN_TEXT ON
GO
SELECT [MyColumn]
FROM [dbo].[MyTable]
WHERE [MyColumn] < 2.5
ORDER BY [MyColumn] ASC
GO
CREATE TABLE [dbo].[MyTable]
(
[MyColumn] INT NOT NULL PRIMARY KEY
)
GO
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES (1)
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES (2)
INSERT INTO [dbo].[MyTable] ([MyColumn]) VALUES (3)
@kappa7194
kappa7194 / informations.txt
Created May 2, 2013 10:36
His system informations.
Microsoft Visual Studio Premium 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709
Installed Version: Premium
LightSwitch for Visual Studio 2012 04941-004-0044006-02015
Microsoft LightSwitch for Visual Studio 2012
@kappa7194
kappa7194 / informations.txt
Created May 2, 2013 10:35
My system informations.
Microsoft Visual Studio Premium 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709
Installed Version: Premium
LightSwitch for Visual Studio 2012 04941-004-0044006-02568
Microsoft LightSwitch for Visual Studio 2012