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> | |
<title>Weather Forecast using YQL</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
//Developer notes - http://mvark.blogspot.in/2013/03/how-to-find-weather-information-for.html | |
//use YQL Console to build query - http://developer.yahoo.com/yql/console/ | |
function getWeather(woeid, unit) { |
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> | |
<title>Show book titles in Amazon ads by keyword</title> | |
</head> | |
<body> | |
<div id="amz"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script> | |
$(document).ready(function () { |
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 time(lat, long) { | |
//replace the value for the key parameter with your own | |
var url = "http://api.worldweatheronline.com/free/v1/tz.ashx?q=" + lat + "," + long + "&format=json&key={key}&callback=tfunc"; | |
//reference to jQuery library is required prior to using this function | |
$.getScript(url, function (response) { }); | |
} | |
window.tfunc = function (response) { | |
var time = ""; |
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
<html> | |
<head> | |
<script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
<script type='text/javascript'> | |
//Based on this original sample - http://jsfiddle.net/asgallant/wwDyU/1/ | |
function drawChartIN () { | |
var data = new google.visualization.DataTable(); | |
data.addColumn('string', 'INState'); |
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
Option Explicit | |
'References: | |
'http://stackoverflow.com/questions/19071173/ms-word-macro-how-to-adapt-so-it-get-data-from-my-excel-file | |
'http://www.mrexcel.com/forum/excel-questions/32187-convert-variant-array-string-array.html | |
Dim TargetList() As String | |
Public Sub GetWordsFromExcelAndHighlight() | |
Dim lngIndex As Long |
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
# PowerShell script to download a list of files that have a predictable number pattern | |
for ($i=1; $i -le 10; $i++) | |
{ | |
$startTime = (Get-Date) | |
# Download files that have the naming format File1.txt, File2.txt etc.. | |
(new-object System.Net.WebClient).DownloadFile("http://example/file$i.txt","C:\temp\file$i.txt") | |
$endTime = (Get-Date) | |
# Echo Time taken | |
"Time taken to download file$i : $(($endTime-$startTime).totalseconds) seconds" | |
} |
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
javascript:(function()%7Bdocument.getElementById(%22txtInput%22).value%3Ddocument.getElementById(%22txtCaptcha%22).value%7D)() |
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
Add-Type -Path "C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.1\ref\Microsoft.WindowsAzure.Storage.dll" | |
$refs = @("C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Services.Client.dll") | |
$code = @" | |
using System; | |
using System.Data.Services.Common; | |
[DataServiceEntity] |
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
javascript:(function() { | |
a = document.getElementsByTagName('a'); | |
for (i = 0; i < a.length; i++) { | |
a[i].href = 'http://www.google.com/gwt/x?noimg=1&btnGo=Go&source=wax&ie=UTF-8&oe=UTF-8&u=' + encodeURIComponent(a[i].href); | |
a[i].style.backgroundColor = '#f0f0f0'; |
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
$(document).ready(function() { | |
$('#calendar').fullCalendar({ | |
defaultDate: '2014-11-13', | |
editable: true, | |
eventLimit: true, // allow "more" link when too many events | |
events: function (start, end, timezone, callback) { | |
$.ajax({ | |
url: "http://example.azure-mobile.net/tables/event?$filter=eventdate gt '" + start.toISOString() + "' and eventdate lt '" + end.toISOString() + "'", | |
dataType: 'json', | |
beforeSend: setHeader, |
OlderNewer