Skip to content

Instantly share code, notes, and snippets.

@grawity
grawity / GitHub protocol comparison.md
Last active Jun 1, 2022
A comparison of protocols offered by GitHub (for #git on Freenode).
View GitHub protocol comparison.md

Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.

Protocols to choose from when cloning:

plain Git, aka git://github.com/

  • Does not add security beyond what Git itself provides. The server is not verified.

    If you clone a repository over git://, you should check if the latest commit's hash is correct.

@gabriel-dehan
gabriel-dehan / container.html
Created Apr 20, 2012
How to implement a router in Meteor-0.3.2
View container.html
/* It calls the content helper, and then load the Template matching the route :
for exemple, /user/list will load the template "user_list"
It's not optimum but it works
*/
<template name="container">
<div class="container">
{{#content}}
{{/content}}
</div>
</template>
@strathmeyer
strathmeyer / handlebars.object_helpers.js
Created Nov 16, 2011
Handlebars.js helpers to iterate over objects
View handlebars.object_helpers.js
// HELPER: #key_value
//
// Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}}
//
// Iterate over an object, setting 'key' and 'value' for each property in
// the object.
Handlebars.registerHelper("key_value", function(obj, fn) {
var buffer = "",
key;