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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
new TWTR.Widget({ | |
version: 2, | |
type: 'search', | |
search: 'yottaa OR coachwei OR cloudinno OR rockstarapps', | |
interval: 10000, | |
subject: '', | |
width: 195, | |
height: 400, | |
theme: { | |
shell: { |
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
<h2>Using YQL to Finance quotes</h2> | |
<?php | |
$BASE_URL = "https://query.yahooapis.com/v1/public/yql"; | |
// Form YQL query and build URI to YQL Web service | |
$yql_query = "select * from yahoo.finance.quotes where symbol in ('YHOO', 'APPL')"; | |
$yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&env=store://datatables.org/alltableswithkeys&format=json"; |
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
<?php | |
error_reporting(1); | |
//$url = "http://pnrapi.alagu.net/api/v1.0/pnr/6359817259?jsonp=parseJSON"; | |
$url = "http://pnrapi.alagu.net/api/v1.0/pnr/6359817259"; | |
$ch = curl_init($url); | |
//curl_setopt($ch, CURLOPT_HEADER, TRUE); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$output = curl_exec($ch); | |
curl_close($ch); |
NewerOlder