Skip to content

Instantly share code, notes, and snippets.

View Github-network-graph.js
function hide(selector) { $(selector).setAttribute('style','display:none')}
function remove(selector) { $(selector).remove()}
function remove_class(selector) { $(selector).setAttribute('class','')}
function move_left(count)
var eventObj = document.createEvent("Events");
eventObj.initEvent("keydown", true, true);
eventObj.which = 37; // left key
for (i=0; i < count ; i++) {
sethbergman /
Last active Dec 27, 2021 — forked from dweldon/
Install Docker CE on Linux Mint 19
#!/usr/bin/env bash
set -e
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add - 2>/dev/null
sudo echo "deb [arch=amd64]$(lsb_release -is | tr '[:upper:]' '[:lower:]') bionic stable" > /etc/apt/sources.list.d/docker.list
sudo apt-get -y update
Mygod /
Last active May 5, 2022
Export your Windows Bluetooth LE keys into Linux!
Copyright 2021 Mygod
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
jsmouret / struct.go
Last active Apr 1, 2022
Convert map[string]interface{} to a google.protobuf.Struct
View struct.go
package pb
import (
st ""
// ToStruct converts a map[string]interface{} to a ptypes.Struct
n3wtron / converter.go
Created Jun 28, 2017
golang: grpc Struct converter fom map and golang struct
View converter.go
package util
import (
protobuf_struct ""
mpneuried / Makefile
Last active May 18, 2022
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
View Makefile
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
davemorrissey /
Last active Nov 26, 2021 — forked from gokhanbarisaker/
Picasso decoder for subsampling-scale-image-view
* Created by gokhanbarisaker on 8/30/15.
public class PicassoDecoder implements ImageDecoder
private String tag;
private String picasso;
public PicassoDecoder(String tag, Picasso picasso) {
this.tag = tag;
zokipirlo /
Last active Dec 30, 2021 — forked from lapastillaroja/
DividerItemDecoration. RecyclerView.ItemDecoration simple implementation
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
marcelpinto /
Last active Dec 12, 2019 — forked from blipinsk/
An extension of Android AppBarLayout, that allows to programatically change the CollapsibleToolbarLayout state and receive state changes (collapsed, expanded and idle)
* Copyright 2015 Bartosz Lipinski
* 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
seanKenkeremath / Android Lollipop Widget Tinting Guide
Last active May 12, 2022
How base colors in Lollipop apply to different UI elements
View Android Lollipop Widget Tinting Guide
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
* ripple effect (Lollipop only) -- "colorControlHighlight"
Status Bar:
* background (Lollipop only) - "colorPrimaryDark"