Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Vadim Gremyachev vgrem

🏠
Working from home
View GitHub Profile
View data.json
[
{
"id": 1,
"name": "Oslo",
"location": { "lat": 59.923043, "lng": 10.752839 }
},
{
"id": 2,
"name": "Stockholm",
"location": { "lat": 59.339025, "lng": 18.065818 }
@vgrem
vgrem / us-states.json
Created Mar 28, 2020
US States TopoJSON file
View us-states.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vgrem
vgrem / FileUploader.cs
Last active Oct 4, 2019
SharePoint Online REST API chunked file upload
View FileUploader.cs
using System;
using System.Net;
using Newtonsoft.Json.Linq;
namespace SharePoint.FileOperations
{
class FileUploader
{
public static void ChunkedFileUpload(string webUrl, ICredentials credentials, string sourcePath, string targetFolderUrl, int chunkSizeBytes, Action<long, long> chunkUploaded)
{
View MarkerClusterer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View places.json
[{"name":"Brisbane","position":{"lat":-27.4704073,"lng":153.0142954}},{"name":"Sidney","position":{"lat":-33.867888,"lng":151.2012372}},{"name":"Perth","position":{"lat":-31.954654,"lng":115.8399823}}]
@vgrem
vgrem / BatchRequest.cs
Last active Oct 19, 2019
BatchRequest class for msgraph-sdk-dotnet
View BatchRequest.cs
using Microsoft.Graph;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
You can’t perform that action at this time.