Skip to content

Instantly share code, notes, and snippets.

View pawelsawicz's full-sized avatar

Pawel Sawicz pawelsawicz

View GitHub Profile
@pawelsawicz
pawelsawicz / gist:2b6e1e8896db51e42e64
Created January 14, 2015 16:29
RegisterEvent example in PHP
<?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";
<?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
{
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
struct PKW
{
int PSL;
int PIS;
int PO;
@pawelsawicz
pawelsawicz / nosqlbrainstorm
Last active August 29, 2015 14:05
Love between NoSQL & Polyglot persistance
- 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]
# -*- 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