Skip to content

Instantly share code, notes, and snippets.

View olegflo's full-sized avatar
💭
🕉

Oleg Soroka olegflo

💭
🕉
View GitHub Profile
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.ua/maps/ms?ll=49.998843,36.251686&amp;spn=0.010152,0.023153&amp;t=m&amp;z=16&amp;msa=0&amp;msid=201676774650670506245.0004bb0c994be20888063"></iframe><br /><small>View <a href="http://maps.google.com.ua/maps/ms?ll=49.998843,36.251686&amp;spn=0.010152,0.023153&amp;t=m&amp;z=16&amp;msa=0&amp;msid=201676774650670506245.0004bb0c994be20888063&amp;source=embed" style="color:#0000FF;text-align:left">ХПИ</a> in a larger map</small>
@olegflo
olegflo / gist:3754608
Created September 20, 2012 08:12
maven assembly plugin
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
@olegflo
olegflo / gist:3876684
Created October 12, 2012 00:43
snippets log example
10-12 03:39:00.296: I/System.out(1084): Start snippet: create session
10-12 03:39:00.296: D/QBASDK RestRequest(1084): =========================================================
10-12 03:39:00.296: D/QBASDK RestRequest(1084): === REQUEST ==== 3958b8cf-5370-4d04-9f6a-e42d36308d0f ===
10-12 03:39:00.296: D/QBASDK RestRequest(1084): REQUEST
10-12 03:39:00.296: D/QBASDK RestRequest(1084): POST https://api.quickblox.com/session.json
10-12 03:39:00.296: D/QBASDK RestRequest(1084): HEADERS
10-12 03:39:00.296: D/QBASDK RestRequest(1084): QuickBlox-REST-API-Version=0.1.1
10-12 03:39:00.296: D/QBASDK RestRequest(1084): QB-SDK=Android 0.1.0
10-12 03:39:00.296: D/QBASDK RestRequest(1084): QB-Token=7e44bf1fc97ef862bc64861a1f11c51f301789b4
10-12 03:39:00.296: D/QBASDK RestRequest(1084): PARAMETERS
<?php
$type = 'GET';
$url = '';
$data = '';
if (isset($_GET['type'])) {
$type = $_GET['type'];
}
if (isset($_GET['url'])) {
proxy.php?type={GET|DELETE}&url={website_url}
proxy.php?type=POST&url={website_url}&data={data}
@olegflo
olegflo / gist:3923156
Created October 20, 2012 12:24
qbdoc
QBSettings.getInstance().fastConfigInit("961", "PBZxXW3WgGZtFZv", "vvHjRbVFF6mmeyJ");
@olegflo
olegflo / gist:3923198
Created October 20, 2012 12:55
qbdoc
QBAuth.authorizeApp(new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
// result comes here
// check if result success
if (result.isSuccess()) {
// do stuff you need
}
}
});
@olegflo
olegflo / gist:3923298
Created October 20, 2012 13:41
qbdoc
// authorize user
QBUsers.signIn("indianajones", "indianapassword", new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
// result comes here
// check if result success
if (result.isSuccess()) {
// do stuff you need
}
}
@olegflo
olegflo / gist:3923306
Created October 20, 2012 13:43
qbdoc
// register user
QBUsers.signUp("indianajones", "indianapassword", new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
// result comes here
// check if result success
if (result.isSuccess()) {
// do stuff you need
}
}
@olegflo
olegflo / gist:3923490
Created October 20, 2012 14:56
qbdoc
public class QBCallbackImpl implements QBCallback {
public void onComplete(Result result) {
// override in subclass
}
public void onComplete(Result result, Object context) {
// override in subclass
}
}