Skip to content

Instantly share code, notes, and snippets.

@febinsathar
febinsathar / gist:4efe45a672e15bb9f0ce18489422e335
Created June 22, 2017 05:34
react-pagination-semantic-ui
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 = {
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);
}
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;
@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();