Skip to content

Instantly share code, notes, and snippets.

View serhatsezer's full-sized avatar
🎯
Focusing

Serhat Sezer serhatsezer

🎯
Focusing
View GitHub Profile
[GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Bağlantı Hatası"];
[GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Başarılı"];
[GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Başarısız"];
Path: http://stageyeni.isverenmobilapi.kariyer.net/api/CandidateSearch/Application?page=1&pageSize=30
Client ID : b2e1feeb-d21c-4357-a001-8d6997d3fd79
Client Secret : 9bd4df1c-e072-4c8c-9e40-305e656d7241
AccessToken : 366b2644-cb9e-4877-93de-85a49c1a0438
App version : 2.0
Request body: {
JobIds = (
1585368
// add a tap gesture recognizer
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleTap(_:)))
scnView.addGestureRecognizer(tapGesture)`
func handleTap(gestureRecognize: UIGestureRecognizer) {
// retrieve the SCNView
let scnView = self.view as! SCNView
// check what nodes are tapped
let p = gestureRecognize.locationInView(scnView)
{
id: 123456 // Int
deviceToken: "12312312334235235235235" // String
}
<?php
header('Content-Type: application/json; charset=UTF-8');
ini_set('default_socket_timeout', 900);
$message = "serhat- hobi push";
$nData = array();
$nData["type"] = "normal";
sendNotification("8ba6c6b6dafba6482fde94d33d2a53a0c7ca660409f42200527497111266d882", $message, $nData);
<?php
// deneme notif gönder
// ilk parametre kullanıcıdan alınan token
// ikinci başlık
// üçüncü mesaj body
$rs = send_notification(array("eVvDD-zglFo:APA91bEW_KCwpC2vZ4Gndrr4Lk5rYXOMPaCTxC8wwqr6EVIKIixAHuikVM1vTryCCxg2vylikWdQgCBT3WRTun3_-h3glYHVETReQ1-jz9Xt2HtvfoZlOgqQJrYfEoaWqzrPYJje6Qw7"),
array("message" => "Denemee",
"title" => "titleee"));
echo $rs;
// Here we are creating representables for to take advantage of all representables.
typealias Representables = protocol<TextPresentable, SwitchPresentable, ImagePresentable>
class ProductListCell: UITableViewCell {
@IBOutlet private weak var label: UILabel!
@IBOutlet private weak var switch: UISwitch!
@IBOutlet private weak var imageView: UIImageView!
func configure(presenter: Representables) {
...
struct TextPresentableStruct: TextPresentable {
var text: String = "Sample text..."
}
// Other implementations...
...
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let productCell = tableView.dequeueReusableCell(withIdentifier: ProductCell.cellID, for: indexPath) as! ProductCell
let textStruct = TextPresentableStruct()
public enum SSError {
case error(description: String)
case internetConnectionError
}
public protocol SSRequestRepresentable {
typealias RequestParameters = [String: Any]
typealias JSONBody = [String: Any]
// Creating our end point
enum UserProvider: SSRequestRepresentable {
typealias RequestParameters = [String: Any]
typealias JSONBody = [String: Any]
var baseURL: URL {
return URL(string: "http://sample.com")!
}