Skip to content

Instantly share code, notes, and snippets.

View jbest84's full-sized avatar
🏠
Working from home

Jason jbest84

🏠
Working from home
View GitHub Profile
@jbest84
jbest84 / Environment.js
Created September 14, 2018 17:20
src-out/Environment.js
define('crm/Environment', ['module', 'exports', 'dojo/_base/lang', 'dojo/_base/window', 'dojo/has', 'dojo/on', 'dojo/string', 'dojo/dom-construct', 'dojo/_base/sniff'], function (module, exports, _lang, _window, _has, _on, _string, _domConstruct) {
Object.defineProperty(exports, "__esModule", {
value: true
});
var _lang2 = _interopRequireDefault(_lang);
var _window2 = _interopRequireDefault(_window);
var _has2 = _interopRequireDefault(_has);
@jbest84
jbest84 / gist:cda4aa0321c264fe9206b8699ed1db7d
Last active February 14, 2017 23:19
Argos View Module Resolution Order
https://www.python.org/download/releases/2.3/mro/
* Take the head of the first list, i.e L[B1][0]
* if this head is not in the tail of any of the other lists
- then add it to the linearization of C and remove it from the lists in the merge
- otherwise look at the head of the next list and take it
* if it is a good head. Then repeat the operation until all the class are removed or it is impossible to find good heads
// W = _WidgetBase
// S = Stateful
// D = Destroyable
@jbest84
jbest84 / script.groovy
Created July 28, 2016 17:43
Jenkins Next Build Number
// Run this in Jenkins script console
def jobName = "slx/8.3.x" // Include folder for multibranch pipeline
def nextBuildNumber = 69
def job = Jenkins.getInstance().getItemByFullName(jobName, Job.class)
println(job.nextBuildNumber)
job.nextBuildNumber = nextBuildNumber
job.save()
@jbest84
jbest84 / gist:12619084f51043aa530d9cf1a82983a2
Last active May 6, 2016 14:19 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
for (node in Jenkins.instance.nodes) {
#!/bin/bash
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see https://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output
@jbest84
jbest84 / createiso-demo.ps1
Created March 15, 2016 20:21 — forked from marnix/createiso-demo.ps1
Demo for PowerShell script to create ISO using IMAPI COM component, as a simplification for StackOverflow answer http://stackoverflow.com/a/8325316/223837
# Inspiration from
#
# http://blogs.msdn.com/b/opticalstorage/archive/2010/08/13/writing-optical-discs-using-imapi-2-in-powershell.aspx
#
# and
#
# http://tools.start-automating.com/Install-ExportISOCommand/
#
# with help from
#
cd argos-sdk
call atom .
start grunt watch
cd ..
cd products
cd argos-saleslogix
call atom .
start grunt watch
start npm start
start /D "C:\Program Files (x86)\Atlassian\SourceTree\" SourceTree.exe
@jbest84
jbest84 / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@jbest84
jbest84 / GroupListConfigurationProvider.js
Created June 13, 2014 17:04
BigDeal\UI\GroupListConfigurationProvider
/*globals define */
define([
'dojo/_base/declare',
'dojo/_base/array',
'dojo/dom-construct',
'Sage/UI/GroupListConfigurationProvider'
],
function (
declare,
array,
@jbest84
jbest84 / index.html
Created October 15, 2013 20:13
Phonegap index file for argos-bootcamp
<!DOCTYPE html>
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="gtie9 modern">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />