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
/* | |
* Based on @subhrapaladhi tutorial | |
* https://github.com/subhrapaladhi/Node-Redis-Mongo-app https://subhrapaladhi.medium.com/using-redis-with-nodejs-and-mongodb-28e5a39a2696 | |
* I've changed some logic (I'm not returning the data as mongoose Model due to performance concern) | |
* and includedd the support for Aggregation. | |
* Also I'm using the redis 4.* command. | |
*/ | |
const mongoose = require("mongoose"); | |
const redis = require("redis"); | |
const config = require("./../../config.js"); |
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
diff --git a/src/exchanges/kraken.cpp b/src/exchanges/kraken.cpp | |
index 902dfa1..7a69f5a 100644 | |
--- a/src/exchanges/kraken.cpp | |
+++ b/src/exchanges/kraken.cpp | |
@@ -18,6 +18,7 @@ namespace Kraken | |
static unique_json krakenTicker = nullptr; | |
static bool krakenGotTicker = false; | |
+double shortOrderVolume = 0.0; | |
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
package com.unipiazza.restlibrary.customsaripaar; | |
//compile 'javax.jmdns:jmdns:3.4.1' in build.gradle | |
import org.xbill.DNS.Lookup; | |
import org.xbill.DNS.Record; | |
import org.xbill.DNS.TextParseException; | |
import org.xbill.DNS.Type; | |
import java.io.Serializable; | |
import java.util.regex.Matcher; |
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
#!/bin/bash | |
#tablet | |
REGISTRATION_ID= | |
SERVER_KEY= | |
#force_ping | |
curl --header "Authorization: key=$SERVER_KEY" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{ \"data\" : "somedata", \"registration_ids\":[\"$REGISTRATION_ID\"] }" |
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
/** | |
* * Scales in the view from scale of 0 to actual dimensions. | |
* * @param view The view to scale. | |
* * @param durationMs The duration of the scaling in milliseconds. | |
* * @param startDelayMs The delay to applying the scaling in milliseconds. | |
*/ | |
public static void scaleIn(final View view, int durationMs, int startDelayMs) { | |
AnimatorListenerAdapter listener = (new AnimatorListenerAdapter() { | |
@Override | |
public void onAnimationStart(Animator animation) { |
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
--- chan_gtalk1.8-mio-final.c 2012-02-03 11:31:42.754279386 +0100 | |
+++ chan_gtalk1.8-mio-final2.c 2012-02-02 21:02:02.874390985 +0100 | |
@@ -610,14 +610,22 @@ static int gtalk_is_answered(struct gtal | |
iks *codec; | |
char s1[BUFSIZ], s2[BUFSIZ], s3[BUFSIZ]; | |
int peernoncodeccapability; | |
+ iks *tmp2; | |
ast_log(LOG_DEBUG, "The client is %s\n", client->name); | |
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
--- chan_gtalk1.8.c 2012-02-01 00:47:22.874993607 +0100 | |
+++ chan_gtalk1.8-mio-final.c 2012-02-02 19:38:32.873555093 +0100 | |
@@ -1997,6 +1997,11 @@ static int gtalk_parser(void *data, iksp | |
pak->query = tmp; | |
} | |
+ if (!strcasecmp(iks_name(pak->query), "jingle") && (tmp = iks_next(pak->query)) && !strcasecmp(iks_name(tmp), "session")) { | |
+ ast_debug(1, "New method detected. Skipping jingle offer and using old gtalk method.\n"); | |
+ pak->query = tmp; | |
+ } |
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
--- chan_gtalk.c 2011-11-23 18:14:41.000000000 +0100 | |
+++ chan_gtalkmio.c 2012-01-31 13:31:59.592839682 +0100 | |
@@ -1020,7 +1020,10 @@ static struct gtalk_pvt *gtalk_alloc(str | |
} | |
while (resources) { | |
- if (resources->cap->jingle) { | |
+ int n = strncmp(resources->resource, "android_talk", 11); | |
+ if (resources->cap->jingle || n==0 ) { | |
+ if(n==0) |