Discover gists
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
import requests | |
import json | |
import os | |
import textwrap | |
from datetime import datetime | |
from datetime import timedelta | |
import re | |
class ConfluencePagePost: | |
'''Class to post page/blog content to Confluence via REST API.''' |
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(){ with(this) { | |
function pow() { | |
var foo = "cow", bar; | |
try { | |
foo = bar; | |
throw "meh"; | |
} catch (e2) { | |
foo = bar; //breaks in chrome with ender + jaaulde (line 2518) | |
//foo = eval("bar"); //amazingly this works though, and debugger ok too |
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
/*! | |
* Chart.js | |
* http://chartjs.org/ | |
* | |
* Copyright 2013 Nick Downie | |
* Released under the MIT license | |
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md | |
*/ | |
//Define the global Chart Variable as a 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
body { | |
font-family: Helvetica, "sans-serif" | |
} |
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
//Define the global Chart Variable as a class. | |
window.Chart = function(context){ | |
var chart = this; | |
//Easing functions adapted from Robert Penner's easing equations | |
//http://www.robertpenner.com/easing/ | |
var animationOptions = { |
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
/*! | |
* Chart.js | |
* http://chartjs.org/ | |
* | |
* Copyright 2013 Nick Downie | |
* Released under the MIT license | |
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md | |
*/ | |
//Define the global Chart Variable as a 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
//Define the global Chart Variable as a class. | |
var Chart = function(context, tooltipOptions){ | |
var chart = this; | |
//Easing functions adapted from Robert Penner's easing equations | |
//http://www.robertpenner.com/easing/ | |
var animationOptions = { |
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
// Underscore.js 1.2.1 | |
// (c) 2011 Jeremy Ashkenas, DocumentCloud Inc. | |
// Underscore is freely distributable under the MIT license. | |
// Portions of Underscore are inspired or borrowed from Prototype, | |
// Oliver Steele's Functional, and John Resig's Micro-Templating. | |
// For all details and documentation: | |
// http://documentcloud.github.com/underscore | |
(function() { |
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
// self-executing function that will leak _ and its method/props into the global scope | |
(function() { | |
// access to global scope throughout function | |
var root = this; | |
var previousUnderscore = root._; | |
var breaker = {}; |
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
String.whiteSpace = []; | |
String.whiteSpace[0x0009] = true; | |
String.whiteSpace[0x000a] = true; | |
String.whiteSpace[0x000b] = true; | |
String.whiteSpace[0x000c] = true; | |
String.whiteSpace[0x000d] = true; | |
String.whiteSpace[0x0020] = true; | |
String.whiteSpace[0x0085] = true; | |
String.whiteSpace[0x00a0] = true; | |
String.whiteSpace[0x1680] = true; |
NewerOlder