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 org.apache.commons.configuration2.FileBasedConfiguration; | |
import org.apache.commons.configuration2.PropertiesConfiguration; | |
import org.apache.commons.configuration2.builder.ConfigurationBuilderEvent; | |
import org.apache.commons.configuration2.builder.ReloadingFileBasedConfigurationBuilder; | |
import org.apache.commons.configuration2.builder.fluent.Parameters; | |
import org.apache.commons.configuration2.event.Event; | |
import org.apache.commons.configuration2.event.EventListener; | |
import org.apache.commons.configuration2.ex.ConfigurationException; | |
import org.junit.Assert; | |
import org.junit.Before; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
set -u | |
JAVA7="/opt/jdk1.7.0_80" | |
JAVA8="/opt/jdk1.8.0_31" | |
# Assuming you have $JAVA_SYMLINK/bin in your path, in this case "/opt/jdk/bin" | |
JAVA_SYMLINK="/opt/jdk" | |
NEW_JAVA=$JAVA7 | |
current=`readlink $JAVA_SYMLINK` |
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
/* Inject this code in your blog footer of your Ghost blog */ | |
var createTooltip = function(tooltiptext) { | |
var tooltip = document.createElement('span'); | |
tooltip.setAttribute('class', 'tooltiptext'); | |
tooltip.innerHTML = tooltiptext; | |
return tooltip; | |
} | |
var appendTooltipTo = function(element, tooltipText) { | |
element.append(createTooltip(tooltipText)); | |
} |
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
/* Thanks to w3schools for the base sample implementation of tooltips with CSS only: | |
https://www.w3schools.com/howto/howto_css_tooltip.asp */ | |
.tooltip { | |
position: relative; | |
} | |
.tooltip .tooltiptext { | |
visibility: hidden; | |
width: 240px; | |
background-color: #555; | |
color: #fff; |
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
<!-- Thanks to w3schools for the base sample implementation: | |
https://www.w3schools.com/howto/howto_css_tooltip.asp | |
Put this in the "Code inject" of your Ghost 1.0 Blog Footer. --> | |
<style> | |
.tooltip { | |
position: relative; | |
} | |
.tooltip .tooltiptext { |
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 id="disqus-script" data-disqusName="your-disqus-name" | |
data-element="selector-of-element-where-to-append-disqus-container" | |
src="https://cdn.rawgit.com/paulwellnerbou/a09e3819307851993df0aba65b266e86/raw/ee408decdfbb8df5180894741dc59a5423d706a6/embed-disqus.js"/> |
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
/** Usage: | |
Place this tag at the end of your HTML: | |
<script id="disqus-script" data-disqusName="your-disqus-name" data-element="selector-of-element-where-to-append-disqus-container" | |
src="https://cdn.rawgit.com/paulwellnerbou/a09e3819307851993df0aba65b266e86/raw/ee408decdfbb8df5180894741dc59a5423d706a6/embed-disqus.js"/> | |
Original version: https://gist.github.com/paulwellnerbou/a09e3819307851993df0aba65b266e86 | |
*/ | |
var disqus = document.getElementById('disqus-script'); | |
var disqusName = disqus.getAttribute('data-disqusName'); |
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
<!-- Put this snippet in your "Blog footer" via Ghost's "Code Injection" --> | |
<script> | |
// Your Disqus name | |
var disqusName = 'paulwellnerbou'; | |
// The element where to append the Disqus discussion container, for Ghost 0.11 and the casper theme this is '.post-content' | |
var elementToAppendDisqusContainer = '.post-content'; | |
var postContent = document.querySelector(elementToAppendDisqusContainer); | |
if(postContent !== null) { | |
var div = document.createElement('div'); | |
div.setAttribute('id', 'disqus_thread'); |
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/sh | |
encoded=$1 | |
decoded="${1}.decoded.html" | |
php -r 'echo quoted_printable_decode(file_get_contents("'$encoded'"));' > $decoded |