Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Alisher Ergashev AliwerErgashev

🏠
Working from home
  • Freelancer
  • Uzbekistan, Tashkent
Block or report user

Report or block AliwerErgashev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View settings.json
{
"editor.fontSize": 14,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.minimap.enabled": false,
"editor.quickSuggestions": {
"comments": true,
"other": true,
"strings": true
View gist:b51f740f48b9303f4eee022a32a22413
Angular.ng-template
johnpapa.angular2
CoenraadS.bracket-pair-colorizer
EditorConfig.editorconfig
dbaeumer.vscode-eslint
donjayamanne.githistory
ecmel.vscode-html-css
xabikos.javascriptsnippets
PKief.material-icon-theme
Equinusocio.vsc-material-theme
@AliwerErgashev
AliwerErgashev / materialDesignBoxShadow.css
Last active Sep 12, 2017
Material design box shadow
View materialDesignBoxShadow.css
body {
background: #e2e1e0;
text-align: center;
}
.card {
background: #fff;
border-radius: 2px;
display: inline-block;
height: 300px;
@AliwerErgashev
AliwerErgashev / gist:56a748626cd2b1f204155f977a3a3756
Created Dec 4, 2017
How to restore unreadable USB flash drive under Mac OS X
View gist:56a748626cd2b1f204155f977a3a3756
1. Open Terminal and go to /dev
$ cd /dev
2. Now it’s time to find your flash drive in /dev. Typically it’s /dev/diskN where N could be 0, 1, 2, 3, etc
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI 209.7 MB disk0s1
@AliwerErgashev
AliwerErgashev / gist:30bc5424c0824567a92880d3c3a71b49
Created Dec 29, 2017
Angular Pipes Filtering on Multiple Keys
View gist:30bc5424c0824567a92880d3c3a71b49
<ul>
<li *ngFor="let item of _items | filter:{ label: filterText, description: filterText } : false">{{ item.value }} - {{ item.label }} - {{ item.description }}</li>
</ul>
@Pipe({
View checkIsMobile
let isMobile;
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|kej
View gist:2a0c65e2a5e694040c398a071bfe314d
// Place your settings in this file to overwrite the default settings
{
"editor.minimap.enabled": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
View gist:6bbf898ac36abdae6af2081e34762d07
// Place your settings in this file to overwrite the default settings
{
"editor.minimap.enabled": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
@AliwerErgashev
AliwerErgashev / filter.pipe.ts
Created May 10, 2018
Angular Pipes Filtering on Multiple Keys
View filter.pipe.ts
<ul>
<li *ngFor="let item of _items | filter:{ label: filterText, description: filterText } : false">{{ item.value }} - {{ item.label }} - {{ item.description }}</li>
</ul>
@Pipe({
name: 'filter'
View user-agent.js
exports.getUserAgent = (user) => {
let isMobile;
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|
You can’t perform that action at this time.