{"id":21900881,"url":"https://github.com/phts/snippets","last_synced_at":"2026-04-04T08:40:47.244Z","repository":{"id":10788478,"uuid":"13057854","full_name":"phts/Snippets","owner":"phts","description":"My snippets for Sublime Text 3","archived":false,"fork":false,"pushed_at":"2019-07-30T20:49:31.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T06:42:51.340Z","etag":null,"topics":["sublime-package","sublime-snippets","sublime-text","sublime-text-3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-24T07:42:50.000Z","updated_at":"2019-07-30T20:49:33.000Z","dependencies_parsed_at":"2022-09-01T22:31:22.971Z","dependency_job_id":null,"html_url":"https://github.com/phts/Snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2FSnippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2FSnippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2FSnippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2FSnippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phts","download_url":"https://codeload.github.com/phts/Snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913313,"owners_count":20530817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sublime-package","sublime-snippets","sublime-text","sublime-text-3"],"created_at":"2024-11-28T15:11:13.426Z","updated_at":"2025-12-30T20:04:40.266Z","avatar_url":"https://github.com/phts.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snippets\n\nFor Sublime Text 3.\n\n## Install\n\n### Package Control\n\n1. Open Command Palette \u0026rarr; `Package Control: Add Repository` \u0026rarr; `https://github.com/phts/Snippets`\n2. Open Command Palette \u0026rarr; `Package Control: Install Package` \u0026rarr; `Snippets`\n\n## Content\n\n### Ruby\n\n1. `return … if …`\n1. `return … unless …`\n\n#### Rspec\n\n1. `after … do … end`\n1. `allow(…).to`\n1. `before … do … end`\n1. `context '…' do … end`\n1. `describe '…' do … end`\n1. `described_class`\n1. `expect(…).to`\n1. `it '…' do … end`\n1. `it { should … }`\n1. `it_behaves_like '…'`\n1. `its(…) { should … }`\n1. `let(…) do … end`\n1. `let(…) { … }`\n1. `pending '…'`\n1. `receive(…).with(…).and_return(…)`\n1. `shared_examples '…' do |…| … end`\n1. `should_receive(…).with(…).and_return(…)`\n1. `stub(…).with(…).and_return(…)`\n1. `subject { … }`\n\n### EcmaScript-like languages (JavaScript, TypeScript)\n\n1. `… =\u003e …`\n1. `constructor(…) { … }`\n1. `constructor(props) { … }`\n1. `export default …`\n1. `export … from …`\n1. `export …`\n1. `function … { … }`\n1. `if (…) return …;`\n1. `if (…) { … }`\n1. `import … from …`\n1. `import {…} from …`\n\n#### React\n\n1. `import … from './…'`\n1. `import styled from 'styled-components'`\n1. component template\n1. jest test template\n1. styled-component template\n\n#### Angular 2\n\n1. `@Component({ … })`\n1. `TestBed.configureTestingModule({ … })`\n1. import testing stuff template\n\n#### Jest/Jasmine\n\n1. `afterAll(() =\u003e { … })`\n1. `afterEach(() =\u003e { … })`\n1. `beforeAll(() =\u003e { … })`\n1. `beforeEach(() =\u003e { … })`\n1. `describe(…, () =\u003e { … })`\n1. `describe('when …', () =\u003e { … })`\n1. `expect(…).toEqual(…)`\n1. `await expect(…).resolves.toEqual(…)`\n1. `it(…, () =\u003e { … })`\n1. `jest.mock(…)`\n\n#### jQuery\n\n1. `$(…)`\n1. `$(function() { … })`\n1. `on(…, …, function() { … });`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphts%2Fsnippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphts%2Fsnippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphts%2Fsnippets/lists"}