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 / 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
@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 / 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 / "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 / 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>
[{"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 / 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",
{
"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 / 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 ();
@saamerm
saamerm / successAnimation.json
Created March 26, 2019 02:00
Json file for the success sign
{"v":"5.1.16","fr":24,"ip":0,"op":96,"w":300,"h":300,"nm":"tick","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"char Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":66,"s":[0],"e":[100]},{"t":72}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[150.033,158.225,0],"ix":2},"a":{"a":0,"k":[103.372,183.677,0],"ix":1},"s":{"a":0,"k":[45.748,45.748,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[13.337,14.078],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.78017799527,0.78017799527,0.78017799527,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.388000009574,0.423999980852,1],"ix":4},"o":{"a":0,"k":20,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic -