Skip to content

Instantly share code, notes, and snippets.

View BaoXiaolu's full-sized avatar
🎯
Focusing

Charlotte Bao BaoXiaolu

🎯
Focusing
  • Wenzhou, Zhejiang, China
View GitHub Profile
@BaoXiaolu
BaoXiaolu / gist:1498443c5561e46134b7
Created February 25, 2016 03:23 — forked from amdest/gist:2935783
Twitter Bootstrap modal auto-width
// https://github.com/twitter/bootstrap/issues/675#issuecomment-6184243
$('#feedback-modal').modal({
backdrop: true,
keyboard: true
}).css({
'width': function () {
return ($(document).width() * .9) + 'px';
},
'margin-left': function () {
@BaoXiaolu
BaoXiaolu / DownLoadFile.cs
Created January 11, 2016 00:09 — forked from syxc/DownLoadFile.cs
C# Http文件下载公共类(支持断点续传)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
namespace XcDownLoadFile
{
public class DownLoadFile