Skip to content

Instantly share code, notes, and snippets.

View tkmawarire's full-sized avatar
🏠
Working from home

#SpecialForces tkmawarire

🏠
Working from home
View GitHub Profile
{
"openapi": "3.0.3",
"info": {
"title": "Keycloak Admin REST API",
"description": "This is a REST API reference for the Keycloak Admin REST API.",
"version": "1.0"
},
"tags": [
{
"name": "Attack Detection"
@tkmawarire
tkmawarire / JS-LINQ.js
Created March 22, 2021 09:26 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@tkmawarire
tkmawarire / Microsoft Office 2019 RTM GVLK Keys
Created July 15, 2019 07:31 — forked from marwein/Microsoft Office 2019 RTM GVLK Keys
Microsoft Office 2019 RTM default #GVLK (Generic Volume License Key)
GVLKs for KMS and Active Directory-based activation of Office 2019 and Office 2016
Applies to: Volume licensed versions of Office 2019 and Office 2016, including Project and Visio
By default, volume licensed versions of Office 2019 and Office 2016 are installed with a Generic Volume License Key (GVLK).
The GVLK enables Office to automatically discover and activate against your KMS host computer or Active Directory infrastructure.
Important
These license keys can't be used to activate your personal copy of Office.
@tkmawarire
tkmawarire / Event-stream based GraphQL subscriptions.md
Created August 4, 2018 18:41 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@tkmawarire
tkmawarire / activity_main.xml
Created May 16, 2018 21:54 — forked from dadino/activity_main.xml
A CoordinatorLayout layout, with a Google Map that collapse itself. A TabLayout (inside the CollapsingToolbarLayout) provides navigation for the ViewPager, that sits just below the AppBarLayout. The FloatingActionButton is used to go to the next page in the ViewPager.
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
.myDivicon {
background-clip: padding-box;
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.6);
}
.myDivicon div {
width: 30px;
height: 30px;
margin-left: 5px;
margin-top: 5px;
@tkmawarire
tkmawarire / Connectivity.cs
Created January 28, 2018 19:46 — forked from alexrainman/Connectivity.cs
Check device's network connectivity and speed for Xamarin.Android
using System.Threading;
using Android.Content;
using Android.Net;
using Android.Telephony;
using Java.IO;
using Java.Net;
namespace YourNamespace {
/**
@tkmawarire
tkmawarire / shp-write.js
Created October 5, 2017 08:22
Support JSZip 3.0 for mapbox shp-write
(function(f) {
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f()
} else if (typeof define === "function" && define.amd) {
define([], f)
} else {
var g;
if (typeof window !== "undefined") {
g = window
} else if (typeof global !== "undefined") {