This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void Emit() | |
{ | |
People people = new People { Name = "Wayne" }; | |
Type type = typeof(People); | |
var property = type.GetProperty("Name"); | |
DynamicMethod method = new DynamicMethod("GetPropertyValue", typeof(object), new Type[] { type }, true); | |
ILGenerator il = method.GetILGenerator(); | |
il.Emit(OpCodes.Ldarg_0); | |
il.Emit(OpCodes.Callvirt, property.GetGetMethod()); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$watchPath = Read-Host "Please input a path to watch" | |
### SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO | |
$filewatcher = New-Object System.IO.FileSystemWatcher | |
#Mention the folder to monitor | |
$filewatcher.Path = $watchPath | |
$filewatcher.Filter = "*.*" | |
#include subdirectories $true/$false | |
$filewatcher.IncludeSubdirectories = $true | |
$filewatcher.EnableRaisingEvents = $true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://codeplexarchive.blob.core.windows.net/archive/projects/simproexpr/simproexpr.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data Source=App_Data/Database.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FileStream fs = new FileStream(@"c:\tmp\huge_dummy_file", FileMode.CreateNew); | |
fs.Seek(2048L * 1024 * 1024, SeekOrigin.Begin); | |
fs.WriteByte(0); | |
fs.Close(); |