Skip to content

Instantly share code, notes, and snippets.

View codeinpeace's full-sized avatar

Rasel Jabbar codeinpeace

  • Australia
View GitHub Profile
diff --git a/iPhoneTrackingAppDelegate.m b/iPhoneTrackingAppDelegate.m
index 1d22ecb..4af2bcf 100644
--- a/iPhoneTrackingAppDelegate.m
+++ b/iPhoneTrackingAppDelegate.m
@@ -146,7 +146,7 @@
return NO;
}
- const float precision = 100;
+ const float precision = 10000;
@codeinpeace
codeinpeace / Program.cs
Created May 10, 2016 06:41 — forked from jimmypc92/Program.cs
HttpClient IIS Administration API demo
namespace ConsoleAPIClient
{
using System;
using System.Net;
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
class Program
{
private const string SITES_ENDPOINT = "https://jimmyca-srv2.cloudapp.net:55539/api/webserver/websites";
@codeinpeace
codeinpeace / AngularJS-Windows-Authentication.authentication.js
Created November 6, 2016 11:03 — forked from definitelynotsoftware/AngularJS-Windows-Authentication.authentication.js
AngularJS Windows Authentication Service using .NET Web API and Hot Towel template
angular.module('app')
.factory("authentication", ["$http", "$q", "$window", authentication]);
function authentication($http, $q, $window) {
var user;
function login() {
// check if the user already exists for this session
@codeinpeace
codeinpeace / elasticsearch-nest-geoquery-example.cs
Created June 21, 2019 14:51 — forked from crunchie84/elasticsearch-nest-geoquery-example.cs
Easy example of indexing geo-based domain objects to ElasticSearch via #nest
using Nest;
using System;
using System.Globalization;
namespace elasticsearch_nest_geoindex_demo
{
public class Location
{
public string Name { get; set; }
@codeinpeace
codeinpeace / FileDownloader.cs
Created April 13, 2020 08:55 — forked from yasirkula/FileDownloader.cs
C# Download Public File From Google Drive™ (works for large files as well)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Net;
using System.Text;
/* EXAMPLE USAGE
FileDownloader fileDownloader = new FileDownloader();