This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var clientContext; | |
var oWeb; | |
var oList; | |
var obj = {}; | |
var linkLine; | |
var offset = -1/60 * (new Date().getTimezoneOffset()); | |
console.log(offset); // This prints to the inspector console, can change to alert if you want | |
function runWhenLoaded() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertHREFs() { | |
// get all anchor tags | |
// THIS DOESN'T WORK IN IE OR CHROME - INACTIVE a tags | |
var queryAllAWithSelector = document.querySelectorAll('a[data-nav-control-id]'); | |
for(var dataLoop=0; dataLoop < queryAllAWithSelector.length; dataLoop++) { | |
var dataNav = element.getAttribute('data-nav-control-id'); | |
var value = obj.get(dataNav); | |
concatenateURL(element, value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Call the function once page is loaded | |
SP.SOD.executeFunc('sp.js','SP.ClientContext',runWhenLoaded); | |
//Shared Global Variables | |
var clientContext; | |
var oWeb; | |
var oList; | |
var obj = []; | |
var linkLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function colorCodeTags(){ | |
var classTitle = document.getElementsByClassName("ms-vb-title"); // find all tags in the title column | |
var colorCode = document.getElementsByTagName("td");// finding all the TD tags | |
var i = 0; | |
var j = 0; | |
for (i = 0; i < colorCode.length; i += 1) { | |
var colorCell = colorCode[i]; | |
var innerText = colorCell.innerText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash Script for Charles Schwab DevOps challenge | |
# Regina Imhoff | |
# [email protected] | |
############################# | |
# set for exit immediately! # | |
############################# | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reginas-MacBook-Pro:employee_recognition duckstab$ heroku logs | |
2017-02-24T04:07:06.543542+00:00 app[web.1]: D, [2017-02-24T04:07:06.543478 #4] DEBUG -- : [34133301-5011-412e-81ed-d1b0ffd0cf6b] (3.1ms) COMMIT | |
2017-02-24T04:07:06.548028+00:00 app[web.1]: D, [2017-02-24T04:07:06.547952 #4] DEBUG -- : [34133301-5011-412e-81ed-d1b0ffd0cf6b] User Load (3.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]] | |
2017-02-24T04:07:06.549583+00:00 app[web.1]: I, [2017-02-24T04:07:06.549522 #4] INFO -- : [34133301-5011-412e-81ed-d1b0ffd0cf6b] Redirected to http://rocky-ridge-55037.herokuapp.com/administration | |
2017-02-24T04:07:06.549751+00:00 app[web.1]: I, [2017-02-24T04:07:06.549698 #4] INFO -- : [34133301-5011-412e-81ed-d1b0ffd0cf6b] Completed 302 Found in 22ms (ActiveRecord: 9.3ms) | |
2017-02-24T04:07:06.638526+00:00 app[web.1]: I, [2017-02-24T04:07:06.638409 #4] INFO -- : [f4199074-d12b-45f8-8d0c-16a02a7b4c3b] Started GET "/administration" for 50.53.128.236 at 2017-02-24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :facebook, 'YOUR_FACEBOOK_APP_ID', ENV['FACEBOOK_APP_SECRET'] | |
provider :github, 'YOUR_GITHUB_APP_ID', ENV['GITHUB_SECRET'] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :facebook, 'YOUR_FACEBOOK_APP_ID', ENV['FACEBOOK_APP_SECRET']< f> | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OmniAuth | |
module Strategies | |
class YOUR_APP_HttpBasic | |
include OmniAuth::Strategy | |
option :callback_path, "/auth/YOUR-APP-http-basic/callback" | |
credentials { | |
{ | |
token: identity.oauth_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :facebook, 'YOUR_FACEBOOK_APP_ID', ENV['FACEBOOK_APP_SECRET']< f> | |
scope: 'user_hometown' | |
end |
NewerOlder