Skip to content

Instantly share code, notes, and snippets.

View Classy-Bear's full-sized avatar
🎩
Doing magic, speaking to goblins

David Acevedo Classy-Bear

🎩
Doing magic, speaking to goblins
  • Scotiabank
  • Dominican Republic
  • 10:51 (UTC -04:00)
View GitHub Profile
/**
* {@link WordAdapter} is an {@link ArrayAdapter} that can provide the layout for each list
* based on a data source, which is a list of {@link Word} objects.
*
*/
public class WordAdapter extends ArrayAdapter<Word> {
WordAdapter(@NonNull Context context, ArrayList<Word> wordArrayList) {
// Here, we initialize the ArrayAdapter's internal storage for the context and the list.
// the second argument is used when the ArrayAdapter is populating a single TextView.
//https://stackoverflow.com/questions/50360443/parsing-json-that-has-a-nested-array-of-objects-in-dart
genres = (jsonMap['genres'] as List).map((i) => Genre.fromJson(i)).toList()
///JSON Data
//{
// "adult": false,
// "backdrop_path": "/wrqUiMXttHE4UBFMhLHlN601MZh.jpg",
// "belongs_to_collection": null,
// "budget": 120000000,
// "genres": [
// {
@bradtraversy
bradtraversy / eslint_prettier_airbnb.md
Created July 19, 2019 17:54
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@bradtraversy
bradtraversy / pipenv_cheat_sheet.md
Last active April 1, 2024 03:09
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@bradtraversy
bradtraversy / npmcrashcourse.txt
Last active April 13, 2024 04:54
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@rxaviers
rxaviers / gist:7360908
Last active April 28, 2024 13:14
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: