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
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
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
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
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
extension MainViewController: NSTextFieldDelegate { | |
func controlTextDidChange(_ obj: Notification) { | |
let textField = obj.object as! NSTextField | |
let charSet = NSCharacterSet(charactersIn: "1234567890").inverted | |
textField.onlyNumberAndTextFieldSizeLimitation(charset: charSet) | |
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 credentials | |
from firebase_admin import db | |
from firebase_admin import firestore | |
from firebase_admin import messaging | |
import json | |
import requests | |
# Get the content of the service account key JSON file |
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 credentials | |
from firebase_admin import storage | |
import os | |
cred = credentials.Certificate("path/to/certificate.json") | |
firebase_admin.initialize_app(cred, { 'storageBucket' : '<AppName>.appspot.com'}) | |
directory = '/Users/name/Desktop/TestOrdner/' |