Skip to content

Instantly share code, notes, and snippets.

View keinix's full-sized avatar

Zack Osborn keinix

View GitHub Profile
@jrumbut
jrumbut / git-commit-word-frequency.sh
Last active March 17, 2020 03:19
Find the most frequently used words in your team's commit messages! Woo!
git log --stat | grep "^ " | tr -d '[:punct:]' | tr ' ' '\n' | tr 'A-Z' 'a-z' | sort | uniq -c | sort -rn
import random
import json
CONTENT_PATH = './content.json'
DEBUG = True
#raw_input = input # Hack for Python 3
class Scene(object):
@keinix
keinix / JavaGsonBasics
Last active July 14, 2017 02:00
Assign Json values to class variables or Map with Gson examples.
public class Main {
public static void main(String[] args) {
Gson gson = new Gson();
String file;
JsonObject jsonObject;
// used in the map example only
Type type = new TypeToken<Map<String, String>>(){}.getType();
FileReader json = null;
@sameeri
sameeri / The Technical Interview Cheat Sheet.md
Created July 24, 2017 13:00 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@sam016
sam016 / AllGattCharacteristics.java
Last active July 5, 2024 15:52
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@cedrickring
cedrickring / ColoredShadow.kt
Last active June 24, 2024 10:26
Draw a colored shadow in Android Jetpack Compose
/*
Copyright 2020 Cedric Kring.
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
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,