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
#!/usr/bin/env python3 | |
#----------------------------------------------- | |
# used to swallow a terminal window in i3 | |
# | |
# INSTALL | |
# Install python 3 and install i3ipc libary | |
# pip3 install i3ipc | |
# download this scrript and put it to your i3 config folder and run | |
# chmod +x $HOME/.config/i3/i3-swallow.py |
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
#!/usr/bin/env python3 | |
#----------------------------------------------- | |
# used to swallow a terminal window in i3 | |
# | |
# INSTALL | |
# Install python 3 and install i3ipc libary | |
# pip3 install i3ipc | |
# download this scrript and put it to your i3 config folder and run |
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
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
// 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
//disable angular xeditable disable-permission-xedit="permission" | |
angular.module("pmt").directive("disablePermissionXedit", function(UserService) { | |
function compile(el, attr) { | |
if (!UserService.hasPermissionBool(attr.disablePermissionXedit)) { | |
var hasDirective = el[0].querySelectorAll("[editable-text]"); | |
[].forEach.call(hasDirective, function(el) { | |
el.removeAttribute('editable-text'); | |
}); | |
hasDirective = el[0].querySelectorAll("[editable-select]"); | |
[].forEach.call(hasDirective, function(el) { |