This file contains hidden or 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
namespace TR; | |
<% | |
my $numSource = 1; | |
my $numSink = 10; | |
%> | |
composite ThreadTest { | |
graph | |
stream<uint64 x> Control = Beacon() { |
This file contains hidden or 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
namespace TR; | |
<% | |
my $numSource = 1; | |
my $numSink = 10; | |
%> | |
composite ThreadTest { | |
graph | |
stream<uint64 x> Control = Beacon() { |
This file contains hidden or 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
#!/usr/bin/env python | |
import urllib, urllib2 | |
import requests | |
import re | |
from xml.dom import minidom | |
base_url = 'https://amers1.splunk.cp.icp2.mpp.ime.reuters.com:8089' | |
username = 'user' | |
password = 'pass' |
This file contains hidden or 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
//addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
(function(win, doc){ | |
if(win.addEventListener)return; //No need to polyfill | |
function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
function addEvent(on, fn, self){ | |
return (self = this).attachEvent('on' + on, function(e){ | |
var e = e || win.event; | |
e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = true} |
This file contains hidden or 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
<html> | |
<head></head> | |
<body> | |
<script src='../../../libs/scripts/layer/toolkit_chartonly_en.js'></script> | |
<input type="button" value="UPDATE" onclick="changeRics()"/><input id='ric' value="IBM.N;TRI.N"/> | |
<div id="chartHolder" style="width:600px;height:400px;" /> | |
<script> | |
var chartObj = new TRWebchart_Fin.TRCompositeChart("chartHolder", TRWebchart_Shared.ChartSchemeType.Light); | |
function changeRics() { |
This file contains hidden or 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
<html> | |
<head></head> | |
<body> | |
<script src="scripts/webchart_en.min.js"></script> | |
<div id="chartHolder" style="width:600px;height:400px;" /> | |
<script> | |
var chartObj = new TRWebchart_Fin.TRCompositeChart("chartHolder", TRWebchart_Shared.ChartSchemeType.Light); | |
chartObj.setChartParams(["IBM.N"], TRWebchart_Shared.ChartType.Line, TRWebchart_Fin.Intervals.Daily, TRWebchart_Fin.TimePeriods.Latest6Months, null /* resultTagList */, "" /* currency */, "" /* unit */); | |
chartObj.setChartTitle("IBM.N Daily 6M"); |
This file contains hidden or 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
x = chartObj.compositeChartLayout.listOfSubCharts[0]; | |
x.seriesParamList[1].chartType = TRWebchart_Shared.ChartType.OHLC; | |
chartObj.render(); |
This file contains hidden or 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
phantom.casperPath = '/Users/npow/Downloads/dev/casperjs'; | |
phantom.injectJs(phantom.casperPath + '/bin/bootstrap.js'); | |
var casper = require('casper').create(); | |
casper.on('remote.message', function(message) { console.log(message); }); | |
casper.start("http://localhost:8888/charts/TrendLineTest.htm", function () { | |
// setup here | |
}); | |
casper.then(function () { |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: latin1 -*- | |
import os | |
import sys | |
import re | |
FILENAME = sys.argv[1] | |
def main(): |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'watir-webdriver' | |
browser = Watir::Browser.new :chrome, :switches => %w[--enable-memory-info --enable-popup-blocking] | |
browser.goto 'file:///Users/npow/code/hydrogen/test.html' | |
browser.execute_script "document.getElementById('usedJSHeapSize').innerHTML = console.memory.usedJSHeapSize;" | |
hs = browser.div(:id => 'usedJSHeapSize') | |
puts hs.text |