Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Wayne SeriaWei

🎯
Focusing
Block or report user

Report or block SeriaWei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4d347134f00891aada64610f9b2b1dce
FileStream fs = new FileStream(@"c:\tmp\huge_dummy_file", FileMode.CreateNew);
fs.Seek(2048L * 1024 * 1024, SeekOrigin.Begin);
fs.WriteByte(0);
fs.Close();
View gist:7b11e9db369a07d4dcbe1e06e7dac2b3
Data Source=App_Data/Database.sqlite
@SeriaWei
SeriaWei / parseDate.js
Last active Jul 17, 2017
parse date with format
View parseDate.js
function parseDate(date,format) {
var year=0,month=0,day=0,hour=0,minute=0,seconds=0;
function toNumber(n){
if(n == ''){
return -1;
}
return Number(n);
}
function yearSetter(y,p){
View jenkins-dotnet-core-3.0
FROM jenkins/jenkins:lts
USER root
WORKDIR /dotnet
RUN wget -O dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/72ce4d40-9063-4a2e-a962-0bf2574f75d1/5463bb92cff4f9c76935838d1efbc757/dotnet-sdk-3.0.100-preview6-012264-linux-x64.tar.gz
RUN tar zxf dotnet.tar.gz -C ./
ENV PATH="${PATH}:/dotnet:/var/jenkins_home/.dotnet/tools"
ENV DOTNET_ROOT="/dotnet"
RUN rm -rf dotnet.tar.gz
RUN apt update -y
RUN apt install icu-devtools vim zip unzip -y
View nbmyfamily
using HtmlAgilityPack;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Reflection;
You can’t perform that action at this time.