Skip to content

Instantly share code, notes, and snippets.

@xiangwan
xiangwan / index.html
Created July 16, 2016 17:23 — forked from StickyCube/index.html
Electron click through transparency example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test App</title>
</head>
<style>
html, body {
height: 100%;
@xiangwan
xiangwan / IRepository
Created December 20, 2013 10:00
dapper.net repository
using System.Collections.Generic;
using System.Data;
using Phenix.Infrastructure.Data;
namespace Phenix.Core.Repository
{
public interface IRepository<T> where T :class
{
long Add(T item);
bool Update(T item);
@xiangwan
xiangwan / vs.cs
Created May 28, 2012 10:27
解决vs锁住文件
//项目名称上右键属性在预先生成事件中加入:
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if exist "$(TargetPath)" if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"
@xiangwan
xiangwan / C php Serializer.cs
Created September 19, 2011 04:50
C# php Serializer
/// <summary>
/// Serializer Class.
/// </summary>
public class Serializer
{
//types:
// N = null
// s = string
// i = int
// d = double