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 now = new Date(); | |
var fullDaysSinceEpoch = Math.floor(now / 8.64e7) | |
function initChart() { | |
return new CanvasJS.Chart('chartContainer', { | |
title: { | |
text: 'Inform Times' | |
}, | |
axisX:{ | |
valueFormatString: 'HH:mm' |
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
*~ | |
.DS_Store | |
.floo | |
.sublime-project | |
node_modules | |
# Compiled source # | |
################### | |
*.com | |
*.class |
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
[user] | |
name = Dane Macaulay | |
email = MacaulayD@DNB.com | |
[core] | |
excludesfile = /Users/danemacaulay/.gitignore_global | |
editor = subl -n -w | |
ignorecase = false | |
[pager] | |
log = diff-highlight | less | |
show = diff-highlight | less |
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
[alias] | |
co = checkout | |
cm = commit | |
st = status | |
br = branch |
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
watch(); | |
function login(){ | |
var username = 'username'; | |
var pass = 'password'; | |
var injector = angular.element(document.body).injector(); | |
var $http = injector.get('$http'); | |
var data = "username="+encodeURIComponent(username)+"&password="+encodeURIComponent(pass); | |
$http({ | |
method: 'POST', |
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
'use strict'; | |
var string = require('string'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var glob = require('glob'); | |
var cheerio = require('cheerio'); | |
glob('app/**/*.html', {}, function(er, files) { |
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
require 'rbconfig' | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "hashicorp/precise32" | |
# Provider-specific configuration so you can fine-tune various | |
# backing providers for Vagrant. These expose provider-specific options. |
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 setAuthenticationHeaders(config, authService) { | |
// Is this a local URL? If so, add auth headers, but don't overwrite | |
// any that are not already set - this allows someone to pass in | |
// overrides if so desired. | |
// | |
// Note: we don't want to send out headers to URLs that will go out to | |
// the CDN. This would be very bad. This path check should be sufficient | |
// to that end. | |
if (config.url.indexOf('/DNB360UIAgent/') === 0) { | |
var authHeaders = authService.authHeaders(); |
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 () { | |
'use strict'; | |
window.console = window.console || {}; | |
if (typeof Envjs !== 'undefined') { | |
return; | |
} | |
var methodNames = [ | |
'assert', | |
'clear', |
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
:host:www.gstatic.com | |
:method:GET | |
:path:/og/_/js/k=og.og2.en_US.5iiIdIiN4rc.O/rt=j/m=sy0,sy2,sy3,drt,sy4,sy9,def/rs=AItRSTO15owAcNqlvIuGBQd8SJPdBIe15w | |
:scheme:https | |
:version:HTTP/1.1 | |
accept:*/* | |
accept-encoding:gzip,deflate,sdch | |
accept-language:en-US,en;q=0.8 | |
cache-control:no-cache | |
pragma:no-cache |