This is mostly a checklist of things that I need to research and automate.
- OpenSSH Hardening:
- Automated Security Updates
- Users/Groups
| ;; Reagent component | |
| (defn new-task-input-component [props] | |
| (let [new-task (subscribe [:get-new-task])] | |
| [view | |
| {:style (assoc (:slide-up styles) :transform [{:translateY (- (:y props))}])} | |
| [input {:style (:input styles) | |
| :default-value @new-task | |
| :auto-focus true | |
| :on-change-text #(dispatch [:set-new-task %]) | |
| :on-submit-editing #(do |
| var webpack = require('webpack'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var path = require('path'); | |
| var folders = { | |
| APP: path.resolve(__dirname, '../app'), | |
| BUILD: path.resolve(__dirname, '../build'), | |
| BOWER: path.resolve(__dirname, '../bower_components'), | |
| NPM: path.resolve(__dirname, '../node_modules') | |
| }; |
This is mostly a checklist of things that I need to research and automate.
| angular | |
| .module('PersonMod', []) | |
| .factory('Person', function () { | |
| function Person() {}; | |
| Person.create = function (data) { | |
| return new Person(data); | |
| }; | |
| return Person; | |
| }) | |
| .service('PersonLoader', [function() { |
| extends: eslint:recommended | |
| plugins: | |
| - output-todo-comments | |
| parserOptions: | |
| ecmaVersion: 8 | |
| env: | |
| node: true | |
| mocha: true | |
| es6: true | |
| rules: |
| function shouldReturnPromise (param) { | |
| return Promise.resolve() | |
| .then(() => { | |
| if (param === undefined) { throw new Error() } // можно кинуть исключение, и промис реджекнется | |
| if (param) { return Promise.resolve(true) } // можно вернуть промис | |
| return false // можно вернуть значение | |
| }) | |
| } |
| // default exports | |
| export default 42; | |
| export default {}; | |
| export default []; | |
| export default foo; | |
| export default function () {} | |
| export default class {} | |
| export default function foo () {} | |
| export default class foo {} |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| /*I've seen a bunch of these around the net (e.g. http://pauginer.com/post/36614680636/invisible-gradient-technique and https://css-tricks.com/a-complete-guide-to-svg-fallbacks/) but they all lacked dealing with positioning of allowed two images to show (the first example).*/ | |
| .thing { | |
| /* Setting source, position, size and no-repeat as per https://developer.mozilla.org/en/docs/Web/CSS/background */ | |
| background: url("../images/Account.png") center left / 22px auto no-repeat; | |
| /* If you understand linear-gradients you will understand SVG too */ | |
| background: linear-gradient(transparent, transparent), url("../images/Account.svg") center left / 22px auto no-repeat; | |
| } | |
| /*However, old Android doesn't like size values in the shorthand (source: http://caniuse.com/#search=background-image) so instead we need to do this:*/ |