I hereby claim:
- I am thiyagaraj on github.
- I am thiyag (https://keybase.io/thiyag) on keybase.
- I have a public key whose fingerprint is 7831 BBC3 EAFF 6E13 A9F5 1435 8906 04D0 CE55 B815
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
#RUN this script to establish connection SSH Forwarding to HOSTNAME_HERE" | |
port=`netstat -an | grep 65321 | grep LISTEN | tr -s " " | cut -d" " -f 4 | cut -d"." -f 2` | |
if [[ $port -ne 65321 ]] | |
then | |
echo "Please Enter JUMP_SERVER Password:" | |
`ssh -gL 65321:HOSTNAME_HERE:22 0` | |
else | |
echo "HOSTNAME_HERE Redirect is already running on port 65321" | |
fi |
if (!window.console) { | |
window.console = {}; | |
window.console.log = function(){}; | |
} |
javascript:void function(){ | |
window.setInterval("window.mainFrame.setActionScreenSubmit('displayLog', 'displayLog')", 300000); | |
document.bgColor='green';alert('Do NOT use this (GREEN) window, it will autorefresh and you may lose your changes\n\nPressing OK will automatically open a new window, continue working in that :)'); | |
window.open(window.location) | |
}() |
var printPage = function(id){ | |
var html="<html><head><title>Print page</title>"; | |
html+="</head><body>" | |
html+= document.getElementById(id).innerHTML; | |
html+="</body></html>"; | |
var printWin = window.open('','','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status =0'); | |
printWin.document.write(html); | |
printWin.document.close(); | |
printWin.focus(); | |
printWin.print(); |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dp="http://www.datapower.com/extensions" xmlns:dpconfig="http://www.datapower.com/param/config" extension-element-prefixes="dp" exclude-result-prefixes="dp dpconfig"> | |
<!-- | |
This param can be set via the DataPower GUI in the console, and it will come as input to the transformation | |
--> | |
<xsl:param name="dpconfig:paramName"/> | |
<dp:param name="dpconfig:paramName"> | |
<display>Param name value</display> | |
<description>Param Name Description can go here</description> | |
</dp:param> |
<xs:element name="Something"> | |
<xs:complexType mixed="true"> | |
<xs:sequence> | |
<xs:any processContents="lax" maxOccurs="unbounded"/> | |
</xs:sequence> | |
<xs:anyAttribute processContents="lax"/> | |
</xs:complexType> | |
</xs:element> |
keywords = ['hello world','goodbye cruel world']; | |
function replaceKeywords (domNode) { | |
if (domNode.nodeType === Node.ELEMENT_NODE) { // We only want to scan html elements | |
var children = domNode.childNodes; | |
for (var i=0;i<children.length;i++) { | |
var child = children[i]; | |
// Filter out unwanted nodes to speed up processing. | |
// For example, you can ignore 'SCRIPT' nodes etc. | |
if (child.nodeName != 'EM') { |
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings" xmlns:regexp="http://exslt.org/regular-expressions"> | |
<!-- Look and say sequence in XSLT : http://en.wikipedia.org/wiki/Look-and-say_sequence --> | |
<xsl:template match="/"> | |
<xsl:variable name="start" select="string('1')"/> | |
START: <xsl:value-of select="$start"/> | |
<xsl:call-template name="loop-de-loop"> | |
<xsl:with-param name="str" select="$start"/> | |
<xsl:with-param name="itr" select="number(1)"/> | |
<xsl:with-param name="stopAt" select="number(30)"/> |
#include <Servo.h> | |
#define HEAD_SERVO_PIN 13 | |
#define ULTRASONIC_TRIG_PIN 2 | |
#define ULTRASONIC_ECHO_PIN 5 | |
#define ULTRASONIC_POWER_PIN 3 | |
#define OBSTACLE_MIN_DISTANCE 25 //in centimeter | |
#define MOVE_LEFT_PIN 12 //left | |
#define MOVE_RIGHT_PIN 11 //right |