Skip to content

Instantly share code, notes, and snippets.

@nickaknudson
nickaknudson / TimePreference.java
Last active May 10, 2021 04:16
TimePicker DialogPreference for Android
package com.xxx.xxx.preference;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import android.content.Context;
import android.content.res.TypedArray;
@ddewaele
ddewaele / Android Studio Day1.md
Last active October 7, 2016 11:12
Some notes on my first day with Android Studio

##Introduction

The goal of this article was to take a look at the latest Android Studio (v0.2.5) and see where it would take me in a single day.

For me an IDE should be simple, straightforward and hassle-free. The big pain in Android development has always been the IDE and more specifically the tooling around it. Somehow the Eclipse plugins never worked well with the core Android tools and build system. Third party tools and plugins to offload dependency management to Maven were also far from ideal.

In short, it was a difficult marriage that ultimately led to choosing IntelliJ IDEA as the preferred platform for Android Development Tooling.

Unfortunately this again left developers with a 0.x product, meaning it's going to be very rough around the edges. It's a very difficult decision to make for developers. Stick with something you know but that is far from ideal, or go with something entirely new that is supposed to be better, but in reality could also take a very long time before it reaches some kind of

@siddMahen
siddMahen / prim.py
Created January 4, 2014 22:03
Prim's algorithm, in Python.
from sys import argv
import re
# open the file and get read to read data
file = open(argv[1], "r");
p = re.compile("\d+");
# initialize the graph
vertices, edges = map(int, p.findall(file.readline()))
graph = [[0]*vertices for _ in range(vertices)]
@tegandbiscuits
tegandbiscuits / cloudSettings
Last active February 18, 2021 22:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-18T22:56:11.694Z","extensionVersion":"v3.4.3"}
@codebycliff
codebycliff / cloudSettings
Created May 10, 2019 18:57 — forked from tegandbiscuits/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-03T15:00:53.348Z","extensionVersion":"v3.2.7"}