Skip to content

Instantly share code, notes, and snippets.

View isurusndr's full-sized avatar

Isuru Senadheera isurusndr

View GitHub Profile
// ------------
// Jenkins LED
// ------------
/*-------------
This program will toggle two led lights. Green led at D0 will remain flashing when turned on.
It wil blink red led at D1 on and off every second.
-------------*/
@isurusndr
isurusndr / EnumerableDataReader
Last active October 18, 2016 04:47
Custom implementation of IDataReader class. It can be used as an input data reader to feed data from an IEnumerable source to SqlBulkCopy.WriteToServer method. This implementation can be used with Entity Framework.
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MySpace
{
@isurusndr
isurusndr / sonar-report.groovy
Last active April 26, 2021 14:00 — forked from x-cray/sonar-report.groovy
Jenkins email-ext plugin groovy template. Generates daily Sonar violations report grouped by culprits. Updated to work with SonarQube version 5.0+
<!DOCTYPE html>
<head>
<title>Sonar violations report</title>
<style type="text/css">
body
{
margin: 0px;
padding: 15px;
}