HCT is a color model developed by [Google][material-hct]. It aims to solve a problem related to generating color palettes with good contrast. While HCT may seem like a revolutionary color model, the idea behind it is quite simple, take the perceptually uniform color model CAM16 and combine it with the CIE Lab's lightness.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Josemi Rodríguez | |
-- Script en SQL para convertir los ficheros "juridicas_1.csv", "juridicas_2.csv", y "convocatorias.csv" en una base de datos. | |
-- Uso: Se ejecuta "sqlite3 <nombre_base_datos>" y dentro de la interfaz de comandos de SQLite se escribe ".read crear_bd.sql" | |
-- La aplicación presupuestaria es una fecha con texto extra. | |
-- Por ejemplo "2022-03-3321-46203", cuando la fecha de concesión fue 24/03/2022 | |
create table juridicas( | |
id integer not null, | |
id_convocatoria integer not null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOP HALF FIRST ROLL ODD. BOTTOM HALF FIRST ROLL EVEN. FOR NEXT ROLLS IF USING REGULAR DICE 5 OR 6 IS ROLL AGAIN | |
1,1,1,1,1 abandon | |
1,1,1,1,2 ability | |
1,1,1,1,3 able | |
1,1,1,1,4 about | |
1,1,1,2,1 above | |
1,1,1,2,2 absent | |
1,1,1,2,3 absorb | |
1,1,1,2,4 abstract | |
1,1,1,3,1 absurd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> // Robert Nystrom | |
#include <stdio.h> // @munificentbob | |
#include <stdlib.h> // for Ginny | |
#define r return // 2008-2019 | |
#define l(a, b, c, d) for (i y=a;y\ | |
<b; y++) for (int x = c; x < d; x++) | |
typedef int i;const i H=40;const i W | |
=80;i m[40][80];i g(i x){r rand()%x; | |
}void cave(i s){i w=g(10)+5;i h=g(6) | |
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Principles of Adult Behavior
- Be patient. No matter what.
- Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
- Never assume the motives of others are, to them, less noble than yours are to you.
- Expand your sense of the possible.
- Don’t trouble yourself with matters you truly cannot change.
- Expect no more of anyone than you can deliver yourself.
- Tolerate ambiguity.
- Laugh at yourself frequently.
You can use this class to realize a simple sectioned grid RecyclerView.Adapter
without changing your code.
The RecyclerView
has to use a GridLayoutManager
.
This is a porting of the class SimpleSectionedListAdapter
provided by Google
If you are looking for a sectioned list RecyclerView.Adapter
you can take a look here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.? | |
import java.io.File; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.StatFs; | |
import com.squareup.picasso.Downloader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Implementation of the Wright, Richmond, Odlyzko and McKay (WROM) | |
algorithm for the enumeration of all non-isomorphic free trees of a | |
given order. Rooted trees are represented by level sequences, i.e., | |
lists in which the i-th element specifies the distance of vertex i to | |
the root.""" | |
import sys |