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 gr.spiritinlife.AnimationBlackToRedBox; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.util.Log; |
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
import android.util.Base64; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.io.UnsupportedEncodingException; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
public class HMAC { | |
public static String hmacDigest(String msg, String keyString, String algo) { |
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
"use strict"; | |
var db = require('../db'); | |
var indexes = {}; | |
db.getCollectionNames(function (err, collections) { | |
for (var i=0; i<collections.length; i++) { | |
indexes[collections[i]] = []; | |
(function (i) { | |
db.collection(collections[i]).getIndexes(function (err, collectionIndexes) { |
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
If you are using Azure web app service or any azure server to host your socketio service and you have more than two instances. | |
Then in order for all transports in socketio to work and specifically to upgrade from xhr-polling to websockets, you will need | |
the following: | |
1) ARRAffinity cookie needs to be enabled. When iis sees this cookie in the request it chooses the requests web server instance. This | |
is very important for socketio to work since the upgrade to websockets mechanism uses memory as storage and it will not be shared | |
between instances. | |
2) Socket.io-client-java needs to be configured to save and send the ARRAffinity cookie. See the librabry in this section | |
Transports and HTTP Headers. It shows how to read and write to requests and responses that are handled by the lib. |
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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
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
/// This is inspired by intl_translation extract command https://github.com/dart-lang/intl_translation/blob/8a5e883d7fe07b0244adbaf3489ceb3b08385483/bin/extract_to_arb.dart | |
/// and is a slimed down rough version of it. Most of the code is from this package which is an excellent learning resource for anyone who wants | |
/// to play around with the dart analyzer. | |
/// This is a rough script, to extract localization keys for the easy_localization library. It will analyze the souce | |
/// code and find occurrences of tr and plural ( you could add other method names e.g. gender etc ) and extract the argument at index $argumentIndex | |
/// which should be the translation key. It then merges those keys to your current translated keys and spits the merged version where the | |
/// untranslated keys have a value of "MISSING". | |
/// Known issues | |
/// tr( isSomething ? "true_key" : "false_key", context ) -> will get this as key isSomething ? "true_key" : "false_key" |
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
{ | |
"token" : "T1==cGFydG5lcl9pZD00NTgyODA2MiZzaWc9MmZhMDgzNDIzNzdjOWIyZmFhN2U4MDVmZDQyZmU4MGEzNTdlMmFkYTpzZXNzaW9uX2lkPTFfTVg0ME5UZ3lPREEyTW41LU1UWXhNVFkxTXpZd05EYzROSDRyVm5WdmNHMHpURTlhY1dkSk5WbDJVVmRDT1ZKQ2JVWi1VSDQmY3JlYXRlX3RpbWU9MTYxMTY1NDI1MiZub25jZT0wLjE2MDY2OTE4NDU2MjMyNzYmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTYxMTc0MDY1Mg==", | |
"session_id" : "1_MX40NTgyODA2Mn5-MTYxMTY1MzYwNDc4NH4rVnVvcG0zTE9acWdJNVl2UVdCOVJCbUZ-UH4" | |
} |
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
{ | |
"address": "109 S Batavia Ave Batavia, IL 60510", | |
"is_listing_claimed": false, | |
"is_paid_advertiser": false, | |
"reviews_count": 6, | |
"reviews_rating": 4, | |
"task_id": "test", | |
"task_url": "https://www.yelp.com/biz/batavia-family-dental-batavia-5?osq=emergency+dentist", | |
"version": "listing_3", | |
"website": "bataviadentaloffice.com", |
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
{ | |
"has_next_page": true, | |
"listings": [ | |
{ | |
"ad_placement": "above_search", | |
"ad_slot": "0", | |
"address": "60 Main St", | |
"is_ad": true, | |
"name": "Stonehill Dental", | |
"profile_url": "https://www.yelp.com/biz/stonehill-dental-oswego", |
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
{ | |
"has_next_page": true, | |
"listings": [ | |
{ | |
"ad_placement": null, | |
"ad_slot": null, | |
"address": [ | |
"Dunkirk, MD 20754", | |
"10420 Southern Maryland Blvd" | |
], |
OlderNewer