Skip to content

Instantly share code, notes, and snippets.

satoshi satoshikumano

Block or report user

Report or block satoshikumano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rest_testing_example.go
package MyTest
import (
View ListingIssuesInGH.mkd
# -*- coding: utf-8; -*-

import httplib2
import json
import sys
import codecs
import urllib

sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
View cpp-async.mkd
#include <iostream>
#include <thread>
#include <functional>
#include <map>

class hoge {
    int num;
    hoge(const hoge& rv)
View dumpKiiObject.mkd
- (IBAction)onClick:(id)sender {
    NSDate *d = [[NSDate alloc]init];
    double now = [d timeIntervalSince1970];
    NSString *username = [NSString stringWithFormat:@"user-%f", now];
    KiiUser *user = [KiiUser userWithUsername:username andPassword:@"1234"];
    [user performRegistrationWithBlock:^(KiiUser *user, NSError *error) {
        if (error != nil) {
            NSLog(@"error on reg: %@", error);
satoshikumano / ObjectUri.mkd
Last active Aug 29, 2015
Loading Object from Uri (Unity)
View ObjectUri.mkd
// Omitting error handling to simplify the code.

// First time object creation on Kii Cloud.
KiiObject userProf = Kii.Bucket("myBucket").NewKiiObject();
userProf["userProf1"] = "prof value1";
userProf["userProf2"] = "prof value2";

// Store Object Uri in local storage.
View CountQueryUnity.mkd
using UnityEngine;
using System.Collections;
using System.Net;
using System.IO;
using JsonOrg;

public class NewBehaviourScript : MonoBehaviour {

	private string message = "";
View gist:6218747
var group1 = new KiiGroup.groupWithName("MyGroup");{
success: function(savedGroup) {
// uri of the group.
var uri = savedGroup.objectURI();
// create another instance of group references group1
var group2 = new KiiGroup.groupWithURI(uri);
success: function(refreshedGroup) {
var groupName = refreshedGroup.getName();
View query.mkd


"bucketQuery" : {
  "clause" : {
    "type": "geodistance",
    "field": "mylocation",
    "center": {
        "_type": "point",
        "lat": 11.0,
        "lon": 1.0
You can’t perform that action at this time.