Skip to content

Instantly share code, notes, and snippets.

View vinod1988's full-sized avatar
💭
OpenToWork

Vinod Vishwakarma vinod1988

💭
OpenToWork
  • Mumbai
View GitHub Profile
/*
* Copyright (C) 2010 Neil Davies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#import <QuartzCore/QuartzCore.h>
@interface ArrowLayer : CALayer
@property (nonatomic) CGFloat thickness;
@property (nonatomic) CGFloat startRadians;
@property (nonatomic) CGFloat lengthRadians;
@property (nonatomic) CGFloat headLengthRadians;
@property (nonatomic, strong) UIColor *fillColor;

iCal Geek Talk, turn away now, don't do this, it's the geek way hushed whisper about iCal.

my BS ver 1.0

the problem

  • I use iphone calendar and sync calendar to Snow Leopard, long live the beast!

  • No Google calendar.

@vinod1988
vinod1988 / gist:e9f9fa8c12aaba4a41ec
Created December 15, 2014 10:41
Write a php webservice to send the request iphone app.
Can any one help me, how to create a php web service to send the web service request to iphone app. for example,
iphone send the request to php web service it was working for me fine. but my need is php web service send the request to
iphone app. Can please any one help for this scnerio.
@vinod1988
vinod1988 / FileUploader.swift
Created November 20, 2015 16:53 — forked from ncerezo/FileUploader.swift
Alamofire multipart upload
//
// FileUploader.swift
//
// Copyright (c) 2015 Narciso Cerezo Jiménez. All rights reserved.
// Largely based on this stackoverflow question: http://stackoverflow.com/questions/26121827/uploading-file-with-parameters-using-alamofire/28467829//
import Foundation
import Alamofire
private struct FileUploadInfo {
@vinod1988
vinod1988 / build-index.html
Created December 10, 2015 11:51 — forked from palaniraja/build-index.html
Download build files
<!DOCTYPE html>
<html>
<head>
<title>My awesome app</title>
</head>
<body>
<h2>beta builds</h2>
<a href="itms-services://?action=download-manifest&amp;url=http://dl.dropbox.com/u/1001/manifest.plist">Awesome App v 0.0.16</a></body>
<h2>alpha builds</h2>
@vinod1988
vinod1988 / manifest.plist
Created December 10, 2015 11:51 — forked from palaniraja/manifest.plist
App Manifest file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@vinod1988
vinod1988 / Router.swift
Created December 28, 2016 11:22
Uploading a file with SWIFT via POST multipart/form-data (PHP)
import Foundation
import Alamofire
public enum Router:URLRequestConvertible {
public static let baseUrlString:String = "http://testapi.example.com"
case Upload(fieldName: String, fileName: String, mimeType: String, fileContents: NSData, boundaryConstant:String);
var method: Alamofire.Method {
switch self {
case Upload:
@vinod1988
vinod1988 / README.md
Created April 11, 2017 06:28 — forked from FokkeZB/README.md
URL schemes for iOS and Android (2/2)
@vinod1988
vinod1988 / PhpFireBaseNotificationSample.php
Created April 10, 2018 05:38 — forked from MohammadaliMirhamed/PhpFireBaseNotificationSample.php
Simple PHP FireBase (FCM) script showing how to send an Android push notification. Be sure to replace the SERVER_API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call http://sample.com/PhpFireBaseNotificationSample.php?id=THE_DEVICE_REGISTRATION_ID The main Code For GCM is https://gist.github.com/prime…
<?php
#API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = $_GET['id'];
#prep the bundle
$msg = array
(
'body' => 'Body Of Notification',