Custom Mattermost style, styled with Stylus
- Dracula At Night theme
- Go crazy with H6 tag
- Shake up and down with the 3 monkeys: 🙈 🙉 🙊
- Rotate with trollface
var express = require('express'), | |
app = express(), | |
hr = require('express-console-warning'); | |
app.use(hr.LOG('Hello world') | |
.text('This is a blue text', {color: 'blue', fontSize: 'x-large'}) | |
.text('and this is red', {color: 'red', fontSize: 'x-large'}) | |
.image('http://memesvault.com/wp-content/uploads/Best-Meme-Faces-14.png',0.1) | |
.build()); | |
app.use(express.static('client')); |
#!/bin/bash | |
# remove stopped container | |
docker rm -f $(docker ps -a -q | grep -v $(docker ps -q)) | |
# remove none images | |
docker rmi $(docker images | grep "<none>" | awk '{print $3}') |
import React from 'react'; | |
import { connect } from 'react-redux'; | |
function CustomComponent() { | |
return <div></div>; | |
} | |
const mapStateToProps = state => { return {}; }; | |
const mapDispatchToProps = dispatch => ( return {}; }; | |
export default connect(mapStateToProps, mapDispatchToProps)(CustomComponent); |
import React from 'react'; | |
import gameReducer from './gameReducer'; | |
import injectReducer from 'inducer'; | |
class CustomComponent extends React.Component { | |
// component logic here | |
} | |
export default injectReducer({ | |
game: gameReducer | |
})(CustomComponent); |
import React from 'react'; | |
import gameReducer from './gameReducer'; | |
import injectReducer from 'inducer'; | |
class CustomComponent extends React.Component { | |
// component logic here | |
} | |
export default injectReducer({ | |
game: gameReducer | |
})(CustomComponent); |
interface User { | |
/** | |
* @faker {{internet.userName}} | |
*/ | |
userName: string; | |
gender: 0; | |
/** | |
* @faker date.past | |
*/ | |
birthday: number; |
Custom Mattermost style, styled with Stylus
Based on lambda-pure, but added a time based symbol, depending the time of your day!
TIME_BASED_PROMPT_SYMBOL="${PURE_PROMPT_SYMBOL:-λ}"
HOUR_OF_THE_DAY=$(date +"%H")
if [[ HOUR_OF_THE_DAY -eq "12" || HOUR_OF_THE_DAY -eq "13" ]]; then
# lunch
TIME_BASED_PROMPT_SYMBOL="🍚"
elif [[ HOUR_OF_THE_DAY -eq "17" || HOUR_OF_THE_DAY -eq "18" ]]; then
function foo() { | |
var a = foobar(); | |
var b = 8; | |
return 10; | |
} |
function foo(){ | |
foobar(); | |
return 10; | |
} |