This file contains hidden or 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
https://stackoverflow.com/questions/53755779/issue-with-firebase-dynamic-links | |
Looks like you’ve encountered an issue while debugging your Firebase Dynamic Link. Just to share, when adding an iOS app to a Firebase project, an OAuth client ID is automatically generated for it in it’s associated Cloud project. Deleting the app doesn't remove its corresponding client IDs, which can cause issues for the dynamic link. Here are the steps to change or delete the package name/bundle ID for the client IDs: | |
Access the project on the Cloud console | |
Go to APIs and Services > Credentials | |
Identify the client ID with the conflicting package name/bundle ID in the name (ex: [Android/iOS] client for (auto created by Google Service) | |
Edit the package name/bundle ID and save changes or delete the OAuth client ID |
This file contains hidden or 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 initialize() { | |
guard let projectId = UIApplication.segmentProjectId else { | |
return | |
} | |
//#if DEBUG | |
//SEGAnalytics.debug(true) | |
//#endif | |
let config = SEGAnalyticsConfiguration(writeKey: projectId) |
This file contains hidden or 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
def appModuleRootFolder = '.' | |
def srcDir = 'src' | |
def googleServicesJson = 'google-services.json' | |
task switchToStaging(type: Copy) { | |
outputs.upToDateWhen { false } | |
def flavor = 'staging' | |
description = "Switches to $flavor $googleServicesJson" | |
delete "$appModuleRootFolder/$googleServicesJson" | |
from "${srcDir}/$flavor/" |
This file contains hidden or 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
Create a new group (www-pub) and add the users to that group | |
groupadd www-pub | |
usermod -a -G www-pub usera ## must use -a to append to existing groups | |
usermod -a -G www-pub userb | |
groups usera ## display groups for user |
This file contains hidden or 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
- (void)flipImageVertically { | |
NSAffineTransform *flipper = [NSAffineTransform transform]; | |
NSSize dimensions = self.size; | |
[self lockFocus]; | |
[flipper scaleXBy:1.0 yBy:-1.0]; | |
[flipper set]; | |
[self drawAtPoint:NSMakePoint(0,-dimensions.height) | |
fromRect:NSMakeRect(0,0, dimensions.width, dimensions.height) |
This file contains hidden or 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
/** | |
* Subscribe User to MailChimp | |
*/ | |
function wooms_mailchimp_subscribe_user($order_id,$posted){ | |
if(!empty($_POST['wooms_susbscribe']) && $_POST['wooms_susbscribe'] == '1'){ | |
try{ | |
$email = $posted['billing_email']; | |
$merge_vars = array('FNAME' => $posted['billing_first_name'],'LNAME' => $posted['billing_last_name']); | |
$api = new MCAPI(mailchimp_api_key); |
This file contains hidden or 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 java.math.BigInteger; | |
import java.security.NoSuchAlgorithmException; | |
import javax.crypto.Cipher; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.SecretKeySpec; | |
public class AES { |
This file contains hidden or 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 java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; |
This file contains hidden or 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 java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; | |
import java.util.Vector; | |
enum Photon { ZERO, ONE, UNDEFINED; }; | |
class KeyBit { | |
KeyBit(Photon setBit, String setPol){bit = setBit; polarization = setPol;} | |
public Photon bit; | |
public String polarization; | |
public String toString() |
This file contains hidden or 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 java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
public class SubstitutionCipher { |
NewerOlder