- author: Thiago Andrade thiagoh@gmail.com
- license: GPLv3
- description:
- watches the given paths for changes
- and executes a given command when changes occur
- usage:
- watchfiles <paths...>
This file contains hidden or 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 { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
This file contains hidden or 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
| node_modules | |
| dist/ | |
| yarn.lock | |
| wwwroot |
This file contains hidden or 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
| // PhantomJS Cheatsheet | |
| $ brew update && brew install phantomjs // install PhantomJS with brew | |
| phantom.exit(); | |
| var page = require('webpage').create(); | |
| page.open('http://example.com', function() {}); | |
| page.evaluate(function() { return document.title; }); |
This file contains hidden or 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 MatrixMath from 'react-native/Libraries/Utilities/MatrixMath'; | |
| class TransformUtil { | |
| constructor(matrix) { | |
| this.matrix = matrix || MatrixMath.createIdentityMatrix(); | |
| } | |
| perpective(x) { | |
| MatrixMath.reusePerspectiveCommand(this.matrix, x) |
This file contains hidden or 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
| Microsoft Windows [Version 10.0.10586] | |
| [m[32m]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ [92mC:\Users\zkr32[90m | |
| [90m>[m ]9;12\e: | |
| [m[32m]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ [92mE:\[90m | |
| [90m>[m ]9;12\cd E:\Programming\Android\ReactNative\ZKRTestSharedProject | |
| [m[32m]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ [92mE:\Programming\Android\ReactNative\ZKRTestSharedProject[90m | |
| [90m>[m ]9;12\react-native run-android |
This file contains hidden or 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
| [37m[40mMicrosoft Windows [Version 10.0.10586] [m | |
| [37m[40m [m | |
| [32m[40mzkr32@ZKRWS [92m[40mC:\Users\zkr32[37m[40m [m | |
| [90m[40m>[37m[40m e: [m | |
| [37m[40m [m | |
| [32m[40mzkr32@ZKRWS [92m[40mE:\[37m[40m [m | |
| [90m[40m>[37m[40m cd Programming\Android\ReactNative\ZKRTestSharedProject [m | |
| [37m[40m |
This file contains hidden or 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
| [37m[40mMicrosoft Windows [Version 10.0.10586] [m | |
| [37m[40m [m | |
| [32m[40mzkr32@ZKRWS [92m[40mC:\Users\zkr32[37m[40m [m | |
| [90m[40m>[37m[40m cd E:\Programming\Android\ReactNative\ZKRTestSharedProject [m | |
| [37m[40m [m | |
| [32m[40mzkr32@ZKRWS [92m[40mC:\Users\zkr32[37m[40m [m | |
| [90m[40m>[37m[40m e: [m | |
| [37m[40m |
This file contains hidden or 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
| Microsoft Windows [Version 10.0.10586] | |
| [m[32m]9;8;"USERNAME"\@]9;8;"COMPUTERNAME"\ [92mC:\Users\zkr32[90m | |
| [90m$[m ]9;12\dir | |
| Volume in drive C is Windows | |
| Volume Serial Number is A2EF-3521 | |
| Directory of C:\Users\zkr32 | |
| 04/12/2017 04:17 μμ <DIR> . |
This file contains hidden or 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
| var links = []; | |
| var quotes = []; | |
| var tempUrl = []; | |
| var infos = []; | |
| var maxLinks = 10; | |
| var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss'; | |
| var newUrl; | |
| var x = require('casper').selectXPath; |