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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "opentable/win-2012r2-essentials-amd64-nocm" | |
config.vm.communicator = "winrm" | |
config.vm.guest = :windows |
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
- polyglot data / persistance | |
- nosql is a implementation of polyglot data | |
- types of databases | |
- NoSQL[x] | |
- key-value stories[x] | |
- Riak | |
- Memecache | |
- Redis | |
- document-oriented [x] | |
- graph [x] |
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
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> | |
struct PKW | |
{ | |
int PSL; | |
int PIS; | |
int PO; |
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'; | |
$client = new JustGivingClient("https://api-sandbox.justgiving.com/", "0f938d22", 1, "apiunittest@justgiving.com", "password"); | |
$response = $client->Page->UploadImage("{pageName}", "{desc}", "{imageWithExtension}", "{content-type}"); | |
if($response == 1) | |
{ | |
echo "Success!"; | |
} | |
else | |
{ |
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/Event.php'; | |
$client = new JustGivingClient("https://api-sandbox.justgiving.com/", "appId", 1, | |
"user", "password"); | |
$event = new Event(); | |
$event->name = "Playing Mario for 48 hours for charity"; | |
$event->description = "This is an event description"; |
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"; |
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
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
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
$response = $client->Charity->Retrieve(2050); | |
if($response != null) | |
{ | |
$response->name; | |
$response->description; | |
if($response->donationDisplayAmounts != null) | |
{ | |
$response->donationDisplayAmounts[0]->amount; | |
} | |
} |
OlderNewer