⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
public class InteractiveView : UIView | |
{ | |
public bool IsDragDisabled { | |
get; | |
set; | |
} | |
public bool IsPinchDisabled { | |
get; | |
set; |
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
from lxml import html,etree | |
import requests | |
import pprint | |
#This will create a list of buyers: | |
#buyers = tree.xpath('//div[@title="buyer-name"]/text()') | |
#This will create a list of prices | |
#prices = tree.xpath('//span[@class="item-price"]/text()') | |
#print 'Buyers: ', buyers | |
#print 'Prices: ', prices |
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
Test gist |
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
{"id":"b9407f30-f5f8-466e-aff9-25556b57fe6d","name":"Mona Lisa","images":[{"url":"image1","time":0, "text":"hello monalisa"},{"url":"image2","time":50000, "text":"hello leonardo"}, {"url":"image3","time":80000, "text":"hello monalisa"}, {"url":"image4","time":120000, "text":"hello monalisa"}],"audioUrl":"https://wearhacksmusic.blob.core.windows.net/asset-27608814-c12a-40d8-ab04-d5a631936e87/ACDC%20-%20You%20Shook%20Me%20All%20Night%20Long.mp4?sv=2012-02-12&sr=c&si=0462accd-c2f2-48ce-802a-f43c67f131f8&sig=HUqZaCAPgLm7uzovyi4FjJxG3s2TGoj1k7x1b2j3vdE%3D&st=2014-09-28T04%3A02%3A18Z&se=2016-09-27T04%3A02%3A18Z"} |
Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST
requests with voice file encoded in FLAC format, and query parameters for control.
client
The client's name you're connecting from. For spoofing purposes, let's use chromium
lang
Speech language, for example, ar-QA
for Qatari Arabic, or en-US
for U.S. English
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
wash -i mon0 | |
airmon-ng start wlan0 | |
wash -i mon0 | |
reaver -i mon0 -b 00:14:D1:B6:83:AB -vv |
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
//check if url is available | |
function is_available($url, $timeout = 30) { | |
$ch = curl_init(); // get cURL handle | |
// set cURL options | |
$opts = array(CURLOPT_RETURNTRANSFER => true, // do not output to browser | |
CURLOPT_URL => $url, // set URL | |
CURLOPT_NOBODY => true, // do a HEAD request only | |
CURLOPT_TIMEOUT => $timeout); // set timeout | |
curl_setopt_array($ch, $opts); |
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 download_remote_file($file_url, $save_to) | |
{ | |
//myecho($file_url."---->".$save_to); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_POST, 0); | |
curl_setopt($ch,CURLOPT_URL,$file_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$file_content = curl_exec($ch); | |
curl_close($ch); |
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
$url = ""; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_HEADER, false); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$xml = curl_exec($ch); | |
curl_close($ch); | |
return $xml; |