Skip to content

Instantly share code, notes, and snippets.

@Costo
Costo / Program.cs
Last active October 19, 2021 20:22
Benchmark comparing different intersection methods
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace Benchmark
{
public class WhereAnyVsJoinVsHashSet
{
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Cirrious.MvvmCross.Android.Views;
using Cirrious.MvvmCross.Binding.Android.Views;
using MobSales.Logic.ViewModels;
@Costo
Costo / BarclaysCycleHire.js
Created January 21, 2012 02:24
Node.js script to extract data from Barclays Cycle Hire bike map
var https = require('https'),
vm = require('vm');
https.get({ host: 'web.barclayscyclehire.tfl.gov.uk', path: '/maps' }, function (res) {
/* Will store chunks of data while
we read the response */
var data = [],
/* This array will store individual map markers
as they are being created by the script */
markers = [],