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
sed -i -e 's/#.*$//' -e '/^\s*$/d' /etc/httpd/conf/httpd.conf | |
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
<div id="cxense-div"></div> | |
<script> | |
var cX = cX || {}; | |
cX.callQueue = cX.callQueue || []; | |
cX.callQueue.push(['insertWidget', { | |
widgetId: '4f6a036c13e80cb204ed1a02ad91e6bda0ad2ed3', | |
renderFunction: function(data, context) { | |
var items = data.response.items; | |
if (items.length > 0) { | |
var numLimit = 4; |
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 addEvent(elem, event, fn) { | |
if (elem.addEventListener) { | |
elem.addEventListener(event, fn, false); | |
} else { | |
elem.attachEvent("on" + event, function() { | |
return (fn.call(elem, window.event)); | |
}); | |
} | |
}, | |
urlparser = document.createElement('a'), |
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
<div class="videoWrapper skrin-embed" | |
id="native-video-1" | |
data-url="https://skrin.id/watch/14j6ur6tm7ka?ec=Reguler-Vemale&el=&autoplay=0&utm_source=vemale.com-mobile&utm_medium=skrin&utm_campaign=Reguler-Vemale&ref=null" data-debug="true" data-lazy="true"> | |
</div> | |
<div class="videoWrapper skrin-embed" | |
id="native_video_2" | |
data-url="http://dev.skrin.id/watch/14ev4ozxyuze?reload=1&ec=Reguler-Vemale&el=&autoplay=0&utm_source=vemale.com-mobile&utm_medium=skrin&utm_campaign=Reguler-Vemale&ref=null" data-debug="true" data-lazy="true"> | |
</div> | |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<version>${version.jetty}</version> | |
<configuration> | |
<webAppConfig> | |
<contextPath>/foo</contextPath> |
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 SuccessUID(UID) | |
{ | |
var d = new Date(); | |
d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000)); | |
var expires = "expires=" + d.toUTCString(); | |
document.cookie = "UID=" + UID + "; " + expires + "; domain=.vizpro.sg; path=/"; | |
cX.callQueue.push(['invoke', function () { // This is called when CX is ready, no need for callQueue.push after this. | |
if (UID != "" && UID != "null" && UID != "true" && UID != "false" && UID != "error" && UID != "undefined" && UID.length > 5) | |
{ |
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
<?xml version="1.0" encoding="UTF-8"?><newsMessage xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:rtr="http://www.reuters.com/ns/2003/08/content" xmlns:x="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<header> | |
<sent>2017-03-06T00:59:40.000Z</sent> | |
<sender>reuters.com</sender> | |
<transmitId>tag:reuters.com,2017:newsml_KBN16D033:1</transmitId> | |
<priority>4</priority> | |
<destination>OUSTPM</destination> | |
<destination>RTRFLN</destination> | |
<destination>OUS12</destination> | |
<destination>OUSBSM</destination> |
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
window.initVideoTracking = function(player) { | |
window.gfkSsaConf = { | |
"media": "", | |
"url": "//sg-config.sensic.net/sg1-ssa-w.js" | |
}; | |
(function(w, d, c, s, id) { | |
if (d.getElementById(id)) { | |
return; | |
} |
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
private Map<String, Object> processResponse(Map<String, Object> map, | |
final String payload) { | |
//noinspection unchecked | |
final List<Map<String, Object>> namedEntities = (List<Map<String, Object>>) map.remove("namedEntities"); | |
final List<Map<String, Object>> semanticKeywords = (List<Map<String, Object>>) map.remove("semanticKeywords"); | |
final List<Map<String, Object>> taxonomies = (List<Map<String, Object>>) map.remove("taxonomy"); | |
//filter duplicates | |
List<Map<String,Object>> entities = new ArrayList<Map<String, Object>>(); | |
Map<String,Object> keys = new HashMap<String, Object>(); |
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
npm init -y | |
npm i babel-core babel-preset-env babel-loader babel-preset-es2015 webpack webpack-config-utils webpack-dev-server webpack-dev-middleware webpack-hot-middleware webpack-node-externals html-webpack-plugin extract-text-webpack-plugin copy-webpack-plugin copy-webpack-plugin style-loader css-loader sass-loader node-sass cross-env rimraf --save-dev |
OlderNewer