Skip to content

Instantly share code, notes, and snippets.

@blazovics
blazovics / ITAppDelegate-imageAtUrl.m
Created October 24, 2012 11:38
bme-ios - iTravel Core Data
+ (UIImage*)imageAtUrl:(NSString *)path{
NSData* data = [[NSFileManager defaultManager] contentsAtPath:path];
return [UIImage imageWithData:data];
}
func mapView(mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) {
let coordinate = view.annotation!.coordinate
let geocoder = CLGeocoder()
let location = CLLocation(latitude: coordinate.latitude, longitude: coordinate.longitude)
geocoder.reverseGeocodeLocation(location, completionHandler: { (placemarks, error) -> Void in
if (error != nil) {
print("Error occured \(error!.localizedDescription)")
return
QObject* findItemByName(QList<QObject*> nodes, const QString& name)
{
for(int i = 0; i < nodes.size(); i++)
{
// Node keresése
if (nodes.at(i) && nodes.at(i)->objectName() == name)
{
return nodes.at(i);
}
@objc private func keyboardWillShow(notification: Notification) {
if
let userInfo = notification.userInfo,
let keyboardSize = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue,
let duration = (userInfo[UIResponder.keyboardAnimationDurationUserInfoKey] as? NSNumber)?.doubleValue
{
if passwordTextField.frame.maxY > view.frame.height - keyboardSize.height {
UIView.animate(withDuration: duration, animations: { self.imageViewTopConstraint.constant -=
keyboardSize.height
self.view.layoutIfNeeded()
func getRandomPicture(_ picture: inout UIImage?, titles: inout [String], pictureTitleIndex: inout Int) {
guard let pictures = pictures else {
return
}
// kiválasztott kép indexe a `pictures` tömbben
let selectedPictureIndex = Int.random(in: 0...pictures.count-1)
//Int(arc4random_uniform(UInt32(pictures.count - 1)))
@objc private func keyboardWillShow(notification: Notification) {
if let userInfo = notification.userInfo, let keyboardSize = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
if passwordTextField.frame.maxY > (view.frame.height - keyboardSize.height) {
imageViewTopConstraint.constant = -1 * (passwordTextField.frame.maxY - (view.frame.height - keyboardSize.height))
}
}
}
@objc private func keyboardWillHide(notification: Notification) {
imageViewTopConstraint.constant = 0
var messages: [Message] = [Message(id: 1, sender:"Joe", content: "First Message"),
Message(id: 2, sender:"Joe", content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."),
Message(id: 3, sender:"Teo", content: "Third Message")]

Active Directory Labor

A laborfoglalkozás során a fiktív Beactive cég IT rendszerét fogjuk megvalósítani.

Ezen az oldalon tudjuk megnézni, hogy mennyi kreditünk van. (Naponta frissül!) https://www.microsoftazuresponsorships.com/balance

1. Megalakul a cég

A dolgozók száma jelenleg 2 fő (Kedves János CEO; Görög Konrád HR), de kell nekik AD, mivel tudják, hogy vesznek fel majd embereket.