| # Filter down to viewing a single process when running `top` in terminal | |
| top -pid `pgrep "<process_name>"` | |
| # Output the number of lines per file in a directory that have "spec" in their name | |
| find client-src/apps/main/matters -type f|xargs wc -l |grep spec |
Listeners registered to scopes and elements are automatically cleaned up when they are destroyed, but if you registered a listener on a service, or registered a listener on a DOM node that isn’t being deleted, you’ll have to clean it up yourself or you risk introducing a memory leak.
Best Practice: Components should clean up after themselves. You can use the $onDestroy() AngularJS component lifecycle hook to run a clean-up function when the component is removed. An older way of doing this would have been to add an event handler for element.on('$destroy', …) or scope.$on('$destroy', …) for an AngularJS Directive.
I have a
element.on("click", (event) => {...});
>```
| {"lastUpload":"2019-10-21T16:31:30.783Z","extensionVersion":"v3.4.3"} |
| { | |
| // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
| // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
| // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
| // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
| // Placeholders with the same ids are connected. | |
| // Example: | |
| "Print to console": { | |
| "scope": "javascript,typescript", |
http://localhost:3000/admin/accounts/2 > "Features" tab http://localhost:3000/admin/tasks > > "Set Feature Flags For Accounts"
- Open Segment to view events fired from beta instances.
- Log into this beta using email address demo@clio.com ...
- On the Segment debugger page, a new "page" event has been received.
- Click on the event in the list
- In the panel that opens on the right, click on the "Raw" tab.
- Within the data of
properties, the data forurlcontains apaththat has a value that is correct and not equal to "REDACTED".
| #!/usr/bin/env ruby | |
| directory = ARGV[0] || './client-src' | |
| file_extension = ARGV[1] || '.coffee' | |
| def get_matching_files_in(directory, file_extension) | |
| manage_ui_files = [] | |
| accounting_files = [] | |
| payment_files = [] | |
| billing_files = [] |