{"id":18320203,"url":"https://github.com/gedex/yasnip","last_synced_at":"2025-04-09T14:23:56.998Z","repository":{"id":4755405,"uuid":"5905435","full_name":"gedex/yasnip","owner":"gedex","description":"Yet Another Snip","archived":false,"fork":false,"pushed_at":"2012-09-25T09:24:04.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:24:26.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Jroland/kafka-net","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gedex.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":"2012-09-21T18:13:03.000Z","updated_at":"2013-10-25T17:30:09.000Z","dependencies_parsed_at":"2022-08-28T07:12:13.869Z","dependency_job_id":null,"html_url":"https://github.com/gedex/yasnip","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/gedex%2Fyasnip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fyasnip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fyasnip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fyasnip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/yasnip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054348,"owners_count":21039982,"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":[],"created_at":"2024-11-05T18:15:32.086Z","updated_at":"2025-04-09T14:23:56.979Z","avatar_url":"https://github.com/gedex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"YASnip, Yet Another Snip\n============\n\nThis repository is intended as my attempt to accomplish Snip from [Nikhil's Article](http://howtonode.org/node-redis-fun).\nThe pastebin-like idea is still the same:\n\n1. You visit http://localhost:3000/add\n2. Post the snippet, and choose the language\n3. Get a unique URL http://localhost/id\n\nHere, nerve is replaced with express and redis-node-client is replaced with node_redis.\n\n## Running YASnip\n\nMake sure pygmentize is available in your PATH. Install dependencies in package.json:\n````bash\nnpm install\n````\n\nRun `redis-server` and then run YASnip:\n````js\nnode app.js\n````\n\n## Todo\n\n* Show line number from pygmentize\n* Save creation datetime\n* Index page should list newest/popular snips. Require creation datetime to be saved (see above)\n* Use hash to store snip and its attributes. Use HMSET and HMGET to set and retrieve the hash\n* Copy/duplicate snip feature\n* Use config module to evaluate running env\n* Once config is used, app specific feature can be toggled and/or configured\n  in config.js module. Things like comment provision (Disqus, FB Comment, etc),\n  switch from pygmentize command-line to http://pygments.appspot.com/, etc\n* Content negoitation requesting `text/javascript; charset=utf-8` should receive\n  javascript response for embedding (Gist is the best example)\n* YASnip API. References:\n  * http://dpaste.com/api/v1/\n  * http://developer.github.com/v3/gists/\n* YASnip clients. References:\n  * https://github.com/zodman/dpaster\n  * http://www.vim.org/scripts/script.php?script_id=2519\n  * https://github.com/defunkt/gist\n\n## LICENSE - \"MIT License\"\n\nCopyright (c) 2012 Akeda Bagus \u003cadmin@gedex.web.id\u003e\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fyasnip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fyasnip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fyasnip/lists"}