Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arshad115/today-i-learned

:memo: TIL - Today I Learned - Sharing small snippets of code or tips which I learn and share. I am a software engineer, web developer, android developer and a data scientist. Not bragging, just learning them. ;)
https://github.com/arshad115/today-i-learned

android angular css easyphp firebase firebase-console git javascript learning node nodejs php programming share sql til tips-and-tricks today-i-learned todayilearned vuejs

Last synced: 17 days ago
JSON representation

:memo: TIL - Today I Learned - Sharing small snippets of code or tips which I learn and share. I am a software engineer, web developer, android developer and a data scientist. Not bragging, just learning them. ;)

Awesome Lists containing this project

README

        

---
permalink: "/today-i-learned/readme/"
readme: true
---

# Today I learned
> Today I Learned

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://arshadmehmood.com)[![forthebadge](https://forthebadge.com/images/badges/for-you.svg)](https://arshadmehmood.com)[![forthebadge](https://forthebadge.com/images/badges/contains-cat-gifs.svg)](https://arshadmehmood.com)[![forthebadge](https://forthebadge.com/images/badges/uses-badges.svg)](https://arshadmehmood.com)

Today I Learned - Sharing and documenting the things I learn on a daily basis. I share tiny snippets of code here which too small for a blog post but fit here. These are tiny things which make a big difference. Over the time they are lost and documenting them along the way would be beneficial for everyone. Many a times, I also come back to my til, because all the information is ordered and easy to access. Contains a cat gif, because, cats make people happy. Scroll to the bottom, to see the cat gif. :D

For a steady stream of TILs and my other blog posts, checkout my website [arshadmehmood.com](https://arshadmehmood.com). To read these tils in a nice, beautiful looking way, read them [here on my blog](https://arshadmehmood.com/today-i-learned/).

_124 TILs and counting..._

---

### Categories

* [Android](#android)
* [Angular 2+](#angular-2)
* [C#](#c)
* [CSS](#css)
* [Docker](#docker)
* [Facebook](#facebook)
* [Firebase](#firebase)
* [Git](#git)
* [Github](#github)
* [Javascript](#javascript)
* [Internet](#internet)
* [JavaScript](#javascript)
* [Jekyll](#jekyll)
* [Nginx](#nginx)
* [Node.js](#nodejs)
* [Other](#other)
* [PHP](#php)
* [Programming](#programming)
* [Python](#python)
* [SQL](#sql)
* [Typescript](#typescript)
* [Vue.js](#vuejs)

---

### Android
- [Circular ImageView with Picasso](android/circular-imageview-with-picasso.md)
- [Create Region in Android Studio](android/create-region-android-studio.md)
- [Load data in webView second time](android/load-data-in-webview-second-time.md)
- [Show logs from TimingLogger](android/show-logs-from-timinglogger.md)
- [String array in XML](android/string-array-in-xml.md)

### Angular 2
- [Add dynamic css style properties](angular2/add-dynamic-css-style-properties.md)
- [Add a Window Resize event listener for a component](angular2/add-window-resize-event-listener-comopnent.md)
- [Add SEO to an Angular App](angular2/add-seo-to-an-angular-app.md)
- [Apply two or more pipes](angular2/apply-more-than-one-pipe.md)
- [Bind local method to Dom event listener](angular2/bind-local-method-to-dom-eventlistener.md)
- [Close Dialog from typescript](angular2/close-dialog-from-typescript.md)
- [Disable closing the dialog on clicking outside the dialog window in Angular](angular5/disable-dialog-close-on-click-outsite.md)
- [Get query parameters](angular2/get-query-parameters.md)
- [Hide an element based on window size](angular2/hide-element-based-on-window-size.md)
- [Pass data to routerLink](angular2/pass-data-to-routerlink.md)
- [Pretty print json object in template](angular2/pretty-print-json-object-in-template.md)
- [Select option with default value](angular2/select-option-with-default-value.md)
- [Safe template data binding with ngOnInit](angular2/ngOnInit-variable-undefined.md)
- [Send multipart form data with post request](angular2/send-multipart-form-data-with-post-request.md)
- [Specify port for ng serve](angular2/specify-port-for-ng-serve.md)
- [Update Data Model from any component or service using @Input Decorator](angular2/update-data-model-from-any-component-service-using-input-decorator.md)
- [Use div contenteditable property with template model binding](angular2/use-div-contenteditable-with-template-model-binding.md)
- [Using and importing custom font](angular2/importing-custom-font.md)

### C#
- [Cast or deserialize a Json object to a class](csharp/cast-json-object-to-class.md)
- [Create a stream from string](csharp/create-a-stream-from-string.md)
- [Create Stream from a Base64 String](csharp/create-stream-from-base64-string.md)
- [Encode/Decode Base64 string](csharp/encode-decode-base64-string.md)
- [LDAP query search filter syntax](csharp/ldap-query-search-filter-syntax.md)
- [Wait N Seconds without blocking ui](csharp/wait-n-seconds-without-blocking-ui.md)

### CSS
- [Float Left/Right with display:flex](css/float-left-right-with-display-flex.md)
- [RTL list with boostrap](css/rtl-list-with-bootstrap.md)
- [Star ratings with percentage](css/star-rating-with-percentage.md)

### Docker
- [Check Postgres db table in Docker](docker/check-postgres-db-table-in-docker.md)
- [Multiple ways to run a Docker container](docker/multiple-ways-to-run-a-docker-container.md)

### Facebook
- [Deeplinking Applinks for Facebook](facebook/deeplinking-applinks-for-facebook.md)

### Firebase
- [Add Cache-Control headers](firebase/add-cache-control-header.md)
- [Get Firebase Project Name](firebase/get-firebase-app-name.md)
- [Where to find Firebase cloud messaging server API key in firebase console](firebase/where-to-find-firebase-cloud-messaging-server-api-key-in-firebase-console.md)

### Git
- [Add or link another git repository as a submodule](git/add-another-repository-as-submodule.md)
- [Clone without folder](git/clone-wtihout-folder.md)
- [Delete local branch](git/delete-local-branch.md)
- [Delete remote branch](git/delete-remote-branch.md)
- [Fix detached submodule head by tracking the right branch](git/fix-detached-head-submodule.md)
- [Ignore local commits and pull repository from the remote branch](git/ignore-local-commits-and-pull.md)
- [Move commits to a new branch](git/move-commits-to-a-new-branch.md)
- [Pull changes from the master or other branch](git/pull-changes-from-the-master-or-other-branch.md)
- [Remove staged files](git/remove-staged-files.md)
- [Revert the latest commit](git/revert-latest-commit.md)
- [Undo git pull](git/undo-git-pull-how-to-bring-repos-to-old-state.md)

### Github
- [Add a license to an exisiting Github Repository](github/add-a-license-to-existing-repository.md)
- [Codeblock highlighting programming languages supported by Github](github/codeblock-highlighting-languages-supported-by-github.md)
- [Get Github Repository size with BASH](github/get-github-repo-size-with-bash.md)

### JavaScript
- [Add an attribute to a json object using spread operator](javascript/add-attribute-to-json-object-using-spread-operator.md)
- [Document getElementById check if not null](javascript/document-getelementbyid-check-if-not-null.md)
- [Filter a Javascript Array](javascript/filter-array.md)
- [Get only unique values from a Javascript Array](javascript/get-unique-array.md)
- [Local Storage](javascript/local-storage.md)
- [Remove class name from element](javascript/remove-class-name.md)
- [Remove element from DOM](javascript/remove-element-from-dom.md)
- [Replace everything in a string before a certain point using regex](javascript/replace-everything-before-a-certain-point-using-regex.md)
- [Trim/Remove first or last character in Javascript](javascript/trim-remove-character-from-start-or-end.md)

### Jekyll
- [Setting up jekyll/Github Pages environment](jekyll/setting-up-jekyll-environment.md)

### Nginx
- [How to test nginx config file](nginx/how-to-test-nginx-config-file.md)

### Node.js
- [Get directory name and filename of the current module in Node.js](nodejs/get-directory-name-and-filename-of-current-module.md)
- [Run npm scripts in parallel or sequentially](nodejs/run-npm-scripts-in-parallel-or-sequentially.md)

### Other
- [Add current user as the owner of a folder to give write permissions](other/add-current-user-as-the-owner-of-a-folder.md)
- [Add a new file type to context menu in Windows 10](other/add-new-file-type-to-context-menu-in-windows-10.md)
- [Configure and connect Mysql Workbench with SSH connection](other/configure-and-connect-mysql-workbench-with-ssh-connection.md)
- [Enable Curl in PHP.ini running on EasyPHP](other/enable-curl-apache-easyphp.md)
- [List installed packages on Linux](other/list-installed-packages-linux.md)
- [Take permissions of a folder using sudo on Linux](other/take-permissions-of-a-folder-sudo.md)

### PHP
- [Allow CORS - Cross origin resource sharing](php/allow-cross-origin-resource-sharing-cors.md)
- [Compress string or data](php/compress-string-data.md)
- [Enable gzip compression](php/enable-gzip-compression.md)
- [Fetch MySql column values as array](php/fetch-mysql-column-values-as-comma-separated-values.md)
- [Install mbstring on Linux](php/install-mbstring-on-linux.md)

### Programming
- [Programming languages case styles](programming/programming-languages-case-styles.md)

### Python
- [Check if list contains unique elements](python/check-if-list-contains-unique-elements.md)
- [Check if string is numeric](python/check-if-string-is-numeric.md)
- [Check if string is a palindrome](python/check-palindrome.md)
- [Combine or merge two pandas Dataframes using a index](python/combine-pandas-dataframes-on-a-index.md)
- [Convert dictionary values or keys to list](python/convert-dictionary-keys-values-list.md)
- [Convert list to dictionary with indexes](python/convert-list-to-dictionary-with-indexes.md)
- [Convert list to string](python/convert-list-to-string.md)
- [Delete key from dictionary](python/delete-key-from-dictionary.md)
- [Docstring for describing functions](python/docstring-for-describing-functions.md)
- [Get a list of dictionary values](python/dictionary-get-list-of-values.md)
- [Enumerate list / get index in for loop](python/enumerate-list.md)
- [For each loop with index](python/for-each-loop-with-index.md)
- [Get json from a URL](python/get-json-from-url.md)
- [Get unique elements from a list](python/get-unique-elements-from-a-list.md)
- [Get unique elements from a list of lists](python/get-unique-elements-from-a-list-of-lists.md)
- [Infinity](python/infinity.md)
- [Iterate over dictionary key value pairs](python/iterate-over-dictionary-key-value-pairs.md)
- [Iterate over nested lists](python/iterate-over-nested-lists.md)
- [Label plot lines in matplotlib](python/label-plot-lines-in-matplotlib.md)
- [Print object to string](python/print-object-to-string.md)
- [Python null object singleton](python/python-null-object-singleton.md)
- [Read json file to pandas Dataframe](python/read-json-file.md)
- [Remove word starting with a specific character](python/remove-word-starting-with-a-specific-character.md)
- [Replace multiple terms from a string](python/replace-multiple-terms-from-a-string.md)
- [Replace URLs using Regex](python/replace-urls-with-regex.md)
- [Reservoir sampling a list](python/reservoir-sampling-a-list.md)
- [Reverse string](python/reverse-string.md)
- [Select columns from a pandas dataframe](python/select-columns-from-a-pandas-dataframe.md)
- [Set difference](python/set-difference.md)
- [Set intersection](python/set-intersection.md)
- [Shallow copy a dictionary](python/shallow-copy-a-dictionary.md)
- [Shuffle list](python/shuffle-list.md)
- [Sort dictionary by value](python/sort-dictionary-value.md)
- [Split dictionary into chunks](python/split-dictionary-into-chunks.md)
- [String starts with a list of strings](python/string-starts-with-a-list-of-strings.md)
- [Strip non-alphabetical or non-alphanumeric characters in a string](python/strip-non-alphabetical-or-non-alphanumeric-characters-in-a-string.md)
- [Trim strings in Python](python/trim-strings-in-python.md)

### SQL
- [Find all tables with a specific column name](sql/find-all-tables-with-a-specific-column-name.md)
- [Return results in json](sql/return-results-in-json.md)
- [Search for a table name in a database](sql/search-for-table-name-in-a-database.md)
- [Select all columns from the joined table and some from the other](sql/select-all-columns-from-joined-table-and-some-from-other-table.md)
- [View table schema using SQL](sql/view-table-schema-using-sql.md)

### Typescript
- [Ignore a typerscript error](typescript/ignore-a-typescript-error.md)

### Vue.js
- [Add dynamic Css Style or Class](vuejs/add-dynamic-css.md)
- [Conditional rendering with if else](vuejs/conditional-rendering-with-if-else.md)
- [OnClick Event Handling](vuejs/onclick-event-handling.md)
- [Optional parameters in Vue Router](vuejs/vue-router-optional-paramters.md)

---
### Catz
![Alt Text](https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif)

## Inspiration
I shamelessly stole this idea from [wajahatkarim3/Today-I-Learned](https://github.com/wajahatkarim3/Today-I-Learned), then I also saw other similar repositories and decided to share my own repo of what I learn everyday.

## Contributing

The best way you can contribute is to support the idea of keeping track of things you learned. Just create a public repo and start writing and sharing notes. This is way better than keeping them to yourself.

## License

© 2018-2019 Arshad Mehmood

This repository is licensed under the MIT license. See `LICENSE` for
details.