https://www.jetbrains.com/help/phpstorm/2016.2/live-templates.html
Quick import like: import something from 'some/package';
| @ECHO OFF | |
| ECHO Upload to FTP | |
| ECHO Written by: Jason Faulkner | |
| ECHO SysadminGeek.com | |
| ECHO. Improved by ecos | |
| ECHO. | |
| REM Usage: | |
| REM UploadToFTP [/L] FileToUpload | |
| REM |
| Windows PowerShell | |
| Copyright (C) 2015 Microsoft Corporation. All rights reserved. | |
| PS C:\Development\Server\EasyPHP\data\localweb> docker-machine ls | |
| error getting URL for host default: Something went wrong running an SSH command! | |
| command : ip addr show dev eth1 | |
| err : exit status 255 | |
| output : | |
| NAME ACTIVE DRIVER STATE URL SWARM |
| <?php | |
| http://stackoverflow.com/questions/3307409/php-pass-by-reference-in-foreach | |
| $a = array ('zero','one','two', 'three'); | |
| foreach ($a as &$v) { | |
| // nothing | |
| echo $v . PHP_EOL; | |
| } |
| // Read more: | |
| // https://camjackson.net/post/9-things-every-reactjs-beginner-should-know | |
| // https://facebook.github.io/react/docs/component-specs.html | |
| // https://medium.com/@joshblack/stateless-components-in-react-0-14-f9798f8b992d#.mwedhclq7 | |
| // https://github.com/ghengeveld/react-redux-styleguide | |
| // ES6 react class stateless component | |
| import React, {PropTypes} from 'react' | |
| export default class Link extends React.Component { |
| // Basic | |
| import Button from 'components/button'; | |
| import Dropdown from 'components/dropdown'; | |
| export default { | |
| Button, | |
| Dropdown | |
| }; |
| // --- comps --- | |
| import React from '"react"'; | |
| const $component$ = () => ( | |
| <div> | |
| $END$ | |
| </div> | |
| ); | |
| export default $component$; |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <div id="daco"></div> | |
| <script> | |
| console.log(daco); | |
| </script> | |
| <script> |
| function * fibon () { | |
| let val1 = 0; | |
| let val2 = 1; | |
| let swap; | |
| yield val1; | |
| yield val2; | |
| while (true) { | |
| swap = val1 + val2; | |
| val1 = val2; | |
| val2 = swap; |
https://www.jetbrains.com/help/phpstorm/2016.2/live-templates.html
Quick import like: import something from 'some/package';
| <html> | |
| <body> | |
| <script> | |
| // Alternative fetch('http://biz.jurosh.local/packages/test.php', {headers: {'Content-Type': 'application/json'}}) | |
| fetch('http://biz.jurosh.local/packages/test.php', {method: 'PUT'}) | |
| .then(data => console.log('DATA!')); | |
| // Accept is like: Here is my request and I would like (to Accept) this response format |