Skip to content

Instantly share code, notes, and snippets.

@arjabbar
arjabbar / index.d.ts
Created February 6, 2019 17:23
Typescript Definition for ESLint Configuration
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export type Rule = (number | ("off" | "warn" | "error") | any[]);
export interface JsonSchemaForEsLintConfigurationFiles {
/**
service: wbh-gatekeeper
plugins:
- serverless-offline
- serverless-plugin-typescript
- serverless-pseudo-parameters
provider:
name: aws
runtime: nodejs6.10
stage: dev
@arjabbar
arjabbar / TokenMacros.md
Created June 25, 2018 14:39
Jenkins Email Extension Token Macros

Email-Ext Jenkins Plugin Macros

Purpose

Created to make it a little easier to find the macro that you need outside of opening a Freestyle job in Jenkins.

Documentation from Jenkins page

Arguments may be given for each token in the form name="value" for strings and in the form name=value for booleans and numbers. In string arguments, escape ", , and line terminators (\n or \r\n) with a , e.g. arg1=""quoted""; arg2="c:\path"; and arg3="one\ntwo". The brackets may be omitted if there are no arguments.

Examples: $TOKEN, ${TOKEN}, ${TOKEN, count=100}, ${ENV, var="PATH"}

@arjabbar
arjabbar / csrportal.nuspec
Created May 18, 2018 21:38
CSR Portal generated nuspec from Jenkinsfile
<?xml version="1.0"?>
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>csrportal-webapp</id>
<version>2.0.0</version>
<authors>ElectSolve</authors>
<licenseUrl>https://electsolve.com/EULA</licenseUrl>
<projectUrl>http://portal.kiln.url</projectUrl>
<description>Stuff loaded from the README.md</description>
<releaseNotes>
@arjabbar
arjabbar / CSS Injector.java
Created June 23, 2016 20:32
CSS Injector
cssStage = new Stage();
TextArea cssBox = new TextArea();
cssBox.minHeight(150);
cssBox.minWidth(300);
cssBox.setFont(new Font("monospace", 16));
Parent root = new Pane(cssBox);
Scene scene = new Scene(root);
cssStage.setScene(scene);
cssStage.addEventFilter(KeyEvent.KEY_PRESSED, event -> {
if (event.getCode().equals(KeyCode.ENTER) && event.isControlDown() && !cssBox.getText().isEmpty()) {
@arjabbar
arjabbar / index.html
Created December 12, 2012 12:12
A CodePen by Abdur Jabbar. Player for my music site
<div class="player" data-state="stopped">
<span class="play">&#x35;</span>
<div><span class="volUp">&#xe04b;</span>
<span class="volDown">&#xe008;</span></div>
<span class="rev">&#x35;&#x35;</span>
<span class="ff">&#x35;&#x35;</span>
<b class="spinner">&#xe001;</b>
</div>
<audio src="https://dl.dropbox.com/u/11069265/01%20Clique.mp3" preload="auto"></audio>
@arjabbar
arjabbar / index.html
Created December 7, 2012 22:09
A CodePen by Abdur Jabbar. A Neat Developer's List - A developers list I want to add to a landing page I'm building. These aren't real developers, just images I grabbed off of Google.
<div class="developers">
<a href="#"><b>John</b></a>
<a href="#"><b>Ralph</b></a>
<a href="#"><b>Rebecca</b></a>
<a href="#"><b>David</b></a>
<a href="#"><b>Thomas</b></a>
<a href="#"><p>Developers</p></a>
</div>
@arjabbar
arjabbar / index.html
Created November 28, 2012 20:06
A CodePen by Abdur Jabbar. On/Off Switch - A switch inspired by a dribbble by Elias Chikunov. http://dribbble.com/shots/829459-Toggle
<div><input type="checkbox" /><i></i></div>
Inspired by <a href="http://dribbble.com/shots/829459-Toggle">Elias Chikunov</a>
@arjabbar
arjabbar / index.html
Created November 26, 2012 01:27
A CodePen by Abdur Jabbar. Facebook widget - Inspired by a dribble by Erik Deiner. http://dribbble.com/shots/363401-Facebook-button-concept
<div>47k fans<img src="http://blogs-images.forbes.com/jonbruner/files/2011/07/facebook_logo.jpg" /><img src="http://blogs-images.forbes.com/jonbruner/files/2011/07/facebook_logo.jpg" /></div>
@arjabbar
arjabbar / index.html
Created November 16, 2012 18:37
A CodePen by Abdur Jabbar. Animated frequency spectrum
<div id="bars">
<p></p>
</div>
<div id="colors">
<input id="red" type="range" min="0" max="255" />
<input id="green" type="range" min="0" max="255" />
<input id="blue" type="range" min="0" max="255" />
<input id="opacity" type="range" min="0" max="100" />
<input id="space" type="range" min="0" max="50" value="12"/>
<input id="numBars" type="range" min="0" max="10" value="5" />