This file contains 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
#!/bin/bash | |
# use AG search with rofi | |
# | |
#------------ CONFIG ----------------# | |
# It support search text in symlink folder so you can add your symlink to this folder | |
SEARCH_DIRECTORY="$HOME/Desktop" | |
DIRECTORY_SHORTCUT=( | |
"~/Downloads" | |
"~/Documents" |
This file contains 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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
This file contains 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
$margin-list: 0 2 5 10 15 20; | |
@each $mg in $margin-list { | |
.mx-#{$mg} { | |
margin-left: #{$mg}px !important; | |
margin-right: #{$mg}px !important; | |
} | |
.my-#{$mg} { | |
margin-top: #{$mg}px !important; |
This file contains 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
import 'package:flutter/material.dart'; | |
class GoodListScreen extends StatefulWidget { | |
static const routeName = 'GoodListScreen'; | |
GoodListScreen({Key key}) : super(key: key); | |
_GoodListState createState() => _GoodListState(); | |
} | |
class _GoodListState extends State<GoodListScreen> { |
This file contains 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
// truy van 1 truong nao` do' boi? deepPopulate | |
.deepPopulate('user.business',{populate:{'user' :{select:'displayName profileImageURL business'},'user.business': { select: 'url'}}}) | |
//truy van 1 thanh phan nao` do' trong 1 mang | |
if( req.query.suburb){ | |
searchQuery.suburbs = {$elemMatch: {name: req.query.suburb, enabled: true}}; | |
} | |
This file contains 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
export namespace Data11 { | |
export type PlatformEnum = 'android' | 'ios' | 'windows'; | |
export const PlatformEnum = { | |
Android: 'android' as PlatformEnum, | |
Ios: 'ios' as PlatformEnum, | |
Windows: 'windows' as PlatformEnum | |
} | |
} |
This file contains 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
import { Directive, ElementRef, Input } from '@angular/core'; | |
@Directive({ | |
selector: '[preloadImage]' | |
}) | |
export class PreloadImage { | |
private _sourceImage: string; | |
private _errorImage: string; | |
private | |
@Input('preloadImage') set sourceImage(url: string) { |
This file contains 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
.center-block { | |
display: flex; | |
align-items: center; | |
} |
This file contains 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
##Run IIS in folder | |
"C:\PROGRA~2\IISEXP~1\IISEXP~1.EXE" /path:"F:\workspace\project\web\ShopAdmin\ShopAdmin\ShopAdmin.Web" /port:9090 /clr:v4.0 |
This file contains 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
try { | |
Regex regexObj = new Regex(@"library/(\d*)", RegexOptions.Multiline); | |
resultString = regexObj.Match(subjectString).Groups[1].Value; | |
Console.WriteLine(resultString); | |
} catch (ArgumentException ex) { | |
// Syntax error in the regular expression | |
Console.WriteLine(ex.StackTrace); | |
} |