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
public int Add(int a, int b) | |
{ | |
return a + b; | |
} |
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
Command: "D:\home\site\deployments\tools\deploy.cmd" | |
Handling ASP.NET 5 Web Application deployment. | |
'dnx-clr-win-x86.1.0.0-beta7' is already installed. | |
Adding D:\local\UserProfile\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PATH | |
Microsoft .NET Development Utility CLR-x86-1.0.0-beta7-15532 | |
CACHE https://api.nuget.org/v3/index.json | |
Restoring packages for D:\home\site\repository\src\dotNetConfPL.Web\project.json | |
GET https://api.nuget.org/v3-flatcontainer/microsoft.dnx.runtime/index.json | |
GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.mvc/index.json | |
GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.mvc.taghelpers/index.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
Command: "D:\home\site\deployments\tools\deploy.cmd" | |
Handling ASP.NET 5 Web Application deployment. | |
Downloading dnx-clr-win-x86.1.0.0-beta7 from https://www.nuget.org/api/v2 | |
Installing to D:\local\UserProfile\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7 | |
Adding D:\local\UserProfile\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PATH | |
Native image generation (ngen) is skipped. Include -Ngen switch to turn on native image generation to improve application startup time. | |
Microsoft .NET Development Utility CLR-x86-1.0.0-beta7-15532 | |
GET https://api.nuget.org/v3/index.json | |
OK https://api.nuget.org/v3/index.json 577ms | |
Restoring packages for D:\home\site\repository\src\dotNetConfPL.Web\project.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
if(a<=b){ | |
return 1; | |
} | |
else{ | |
return 0; | |
} | |
IL changes to | |
if(a>b){ |
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
{ | |
"events": [ | |
{ | |
"completionDate": "/Date(1444950000000+0100)/", | |
"description": "", | |
"eventType": 0, | |
"expiryDate": "/Date(1452902400000+0000)/", | |
"id": 2441274, | |
"location": "", | |
"name": "Barclays Moontrekker 2015", |
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
$response = $client->Charity->Retrieve(2050); | |
if($response != null) | |
{ | |
$response->name; | |
$response->description; | |
if($response->donationDisplayAmounts != null) | |
{ | |
$response->donationDisplayAmounts[0]->amount; | |
} | |
} |
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
Title : Global stochastic optimization, how I picked up Haskell for my BSc project. | |
Abstract : Lighting talk about why I decided to pick up Haskell and R to implement my BSc project. | |
Optimization is a subject of math where you want to maximize or minimize something (it can be income, expenses, production or emitted energy by particle collision). | |
Real fun comes when you want to optimize non-linear, discrete functions. | |
What is my goal ? : To encourage people to pick up FP as a next language, and show them that it's not something difficult. | |
Beside tell them about Optimization. |
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
Using a sandbox located at D:\haskell\yesod\.cabal-sandbox | |
"C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin\alex.exe" "--version" | |
"C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin\gcc.exe" "-dumpversion" | |
"C:\Program Files\Haskell Platform\2014.2.0.0\bin\haddock.exe" "--version" | |
"C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin\happy.exe" "--version" | |
"C:\Program Files\Haskell Platform\2014.2.0.0\bin\hpc.exe" "version" | |
looking for tool hsc2hs near compiler in C:\Program Files\Haskell | |
Platform\2014.2.0.0\bin | |
found hsc2hs in C:\Program Files\Haskell Platform\2014.2.0.0\bin\hsc2hs.exe | |
"C:\Program Files\Haskell Platform\2014.2.0.0\bin\hsc2hs.exe" "--version" |
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
{ | |
"reference": null, | |
"charityId": 2050, | |
"eventId": 2436473, | |
"pageShortName": "my-test-pagetwG1-api-23", | |
"pageTitle": "my test page title", | |
"activityType": null, | |
"targetAmount": "2000", | |
"justGivingOptIn": false, | |
"charityOptIn": false, |
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 | |
include_once 'JustGivingClient.php'; | |
include_once 'ApiClients/Model/RegisterPageRequest.php'; | |
$client = new JustGivingClient("https://api-sandbox.justgiving.com/", "appId", 1, | |
"user", "password"); | |
$registerPageRequest = new RegisterPageRequest(); | |
$registerPageRequest->pageShortName = "page-short-name-02"; | |
$registerPageRequest->pageTitle = "page title"; |