Skip to content

Instantly share code, notes, and snippets.

View TomOrth's full-sized avatar
💻
Living life

Tom Orth TomOrth

💻
Living life
View GitHub Profile
<!-- flat style used on dialogs -->
<Button
android:id="@+id/my_flat_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/flat"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:textColor="@color/app_body_text"
style="?borderlessButtonStyle" />
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 16, 2024 07:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@iPaulPro
iPaulPro / include_list_viewpager.xml
Last active March 7, 2024 11:13
CollapsingToolbarLayout with TabLayout
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ 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
@srujun
srujun / chairmans_teams.py
Created April 17, 2014 05:38
A Python script that runs on The Blue Alliance's v2 API to summarize the teams competing for the Chairman's award at the 2014 FIRST's Robotics Competition.
#!/usr/bin/env python
import urllib.request
import json
import pprint
URL = 'http://www.thebluealliance.com/api/v2/'
HEADER_KEY = 'X-TBA-App-Id'
HEADER_VAL = 'frc1816:scouting-machine:1'
@rxaviers
rxaviers / gist:7360908
Last active June 17, 2024 00:05
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@TomTasche
TomTasche / AndroidManifest.xml
Last active May 11, 2023 20:00
OAuth flow using the AccountManager on Android
<!-- ... -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<!-- ... -->
@jeffrafter
jeffrafter / handler.js
Created April 2, 2010 20:59
Simple HTTP Server and Router in node.js
exports.createHandler = function (method) {
return new Handler(method);
}
Handler = function(method) {
this.process = function(req, res) {
params = null;
return method.apply(this, [req, res, params]);
}
}