Skip to content

Instantly share code, notes, and snippets.

View smalyshev's full-sized avatar

Stanislav Malyshev smalyshev

View GitHub Profile
06:06:56.205 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - Completed in 2016 ms
06:06:56.206 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 40ms, elapsed = 39ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.206 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 93ms, elapsed = 52ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.206 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 130ms, elapsed = 35ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.206 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 146ms, elapsed = 15ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.207 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 233ms, elapsed = 75ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.207 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 330ms, elapsed = 95ms, where = 0ms, delete = 0ms, insert = 0ms
06:06:56.207 [main] DEBUG o.w.query.rdf.tool.rdf.RdfRepository - total = 418ms, elapsed = 86ms, where = 0ms, delete = 0ms, i
import sys
f = open(sys.argv[1], 'r')
txt = f.readline().strip()
patterns = [p.strip() for p in f]
f = open(sys.argv[2], 'r')
answers = [int(i) for i in f.readline().strip().split(' ')]
anset = set()
array(9) {
["Accounts"]=>
array(5) {
[0]=>
string(15) "billing_address"
[1]=>
string(16) "shipping_address"
[2]=>
string(15) "phone_alternate"
[3]=>
@smalyshev
smalyshev / gist:7185dc6de6b1d445d4af
Last active August 29, 2015 14:00
New proxyApi
<?php
/*
* By installing or using this file, you are confirming on behalf of the entity
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by
* the SugarCRM Inc. Master Subscription Agreement ("MSA"), which is viewable at:
* http://www.sugarcrm.com/master-subscription-agreement
*
* If Company is not bound by the MSA, then by installing or using this file
* you are agreeing unconditionally that Company will be bound by the MSA and
* certifying that you have authority to bind Company accordingly.
{
"offset":{
"meetings": 3,
"calls": -1,
"tasks": 4,
},
"filter":[
{
"start_date":"2013-02-26T19:12:00+00:00"
}
{
"next_offsets": {
"meetings": 2,
"calls": -1,
"tasks": 1
},
"records": [
{
"my_favorite": false,
"id": "89179177-41d7-311f-90ef-53a9ed038ae4",
<?php
function makeClass($origClass) {
$rc = new ReflectionClass($origClass);
if($rc->isInterface()) {
echo "Interface $origClass, skipped\n";
return;
}
if($rc->isFinal()) {
echo "FINAL $origClass, skipped\n";
<?php
array(
'invitees' => array(
'name' => 'invitees',
'source' => 'non-db',
'type' => 'link_field',
'link' => 'meeting_invitees',
'fields' => ['id', 'name', 'picture', 'status']
'sort_on' => 'name'
{
"id": "12346ewe",
"subject": "my meeting",
"contacts": {
"add": [
"89179177-41d7-311f-90ef",
{
"id": "473d122f-0a45-fef6-0138",
"role": "owner"
}