React ui
material ui http://www.material-ui.com/#/components/badge
react bootstrap http://gcanti.github.io/resources/tcomb-react-bootstrap/playground/playground.html
http://react-bootstrap.github.io/components.html#navbars
complementary tools https://github.com/facebook/react/wiki/Complementary-Tools
awesome-react https://github.com/enaqx/awesome-react#boilerplates
forms https://github.com/insin/newforms
kanban in js http://webix.com/demos/
react swal htt
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'; | |
import { Provider } from 'react-redux'; | |
import { applyMiddleware, compose, createStore } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import rootReducer from './src/reducers'; | |
const loadDevTools = () => | |
process.env.NODE_ENV === 'development' && typeof window !== 'undefined' && window.devToolsExtension | |
? window.__REDUX_DEVTOOLS_EXTENSION__ && | |
window.__REDUX_DEVTOOLS_EXTENSION__() |
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 how to automatically delete cached image previews from your Mastodon instance if they are older than 7 days. | |
Log in as your "mastodon" User or log in as root and then change to the "mastodon" user, who runs Mastodon: | |
# su - mastodon | |
Open crontab: | |
$ crontab -e | |
... and add these lines to your crontab: |
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
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
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
module.exports = function(grunt) { | |
// 1. All configuration goes here | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist: { | |
options: { | |
loadPath: require('node-bourbon').includePaths, | |
style: 'compressed' | |
}, |
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
{ | |
"name": "Bourbon Test", | |
"version": "1.0.0", | |
"repository": "", | |
"devDependencies": { | |
"node-bourbon": "~1.0.0", | |
"grunt": "~0.4.4", | |
"grunt-contrib-sass": "~0.7.3" | |
} | |
} |