Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 00:50 (UTC -05:00)
View GitHub Profile
ADC.Tool.ZoomTo = function() {
var doc = document,
defaultValue = "i.e. City, State, ZIP code",
geocoder, input, map = ADC.Map.getMap(),
pointFeature, urlBase = "http://rs1.adc4gis.com/img/icons/other/";
var vector = new OpenLayers.Layer.Vector("Zoom To");
map.addLayer(vector);
map.setLayerIndex(vector, 0);
function plotLocation(coords, zoom, location) {
//
// UIButtonBox.h
//
// Created by Jose Antonio Lopez on 28/11/13.
// Copyright (c) 2014 Asenit Technologies SL. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButtonBox : UIButton
using System;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using System.Drawing;
namespace TwinCoders.Utils
{
public abstract partial class ParentViewController
{
// ****************************************************************************
// <copyright file="Extensions.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009-2014
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>[email protected]</email>
// <date>18.03.2014</date>
// <project>GalaSoft.MvvmLight</project>
// <web>http://www.galasoft.ch</web>
@dbeattie71
dbeattie71 / gist:ae1ec99947f2f6c4419a
Created October 8, 2014 19:57
SQLite and Windows Phone
////https://github.com/oysteinkrog/SQLite.Net-PCL/issues/25
////http://developer.nokia.com/community/wiki/How_to_use_SQLite_in_Windows_Phone
////https://www.mail-archive.com/[email protected]/msg82665.html
////http://andywigleyblog.azurewebsites.net/?tag=windows-8-1
var sqLiteConnectionFactory = SimpleIoc.Default.GetInstance<ISQLiteConnectionFactory>();
var tempStoreDirectoryQuery = string.Format("PRAGMA temp_store_directory = '{0}';",
ApplicationData.Current.LocalFolder.Path);
var sqLiteConnection = sqLiteConnectionFactory.GetConnection();
sqLiteConnection.Execute(tempStoreDirectoryQuery);
using System;
using System.Net;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System;
namespace Gooroovster.Core.Common
{
[Flags]
public enum BindingFlags
{
None = 0,
Instance = 1,
Public = 2,
using System;
using System.Reflection;
namespace SharpSerializer
{
public static class ExtensionMethods
{
public static PropertyInfo GetProperty(this Type type, String propertyName)
{
return type.GetTypeInfo().GetDeclaredProperty(propertyName);
#region
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using SQLitePCL;
#endregion
using System;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using System.Drawing;
namespace TwinCoders.Utils
{
public abstract partial class ParentViewController
{