Skip to content

Instantly share code, notes, and snippets.

View AndriiTsok's full-sized avatar
💡
Creating

Andrii Tsok AndriiTsok

💡
Creating
View GitHub Profile
@martinnormark
martinnormark / DynamicHelper.cs
Created May 2, 2012 08:11
C# Dynamic extension methods for serializing to XML
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
/// <summary>
/// Extension methods for the dynamic object.
/// </summary>
@leommoore
leommoore / nginx_basics.md
Last active May 27, 2024 09:17
Nginx Basics

#Nginx Basics for Ubuntu

Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.

##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:

apt-get update
apt-get install python-software-properties

apt-get upgrade

@awidegreen
awidegreen / vim_cheatsheet.md
Last active June 17, 2024 03:41
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@mrmarcondes
mrmarcondes / homework5.js
Created November 30, 2012 19:48
10gen: M101 MongoDB for Developers - Homework 5.1 - 5.4
// homework 5.1
db.posts.aggregate([
{$project: {"_id": 0,
"comments.author": 1
}},
{$unwind: "$comments"},
{$group: {"_id": "$comments.author",
sum: {"$sum": 1}
}},
{$sort: {"sum": -1}},
// an abstract helper class
public abstract class MvxAnnotationManager
{
private readonly MKMapView _mapView;
private IEnumerable _itemsSource;
private IDisposable _subscription;
public Dictionary<object, MKAnnotation> _annotations = new Dictionary<object, MKAnnotation>();
protected MvxAnnotationManager(MKMapView mapView)
{
# Real-Time Location System : Ekahau RTLS (RFID-over-Wi-Fi™) Architecture #
### WHAT ###
>
- **Ekahau Vision™ Business Intelligence Software** : Ekahau Vision™ software calculates Ekahau Wi-Fi tag (active RFID) locations using patented algorithms based on probabilities, not crude triangulations methods
- An **open API** that simplifies integration into your ecosystem of apps and devices
- Use the **Ekahau Mobile Vision™ application** to respond to and close out location-based events on the go, Award-winning project management, installation and Customer Service is included.
- **Ekahau Wi-Fi tag** : 10+ varieties of small, battery-powered and re-chargeable RTLS tags, sensors and badges. Ekahau’s A4 and A4+ **active RFID tags** act as small computers that transmit location data to the Ekahau Vision™ software platform
![Ekahau W4 Wristband Tag](http://www.ekahau.com/userData/ekahau/why-ekahau/wi-fi-tags.png)<br>
@nisrulz
nisrulz / proguard-rules.pro
Created April 5, 2015 06:14
Android : Proguard Rules for a Library Module
#
# This ProGuard configuration file illustrates how to process a program
# library, such that it remains usable as a library.
# Usage:
# java -jar proguard.jar @library.pro
#
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack
# traces later on. Keep a fixed source file attribute and all line number
# tables to get line numbers in the stack traces.
@NVentimiglia
NVentimiglia / ItemStack.cs
Last active October 31, 2021 21:06
Need a Items control or a repeater for Xamarin ? Here you go. Bind to observable collections, define your data template and enjoy.
// MIT License
// Nicholas Ventimiglia
// 2016-9-19
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
@korakot
korakot / colab_download.py
Created November 15, 2017 08:40
Google colab file upload/download
files.download('example.txt') # from colab to browser download