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
/** | |
* Check if contact is already registered with mimetype | |
* | |
* @param resolver content resolver | |
* @param id user id | |
* @return boolean | |
*/ | |
private fun isAlreadyRegisteredMimeType(resolver: ContentResolver, id: String, mimeType: String): Boolean { |
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
// | |
// GradView.swift | |
// | |
// | |
// Created by Ali Mashuri on 3/22/17. | |
// Copyright © 2017 Ali Mashuri. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
<?php | |
try { | |
$mongo = new Mongo(); // default host:port | |
$db = $mongo->example; | |
$collection = $db->test; | |
$document = array('x' => 1); | |
$collection->insert($document); | |
print_r($document); |