Skip to content

Instantly share code, notes, and snippets.

View JordiCorbilla's full-sized avatar
:bowtie:
Writing about Quantitative Finance and Machine Learning

Jordi Corbilla JordiCorbilla

:bowtie:
Writing about Quantitative Finance and Machine Learning
View GitHub Profile
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");
//****************************************************************************
// 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({
<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
$(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'}}]
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
/**
* @Author: Jordi Corbilla
* (c) Copyright by Jordi Corbilla.
**/
procedure TForm1.Button1Click(Sender: TObject);
var
response : string;
JSONToSend: TStringStream;
begin
class Calculator
def sum(i,j)
return i+j
end
end
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"
<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>
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));