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
| function dispatch(target, eventType, char) { | |
| var evt = document.createEvent("TextEvent"); | |
| evt.initTextEvent (eventType, true, true, window, char, 0, "en-US"); | |
| target.focus(); | |
| target.dispatchEvent(evt); | |
| } | |
| dispatch(document.querySelector("#compose-input div"), "textInput", "hello!"); |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| response = urllib2.urlopen('https://Facebook.com/yask123') | |
| html = response.read() | |
| soup = BeautifulSoup(html, 'html.parser') | |
| print soup.title.string |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| response=urllib2.urlopen('http://jeequery.com/about/') | |
| html = response.read() | |
| soup = BeautifulSoup(html, 'html.parser') | |
| a = soup.find_all('a') |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title> App Base</title> | |
| <script src="bower_components/appbase-js/browser/appbase.js"></script> | |
| </head> | |
| <body> | |
| <h1>Hey</h1> |
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
| Yask Srivastava shared Positive Words's photo.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared The Best Movie Lines's photo.Yask Srivastava shared Varun Agarwal's photo.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared JEEQuery's photo.Yask Srivastava shared Spirit Science's photo.Yask Srivastava shared a link.Yask Srivastava shared Al Pitcher's photo.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.Yask Srivastava shared a link.% |
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
| var jsonObject = { | |
| "latitude":0, | |
| "longitude":0, | |
| "country":0, | |
| "time":0, | |
| "isp":0, | |
| "h":0, | |
| "m":0, | |
| "s":0, | |
| "browser":0 |
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
| $.ajax({ | |
| url : 'http://www.telize.com/geoip', | |
| type: 'GET', | |
| success : handleData | |
| }); | |
| function handleData(data) | |
| { | |
| document.getElementById('cont').innerHTML = data.country; | |
| $('.error').fadeIn(400).delay(3000).fadeOut(400); | |
| jsonObject.latitude=data.latitude; |
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
| appbase.index({ | |
| type: 'people71', | |
| body: jsonObject | |
| }).on('data', function(response) { | |
| console.log(response); | |
| }).on('error', function(error) { | |
| console.log(error); | |
| }); |
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
| appbase.index({ | |
| type: 'people71', | |
| body: jsonObject | |
| }).on('data', function(response) { | |
| console.log(response); | |
| }).on('error', function(error) { | |
| console.log(error); | |
| }); |
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
| $.ajax({ | |
| url : 'http://www.telize.com/geoip', | |
| type: 'GET', | |
| success : handleData | |
| }); | |
| function handleData(data) | |
| { | |
| document.getElementById('cont').innerHTML = data.country; | |
| $('.error').fadeIn(400).delay(3000).fadeOut(400); | |
| jsonObject.latitude=data.latitude; |