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
@Keep | |
public class AbtRegistrar implements ComponentRegistrar { | |
private static final String LIBRARY_NAME = "fire-abt"; | |
@Override | |
public List<Component<?>> getComponents() { | |
return Arrays.asList( | |
Component.builder(AbtComponent.class) | |
.name(LIBRARY_NAME) | |
.add(Dependency.required(Context.class)) |
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 firebase_admin | |
from firebase_admin import auth | |
from firebase_admin import credentials | |
cred = credentials.Certificate("path to service_account.json") | |
firebase_admin.initialize_app(cred) | |
user = auth.get_user_by_phone_number("your_phone") | |
print 'Successfully fetched user data: {0}'.format(user.uid) |
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
func getDigitsAuthInfo(success:((info:NSDictionary)->()), failure:((error:NSError) ->())) { | |
let digitsAppearance = DGTAppearance() | |
// Change color properties to customize the look: | |
digitsAppearance.backgroundColor = kCuteYellowColor | |
digitsAppearance.accentColor = kCuteRedColor | |
let digits = Digits.sharedInstance() | |
digits.authenticateWithDigitsAppearance(digitsAppearance, viewController: nil, title: nil, completion: { (session, err) in | |
if (err == nil) { | |
let sessionDict = NSMutableDictionary(capacity: 8) | |
let oauthSigning = TWTROAuthSigning(authConfig: Twitter.sharedInstance().authConfig, authSession: session) |
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
<property> | |
<name>yarn.scheduler.minimum-allocation-mb</name> | |
<value>1024</value> | |
</property> | |
<property> | |
<name>yarn.scheduler.maximum-allocation-mb</name> | |
<value>16384</value> | |
</property> |
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
<property> | |
<name>mapreduce.map.memory.mb</name> | |
<value>4096</value> | |
</property> | |
<property> | |
<name>mapreduce.reduce.memory.mb</name> | |
<value>6144</value> | |
</property> | |
<property> | |
<name>mapreduce.map.java.opts</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
require "sugar" | |
async = require "async" | |
fs = require "fs" | |
path = require "path" | |
child_process = require "child_process" | |
FTPClient = require "./ftp" | |
[watchPath, ftpHost, ftpUser, ftpPass, ftpPath] = process.argv.from 2 | |
conn = new FTPClient |