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 React from 'react' | |
export class CategoryLayout extends React.Component<any, any> { | |
constructor(props) { | |
super(props); | |
this.state = { | |
selectedItem: 'con1layout1' | |
} | |
} |
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 | |
##################### | |
# author: alfredhot | |
# date: 2021-01-10 | |
# desc: 打包较大的文件夹. 路径下文件夹和文件过多, 在转移位置的时候很容易出问题, 一个文件出错将导致整个复制过程中断. | |
# 所以将路径下包含文件过多的文件夹打包(不将所有文件夹都打包是因为有些文件夹下文件并不多, 打包浪费时间, 将来使用的时候挨个文件夹解压将十分繁琐.) | |
###################### | |
# FOLDER_ARR 装载的数组将包含空格, 所以分隔符临时换做\n | |
IFS=$'\n' |
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
pointer-events: none; |
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
# this is the answer | |
brew install python3 | |
brew postinstall python3 |
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/sh | |
echo `xattr -d -r com.apple.FinderInfo ./*` |
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
db.influencers.aggregate([ | |
{ | |
$match: {ac: 1} | |
}, | |
{ | |
$project: {_id: 1} | |
}, | |
{ | |
$lookup: { | |
from: 'media', |
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
.main-left | |
position: absolute | |
left: 0 | |
top: 0 | |
height: 100% | |
width: $base-width | |
background-color: #3d3c3c | |
color: #e1e1e1 | |
&:before | |
content: '' |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
$rootScope.showAlert= (content, type, fn) -> | |
if fn is null | |
fn = -> | |
null | |
if type is null | |
swal $rootScope.popup.title, content | |
.then fn | |
else | |
swal $rootScope.popup.title, content, type | |
.then fn |
NewerOlder