Skip to content

Instantly share code, notes, and snippets.

View saamerm's full-sized avatar
💭
Answering Questions, & Questioning Answers

Saamer Mansoor saamerm

💭
Answering Questions, & Questioning Answers
View GitHub Profile
@saamerm
saamerm / HelperImageExtension.cs
Last active February 23, 2019 00:10
Trial at Converting UIBarButtonSystemItem to UIImage in Xamarin.iOS C#
// Solution provided by @dalexsoto from https://gitter.im/xamarin/xamarin-macios
[DllImport (Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")]
public extern static IntPtr IntPtr_objc_msgSend (IntPtr receiver, IntPtr selector);
public static UIImage GetImage (UIBarButtonSystemItem systemItem)
{
var tempItem = new UIBarButtonItem (systemItem);
// Add to toolbar and render it
var bar = new UIToolbar ();
{
"name": "Donate App",
"description": "This app helps you donate to worthy causes.",
"icons": [{
"src": "https://www.sammobile.com/wp-content/uploads/2017/03/app_icon.png",
"sizes": "192x192"
}]
}
@saamerm
saamerm / manifest.json
Last active September 17, 2017 15:17
App banner android
{
"name": "HackerWeb",
"short_name": "HackerWeb",
"start_url": ".",
"display": "standalone",
"background_color": "#fff",
"description": "A simply readable Hacker News app.",
"icons": [{
"src": "http://www.free-icons-download.net/images/ater-symbol-icon-24651.png",
"sizes": "96x96",
[{"id":3,"name":"Item1","isComplete":false,"labLocation":"and","billTo":"and","reportTo":"and","aeName":"and","jdeCode":"2354","percentOfProject":"0.5","loginsAssociated":"12414","dollarValue":"3453456","requestDate":1499336576,"newAEName":"and","percOfPrjRequested":0.5,"aeComments":"Comments"}]
@saamerm
saamerm / index.html
Created February 19, 2017 04:21
KGNA 2017 Attendees
<center>Click on a marker to display attendees in that city.</center><div id="map"></div>
@saamerm
saamerm / "Encapsulation"-Notes on getter and setter
Created September 16, 2016 22:50
"Encapsulation"-Notes on getter and setter
//Getter or Accessor ethod (Setter methodd is also called Mutator)
namespace Testing
{
public class SomeClass
{
private int someVariable;
public int getSomeVariable(){
return someVariable;
}
@saamerm
saamerm / RelativeLayout.cs
Last active July 1, 2016 16:45
Using Relative Layout with an alternate method of calling the class.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace App6
{
public class App : Application
{
public App()
@saamerm
saamerm / StackLayout.cs
Last active July 1, 2016 16:05
This gist describes how to use the stacklayout in Xamarin Forms
//This code was placed in the App.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace App6
{
public class App : Application
{
@saamerm
saamerm / AppContentPage.cs
Last active June 29, 2016 20:08
This gist was made with the help of Nicholas Johnson to enable the ContentPage tutorial from Xamarin.com to work https://developer.xamarin.com/api/type/Xamarin.Forms.ContentPage/
//ContentPage Tutorial
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace App6