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 React, { Component } from 'react' | |
import { Menu, Icon } from 'semantic-ui-react' | |
import _ from 'lodash' | |
import PropTypes from 'prop-types'; // ES6 | |
export default class Pagination extends Component { | |
constructor() { | |
super(); | |
this.state = { |
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 getElementByXpath(path) { | |
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
} | |
for(i=1;i<=9;i++){ | |
console.log( getElementByXpath("//*[@id='team']/div/div[2]/ul/li["+i+"]/a/div/div/h3").innerHTML); | |
} |
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
package com.youspot.deadreckoning; | |
/** | |
* Created by febinsathar on 02/03/15. | |
*/ | |
import android.app.Activity; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff; | |
import android.graphics.SurfaceTexture; |
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
@Override | |
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { | |
onSizeChanged(width, height, 0, 0); | |
} | |
@Override | |
public void surfaceCreated(SurfaceHolder holder) { | |
drawThread = new DrawThread(holder); | |
drawThread.setRunning(true); | |
drawThread.start(); |