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 SingleStats | |
{ | |
public String Date; | |
public Nullable<int> Value; | |
} | |
public ActionResult fetchData(int id) | |
{ | |
XmlDocument doc = new XmlDocument(); | |
doc.Load("c:\\temp\\flickrRepositoryGlobal.xml"); |
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
//**************************************************************************** | |
// flickrGraphs.js | |
// jQuery Flickr Graph | |
// @Author: J Corbilla. | |
// @Description: This unit uses jqplot to display the content of the xml file | |
// 2015 | |
//***************************************************************************** | |
$(document).ready(function () { | |
$.ajax({ |
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
<head runat="server"> | |
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> | |
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" charset="utf-8" src="<%= ResolveClientUrl("~/Scripts") %>/jquery-1.4.1.min.js"></script> | |
<script type="text/javascript" charset="utf-8" src="<%= ResolveClientUrl("~/Scripts") %>/flickrGraphs.js"></script> | |
<script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts") %>/jqPlot/jquery.min.js"></script> | |
<script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts") %>/jqPlot/jquery.jqplot.min.js"></script> | |
<script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts") %>/jqPlot/plugins/jqplot.dateAxisRenderer.js"></script> | |
<script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts") %>/jqPlot/plugins/jqplot.canvasTextRenderer.js"></script> | |
<script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts") %>/jqPlot/plugins/jqplot.canvasAxisTickRen |
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(){ | |
var line1=[['2008-08-12 4:00PM',4], ['2008-09-12 4:00PM',6.5], ['2008-10-12 4:00PM',5.7], ['2008-11-12 4:00PM',9], ['2008-12-12 4:00PM',8.2]]; | |
var plot1 = $.jqplot('chart1', [line1], { | |
title:'Default Date Axis', | |
axes:{ | |
xaxis:{ | |
renderer:$.jqplot.DateAxisRenderer | |
} | |
}, | |
series:[{lineWidth:4, markerOptions:{style:'square'}}] |
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
curl -X POST \ | |
-H "X-Parse-Application-Id: yourAppId" \ | |
-H "X-Parse-REST-API-Key: yourRESTAPIKey" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
}' \ | |
https://api.parse.com/1/events/AppOpened |
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
/** | |
* @Author: Jordi Corbilla | |
* (c) Copyright by Jordi Corbilla. | |
**/ | |
procedure TForm1.Button1Click(Sender: TObject); | |
var | |
response : string; | |
JSONToSend: TStringStream; | |
begin |
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
class Calculator | |
def sum(i,j) | |
return i+j | |
end | |
end |
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
gource -1080x808 --elasticity 0.4 --stop-at-end --transparent --hide filenames --time-scale 4 --seconds-per-day 1 --auto-skip-seconds 1 --bloom-intensity 1 --bloom-multiplier 1 "C:\Source code\FlickrPhotoStats" |
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
<photo id="1253576" secret="81b96be690" server="1" farm="1" page="1" pages="3" perpage="10" total="1"> | |
<person nsid="33939862@N00" username="Dementation" favedate="1166689690" /> | |
</photo> |
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
procedure TfrmFlickr.RequestInformation_REST_Flickr(id: string); | |
var | |
Item, itemExisting: TListItem; | |
response: string; | |
iXMLRootNode, iXMLRootNode2, iXMLRootNode3, iXMLRootNode4: IXMLNode; | |
views, title, likes, comments: string; | |
stat: IStat; | |
photo, existing: IPhoto; | |
begin | |
response := IdHTTP1.Get(TFlickrRest.new().getInfo(apikey.text, id)); |
OlderNewer