Head on over to your YouTube live Events page (https://www.youtube.com/my_live_events).
Create a new live event that is unlisted (or private) and of Custom type.
Under Basic ingestion choose 1500 Kbps - 4000 kbps (720p).
Check the Enable 60fps box.
| Service: 00001800-0000-1000-8000-00805f9b34fb | |
| Characteristic: 00002a00-0000-1000-8000-00805f9b34fb | |
| READ | |
| b'LYWSD02' | |
| Characteristic: 00002a01-0000-1000-8000-00805f9b34fb | |
| READ | |
| b'\x00\x00' | |
| Service: 00001801-0000-1000-8000-00805f9b34fb | |
| Characteristic: 00002a05-0000-1000-8000-00805f9b34fb | |
| READ INDICATE |
Head on over to your YouTube live Events page (https://www.youtube.com/my_live_events).
Create a new live event that is unlisted (or private) and of Custom type.
Under Basic ingestion choose 1500 Kbps - 4000 kbps (720p).
Check the Enable 60fps box.
| """ | |
| Add mypy type-checking cell magic to jupyter/ipython. | |
| Save this script to your ipython profile's startup directory. | |
| IPython's directories can be found via `ipython locate [profile]` to find the current ipython directory and ipython profile directory, respectively. | |
| For example, this file could exist on a path like this on mac: | |
| /Users/yourusername/.ipython/profile_default/startup/typecheck.py |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| def print_confusion_matrix(confusion_matrix, class_names, figsize = (10,7), fontsize=14): | |
| """Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap. | |
| Note that due to returning the created figure object, when this funciton is called in a | |
| notebook the figure willl be printed twice. To prevent this, either append ; to your | |
| function call, or modify the function by commenting out the return expression. |
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
| /** | |
| * Orginal http://stackoverflow.com/questions/23122088/colored-boxed-with-letters-a-la-gmail | |
| * Used to create a {@link Bitmap} that contains a letter used in the English | |
| * alphabet or digit, if there is no letter or digit available, a default image | |
| * is shown instead. | |
| * | |
| * Only English language supported. | |
| */ | |
| public class LetterBitmap { |
| public class AndroidApplication extends MultiDexApplication { | |
| public static final String TAG = AndroidApplication.class.getSimpleName(); | |
| @Override | |
| public void onCreate() { | |
| super.onCreate(); | |
| registerComponentCallbacks(new ComponentCallback()); | |
| } | |
| private class ComponentCallback implements ComponentCallbacks2 { |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
So we're working on creating Android Material Awesome, a library which will hopefully incorperate the benefits of Material Design, Twitter's Bootstrap, and FontAwesome. What we really wanted is a project other people can easily include into their projects using gradle dependencies. To do this we needed to create a standalone library project so we could make it as lightweight as possible for including as a dependency, and a sample app that would use it for testing. These are the steps we took to get started in Android Studio (version 1.1).
The first thing we needed to do was to create two new projects, with all the default settings (Blank Activity etc). One for our sample app, and one for our library. We added both of ours into the same GitHub repo, however you can save them wherever you like.
| /* | |
| * Copyright (C) 2014 skyfish.jy@gmail.com | |
| * | |
| * 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 |