Skip to content

Instantly share code, notes, and snippets.

salcosta

Block or report user

Report or block salcosta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@salcosta
salcosta / EEX Example.yaml
Created Sep 20, 2018
Shared with Script Lab
View EEX Example.yaml
name: EEX Example
description: ''
author: salcosta
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@salcosta
salcosta / index.html
Created Mar 6, 2018
Single Page App Example using jQuery
View index.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css" />
<style>
main{
margin-top:60px;
}
</style>
@salcosta
salcosta / sample_chart.html
Created Dec 13, 2017
ServiceNow ChartJS example
View sample_chart.html
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"></link>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css"></link>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></link>
<g:evaluate>
var rawData = [];
var incident = new GlideRecord('incident');
View sc_gallery
@salcosta
salcosta / AngularUtilsProcessor
Last active Oct 11, 2018
AngularUtilsProcessor
View AngularUtilsProcessor
gs.include("esprima");
var AngularUtilsProcessor = Class.create();
AngularUtilsProcessor.prototype = {
initialize: function(g_request, g_processor) {
this.g_request = g_request;
this.g_processor = g_processor;
@salcosta
salcosta / pattern_custom_element
Last active Dec 22, 2015
This file is a template for creating a custom element to be using in a ServiceNow form.
View pattern_custom_element
<?xml version="1.0" encoding="utf-8" ?>
<!--
___________________________________________________
| |
| Fruition App Accelerator - V1.0 - 09/03/13 |
| http://www.fruitionpartners.com |
| |
| Copyright (c) 2013 Fruition Partners |
| Dual licensed under the MIT and GPL licenses. |
|___________________________________________________|
@salcosta
salcosta / Test
Last active Dec 22, 2015
ServiceNow
View Test
// table=sys_ui_script
// name=test
// field = script
You can’t perform that action at this time.