随笔分类 -  code

1
摘要:最近做博客,使用PHP生成透明背景的PNG缩略图时出了点问题,就是用imagecreatetruecolor()函数创建的图片背景默认是黑色,不能透明.先看一下代码再说:代码很简单,就是imagealphablending($thumb,false);与imagesavealpha($thumb,t... 阅读全文
posted @ 2014-12-03 09:38 立己达人 阅读(1232) 评论(0) 推荐(0)
摘要:统计字母数字等字符 阅读全文
posted @ 2014-10-24 14:43 立己达人 阅读(179) 评论(0) 推荐(0)
摘要:var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代... 阅读全文
posted @ 2014-10-22 14:24 立己达人 阅读(263) 评论(0) 推荐(0)
摘要:jquery//** jQuery Scroll to Top Control script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com.//** Available/ usage terms at http:... 阅读全文
posted @ 2014-10-09 15:29 立己达人 阅读(835) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; public class MoneyHelper { public static string[] chineseDigits = new string[] { ... 阅读全文
posted @ 2014-09-10 09:34 立己达人 阅读(243) 评论(0) 推荐(0)
摘要:using System; using System.Web; public static class CookieHelper { /// /// 添加cookie /// public static voi... 阅读全文
posted @ 2014-09-10 09:29 立己达人 阅读(224) 评论(0) 推荐(0)
摘要:'use strict';/* We need to tell jshint what variables are being exported *//* global -angular, -msie, -jqLite, -jQuery, -slice, -pus... 阅读全文
posted @ 2014-08-06 16:21 立己达人 阅读(660) 评论(0) 推荐(0)
摘要:目录[-]实例一:基本下拉效果实例二:自定义下拉显示名称实例三: 让选项分组实例四:自定义ngModel的值参考select是 AngularJS 预设的一组directive。下面是其官网api doc给出的用法:AngularJS:select大意是,select中的ngOption可以采用和n... 阅读全文
posted @ 2014-08-06 10:21 立己达人 阅读(535) 评论(0) 推荐(0)
摘要:路由http://msdn.microsoft.com/zh-cn/library/cc668201.aspxhttp://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Controller.cs5.http:... 阅读全文
posted @ 2014-08-05 10:04 立己达人 阅读(244) 评论(0) 推荐(0)
摘要:System.Management 命名空间http://msdn.microsoft.com/ZH-CN/library/gg145024(v=vs.110).aspxManagementObjectSearcher Classhttp://msdn.microsoft.com/en-US/lib... 阅读全文
posted @ 2014-07-19 14:43 立己达人 阅读(170) 评论(0) 推荐(0)
摘要:1 开机启动public static bool SetAutoRun(string keyName, string filePath){ try { RegistryKey Local= Registry.LocalMachine; RegistryKey ... 阅读全文
posted @ 2014-07-11 11:44 立己达人 阅读(331) 评论(0) 推荐(0)
摘要:遍历所有字体InstalledFontCollection MyFont = new InstalledFontCollection();FontFamily[] MyFontFamilies = MyFont.Families;List installedFontNames = new List(... 阅读全文
posted @ 2014-07-10 15:08 立己达人 阅读(2949) 评论(0) 推荐(0)
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文
posted @ 2014-07-09 09:04 立己达人 阅读(316) 评论(0) 推荐(0)
摘要:1. 引入命名空间using System.Web.Script.Serialization;2. 解析 Json 为 Dictionary 类型JavaScriptSerializer js = new JavaScriptSerializer();return js.Deserialize(st... 阅读全文
posted @ 2014-07-07 11:37 立己达人 阅读(134) 评论(0) 推荐(0)
摘要:Win32_Printer classhttp://msdn.microsoft.com/zh-cn/library/aa394363.aspx1. 设置默认打印机using System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
posted @ 2014-07-05 10:17 立己达人 阅读(3359) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/peterzb/archive/2009/07/19/1526555.html1. 生成缩略图. /// /// 生成缩略图 /// /// 源路径 /// 目标路径 ... 阅读全文
posted @ 2014-07-03 16:08 立己达人 阅读(245) 评论(0) 推荐(0)
摘要:1.http://www.sharejs.com/codes/2. http://msdn.microsoft.com/zh-cn/library/vstudio/gg145045(v=vs.100).aspx3.http://www.open-open.com/http://startbootst... 阅读全文
posted @ 2014-07-02 17:10 立己达人 阅读(323) 评论(0) 推荐(0)
摘要:// By using the ColorTranslator you can easily convert color values// definied in the hexadecimal format (like it is used in HTML)Color Color1 = Syste... 阅读全文
posted @ 2014-07-02 17:07 立己达人 阅读(1683) 评论(0) 推荐(0)
摘要:using System.Windows.Forms;using System.Runtime.InteropServices;using System.IO;[DllImport("kernel32.dll", SetLastError = true)]static extern int Writ... 阅读全文
posted @ 2014-07-01 18:39 立己达人 阅读(686) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Runtime.InteropServices;using System.Windows.Forms;namespace drmaple{ class HotKey { ... 阅读全文
posted @ 2014-07-01 15:46 立己达人 阅读(345) 评论(0) 推荐(0)

1