Skip to content

Instantly share code, notes, and snippets.

#!/bin/groovy
pipeline {
agent { label 'label' }
define {
def my_map = [:] //empty map
def my_list //undefined shared variable
}
@imeanitworks
imeanitworks / gist:e11cbd3d65eb6f7942746902decabf8f
Created March 28, 2019 23:31
Vue Disable Autocomplete Directive
///this is here because some of the input elements in element IO had the auto complete enabled by default. I wrote this to be used
///for element date picker and disable the auto complete option.
export default {
bind: function(el, binding, vnode) {
var inputs = el.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
var inputElement = inputs[i].setAttribute("autocomplete", "off");
}
@imeanitworks
imeanitworks / ManagedClassExtensions.cs
Created November 17, 2016 00:23
Enterprise library class extension to use the oracle managed drivers
using Microsoft.Practices.EnterpriseLibrary.Data;
using Oracle.ManagedDataAccess.Client;
using System.Data;
namespace Helpers
{
public static class ManagedClassExtensions
{
public static OracleDataReader ExecuteReader(this Database database, OracleCommand cmd)
{
@imeanitworks
imeanitworks / IdentityHelper.cs
Last active October 11, 2022 20:24
Helper class that I use to extract claim information from the authentication context
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading;
namespace ProjectNamespace
{
public static class IdentityHelper
{
@imeanitworks
imeanitworks / callback.html
Last active November 16, 2016 23:57
This is the generic callback page that you can use to process the oauth redirect tokens
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1 id="waiting">Waiting...</h1>
<div id="error"></div>
<script type="text/javascript" src="oidc-client.min.js"></script>