Skip to content

Instantly share code, notes, and snippets.

View dbess1's full-sized avatar

Delante Lee Bess dbess1

  • Boston; NY; SF; Chicago
View GitHub Profile
@harrisitservices
harrisitservices / sn_export_update_sets_to_midserver.md
Last active February 2, 2021 22:13
ServiceNow: Exporting Update Sets to the Midserver

ServiceNow: Exporting Update Sets to the MidServer

This gist includes a script include and background script that can be used to export files from ServiceNow to a connected Midserver in many different formats. I took the code provided here and tweaked it so that I could do what I wanted to do.

Components

  • MidServer Script Include
var ExportToMidserver = Class.create();
@ngauthier
ngauthier / README.md
Last active May 21, 2016 17:15
Gobridge Boston Day 1

Gobridge Boston Day 1

Hello and welcome to gobridge's day 1 content! The goal of this page is to guide you through the basics of programming in Go using the site Go by Example.

Please follow along with the class as we do each lesson, try not to skip ahead, and focus on the lesson we're on. If you finish early, play around by changing the code we're working with for the current lesson, or help a friend!

Lesson 1: Hello World

  1. Open https://gobyexample.com and click on the first link, "Hello World"
anonymous
anonymous / bonfire-confirm-the-ending.js
Created December 1, 2015 03:07
http://www.freecodecamp.com/dbess1 's solution for Bonfire: Confirm the Ending
// Bonfire: Confirm the Ending
// Author: @dbess1
// Challenge: http://www.freecodecamp.com/challenges/bonfire-confirm-the-ending
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function end(str, target) {
//I used a conditional to check if str (string) has the requested ending letter or word
//The target is the requested letter or word which is being called below
if(str.substr(-target.length) == target){
return true;
anonymous
anonymous / bonfire-return-largest-numbers-in-arrays.js
Created December 1, 2015 03:06
http://www.freecodecamp.com/dbess1 's solution for Bonfire: Return Largest Numbers in Arrays
// Bonfire: Return Largest Numbers in Arrays
// Author: @dbess1
// Challenge: http://www.freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function largestOfFour(arr) {
var numbers = [];
for(var i = 0; i < arr.length; i++){ //for iterating through the large array
var biggestNumber = 0;
for(var j = 0; j < arr[i].length; j++){ //for iterating through the sub-arrays
anonymous
anonymous / bonfire-find-the-longest-word-in-a-string.js
Created December 1, 2015 03:05
http://www.freecodecamp.com/dbess1 's solution for Bonfire: Find the Longest Word in a String
// Bonfire: Find the Longest Word in a String
// Author: @dbess1
// Challenge: http://www.freecodecamp.com/challenges/bonfire-find-the-longest-word-in-a-string
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function findLongestWord(str) {
var allWords = str.split(" ");
var biggestWords = 0;
// Bonfire: Title Case a Sentence
// Author: @dbess1
// Challenge: http://www.freecodecamp.com/challenges/bonfire-title-case-a-sentence?solution=function%20titleCase(str)%20%7B%0A%20%20%20%20%20return%20str.toLowerCase().replace(%2F%5E%5Ba-z%5D%7C%5Cs%5Ba-z%5D%2Fg%2C%20function(i)%7B%20return%20i.toUpperCase()%3B%20%7D%20)%3B%20%20%0A%7D%0A%0AtitleCase(%22I%27m%20a%20little%20tea%20pot%22)%3B%0A
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function titleCase(str) {
return str.toLowerCase().replace(/^[a-z]|\s[a-z]/g, function(i){ return i.toUpperCase(); } );
}
titleCase("I'm a little tea pot");
@udacityandroid
udacityandroid / MainActivity.java
Last active November 22, 2022 21:34
Android for Beginners : Cookies Starting Code
package com.example.android.cookies;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override