Skip to content

Instantly share code, notes, and snippets.

@nabam
nabam / gtk.css
Created September 14, 2017 11:47
Dark tabs in terminator
.terminator-terminal-window .notebook tab {
background-color: #222;
padding: 0.2em;
border: 0;
border-color: #444;
border-style: solid;
border-width: 1px;
}
.terminator-terminal-window .notebook tab:active {
@nabam
nabam / gtk.css
Created February 13, 2019 09:06
Dark tabs in terminator
.terminator-terminal-window notebook tab {
background-color: #222;
padding: 0.2em;
border: 0;
border-color: #444;
border-style: solid;
border-width: 1px;
}
.terminator-terminal-window notebook tab:checked {
#include <chrono>
#include <thread>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include "opencensus/stats/stats.h"
#include "absl/strings/string_view.h"
package com.metrologicgroup.x4_events_ingestion.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.google.auto.value.AutoValue;
import java.io.Serializable;
#!/usr/bin/env python
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#!/usr/bin/env python3
import sys
import json
events = []
device_state = {}
for line in sys.stdin:
events.append(json.loads(line))
### Keybase proof
I hereby claim:
* I am nabam on github.
* I am nabam (https://keybase.io/nabam) on keybase.
* I have a public key ASCIiynDeyWEPdmKHeoU8ehWmjRei4L_Qjw-JmMQQmiKrwo
To claim this, I am signing this object:
import http.server
import socketserver
import threading
import queue
import json
CALLBACK_SERVER_PORT = 5000
CALLBACK_TIMEOUT = 10 # seconds
callback_queues = {}
<!DOCTYPE html>
<html lang=en>
<head>
<title>Swagger UI</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css">
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
</head>
<body>
<div class="swagger-ui" id="swagger-ui"></div>
<script>