{"id":18911284,"url":"https://github.com/nosami/yasnippet-csharp","last_synced_at":"2026-01-25T07:32:41.022Z","repository":{"id":18902504,"uuid":"22120857","full_name":"nosami/yasnippet-csharp","owner":"nosami","description":"A collection of C# snippets for yasnippet","archived":false,"fork":false,"pushed_at":"2014-08-11T20:32:57.000Z","size":200,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-24T16:47:09.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nosami.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-22T21:10:32.000Z","updated_at":"2021-06-01T18:27:57.000Z","dependencies_parsed_at":"2022-07-16T17:00:37.181Z","dependency_job_id":null,"html_url":"https://github.com/nosami/yasnippet-csharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nosami/yasnippet-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosami%2Fyasnippet-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosami%2Fyasnippet-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosami%2Fyasnippet-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosami%2Fyasnippet-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nosami","download_url":"https://codeload.github.com/nosami/yasnippet-csharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nosami%2Fyasnippet-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T09:48:34.694Z","updated_at":"2026-01-25T07:32:40.994Z","avatar_url":"https://github.com/nosami.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"yasnippet-csharp\n================\n\nA collection of C# snippets for yasnippet with automatic namespace and classname insertion.\n\nThe following elisp snippet is required for namespace generation. (Thanks to  http://cupfullofcode.com/snippet-expansion-with-yasnippet/)\n\n```elisp\n\n(defun find-project-root ()\n  (interactive)\n  (if (ignore-errors (eproject-root))\n      (eproject-root)\n    (or (find-git-repo (buffer-file-name)) (file-name-directory (buffer-file-name)))))\n\n(defun find-git-repo (dir)\n  (if (string= \"/\" dir)\n      nil\n    (if (file-exists-p (expand-file-name \"../.git/\" dir))\n        dir\n      (find-git-repo (expand-file-name \"../\" dir)))))\n\n\n(defun file-path-to-namespace ()\n  (interactive)\n  (let (\n        (root (find-project-root))\n        (base (file-name-nondirectory buffer-file-name))\n        )\n    (substring (replace-regexp-in-string \"/\" \"\\.\" (substring buffer-file-name (length root) (* -1 (length base))) t t) 0 -1)\n    )\n  )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnosami%2Fyasnippet-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnosami%2Fyasnippet-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnosami%2Fyasnippet-csharp/lists"}