Skip to content

Instantly share code, notes, and snippets.

View nancystodd's full-sized avatar

Nancy S Todd nancystodd

View GitHub Profile
@abhididdigi
abhididdigi / JSUtil2.js
Last active March 12, 2020 22:55
This is the entire JSUtil2 script. Creating a gist, to show it on Service Now diary.com
/*
* JSUtil already has some utility functions, Some more utility functions.
* Written by [email protected]
* Re-written for Service Now from underscore.js: http://underscorejs.org/
*
*/
var JSUtil2 = Class.create();
@rxaviers
rxaviers / gist:7360908
Last active November 18, 2024 09:26
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<servicenow:config name="ServiceNow" username="${servicenow.username}" password="${servicenow.password}" serviceEndpoint="${servicenow.serviceEndpoint}" doc:name="ServiceNow">
<servicenow:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/>
</servicenow:config>
<flow name="servicenow-usecaseFlow" doc:name="servicenow-usecaseFlow">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/>
<servicenow:insert config-ref="ServiceNow" type="ALM_ASSET" doc:name="Insert Asset">
<servicenow:insert-request>
<servicenow:insert-request key="quantity">#{new java.math.BigInteger(10)}</servicenow:insert-request>
<servicenow:insert-request key="model">Apple MacBook Pro</servicenow:insert-request>
@cmcdevitt
cmcdevitt / globalJS
Created October 12, 2014 22:11
Explore Global JavaScript Object in ServiceNow in a UI Page
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
document.writeln("Prototype.Version: " + Prototype.Version + "<br />");
document.writeln("Lets look at Global in ServiceNow: <br />");
myGlobal = this;
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active November 16, 2024 19:12
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@PurpleBooth
PurpleBooth / README-Template.md
Last active November 17, 2024 18:07
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jmbauguess
jmbauguess / SNBuild.xml
Last active October 11, 2018 03:36
Uses REST integrations with Jenkins and a NodeJS program to automatically extract source code from a ServiceNow instance and save it to a repository. See http://sensibleservicenow.com/2015/08/17/automatic-source-control-and-you-save-time-and-headaches
<?xml version="1.0" encoding="UTF-8"?>
<unload unload_date="2015-08-14 17:18:17">
<sys_remote_update_set action="INSERT_OR_UPDATE">
<application display_value="Global">global</application>
<application_name>Global</application_name>
<application_scope>global</application_scope>
<application_version/>
<collisions/>
<commit_date/>
<deleted/>
@jmbauguess
jmbauguess / SNDataCopy.xml
Last active May 1, 2018 00:20
Contains functionality for copying data from a child to its parent once the parent commits the update set. Useful for moving metadata that normally does not move in update sets. See http://sensibleservicenow.com/?p=49
<?xml version="1.0" encoding="UTF-8"?>
<unload unload_date="2015-08-14 22:59:24">
<sys_remote_update_set action="INSERT_OR_UPDATE">
<application display_value="Global">global</application>
<application_name>Global</application_name>
<application_scope>global</application_scope>
<application_version/>
<collisions/>
<commit_date/>
<deleted/>
@jmbauguess
jmbauguess / ClassGenerator.xml
Created August 19, 2015 17:16
Update Set to generate Selenium Page Objects for ServiceNow
<?xml version="1.0" encoding="UTF-8"?>
<unload unload_date="2015-08-14 18:47:45">
<sys_remote_update_set action="INSERT_OR_UPDATE">
<application display_value="Global">global</application>
<application_name>Global</application_name>
<application_scope>global</application_scope>
<application_version/>
<collisions/>
<commit_date/>
<deleted/>
@jmbauguess
jmbauguess / CopyARequest.js
Last active August 25, 2022 09:30
Back end functionality to copy variables from one requested item to another
/**
* @description Allows users to copy a requested item on the form
* @extends {AbstractAjaxProcessor}
* @type {Class}
*/
var CopyARequest = Class.create();
CopyARequest.prototype = Object.extendsObject(AbstractAjaxProcessor, {
/**
* @description ServiceNow's ArrayUtil
* @type {ArrayUtil}