jq is useful to slice, filter, map and transform structured json data.
brew install jq
| <ST3>/Packages/User/Macros/toogle_comment.sublime-macro | |
| [ | |
| { | |
| "command": "toggle_comment", | |
| "args": {"block": false } | |
| }, | |
| { | |
| "command": "move", | |
| "args": {"by": "lines", "forward": true } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Comments</string> | |
| <key>scope</key> | |
| <string>source.php</string> | |
| <key>settings</key> | |
| <dict> |
| <?php | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\Exception\ConnectException; | |
| use GuzzleHttp\Exception\RequestException; | |
| use GuzzleHttp\Handler\CurlHandler; | |
| use GuzzleHttp\HandlerStack; | |
| use GuzzleHttp\Psr7\Request as Psr7Request; | |
| use GuzzleHttp\Psr7\Response as Psr7Response; | |
| use Psr\Log\LoggerInterface; | |
| const MAX_RETRIES = 2; |
| #!/usr/bin/env php | |
| <?php | |
| if ($argc < 3) { | |
| die("Usage: ./jtt.php ISSUE-1 30m optional comment here\n"); | |
| } | |
| $username = 'EMAIL_GOES_HERE'; | |
| $token = 'API_KEY_HERE'; // see https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/ | |
| $team = 'TEAM_NAME_HERE'; |
| var jq = document.createElement('script'); | |
| jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| // ... give time for script to load, then type (or see below for non wait option) | |
| jQuery.noConflict(); |
| /* https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en */ | |
| #ChatTabsPagelet > div > div > div.uiToggle { | |
| position: static; | |
| } | |
| #ChatTabsPagelet div.fbNubFlyout.fbDockChatTabFlyout.uiContextualLayerParent { | |
| bottom: 0; | |
| left: -1325px; | |
| } |
| <?php | |
| namespace League\Skeleton; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Routing\Router; | |
| class SkeletonServiceProvider extends ServiceProvider | |
| { | |
| /** |
| <?php | |
| trait EventGenerator | |
| { | |
| protected $pendingEvents = array(); | |
| protected function raise($event) | |
| { | |
| $this->pendingEvents[] = $event; | |
| } |
PhpStorm 7.0x
Create a file ~/.local/share/applications/jetbrains-phpstorm.desktop
With the following value: