This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com | |
gem: --no-ri --no-rdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:bitly: | |
:login: 'moski' | |
:api_key: 'XXXXXXXXXXXXXXX' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Expand Url (JSON) | |
Ex: curl http://xpandurl.com/api/v1/urls/expand_url.json?short_url=http%3A%2F%2Fgoo.gl%2FDRppM | |
Parameters: | |
short_url: The url you want to expand [Required] | |
**/ | |
{ "expand_count":25, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Expand Url (XML) | |
Ex: curl http://xpandurl.com/api/v1/urls/expand_url.xml?short_url=http%3A%2F%2Fgoo.gl%2FDRppM | |
Parameters: | |
short_url: The url you want to expand [Required] | |
--> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Expand Url (JSON) Error: Trying to expand an invalid shortening key | |
Ex: curl http://xpandurl.com/api/v1/urls/expand_url.json?short_url=http%3A%2F%2Fgoo.gl%2FDRppM1111111111 | |
**/ | |
{ "error":"Not Found - '404'", | |
"code":404 } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Expand Url (XML) Error: Trying to expand an invalid shortening key | |
Ex: curl http://xpandurl.com/api/v1/urls/expand_url.xml?short_url=http%3A%2F%2Fgoo.gl%2FDRppM1111111 | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<code>404</code> | |
<error>Not Found - '404'</error> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
Backbone.syncWithoutUpload = Backbone.sync | |
Backbone.syncWithUpload = function(method, model, options) { | |
var methodMap = { | |
'create': 'POST', | |
'update': 'PUT', | |
'delete': 'DELETE', | |
'read' : 'GET' | |
}; | |
var type = methodMap[method]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lifelane.Views.Posts ||= {} | |
class Lifelane.Views.Posts.NewView extends Backbone.View | |
template: JST["backbone/templates/posts/new"] | |
events: | |
"submit #create-post": "save" | |
# The constructor for creating new post. | |
constructor: (options) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
return $.extend($.fn, { | |
customBackboneLink: function(model) { | |
return $(this).find('input:not(:file)').each(function() { | |
var el, name; | |
el = $(this); | |
name = el.attr("name"); | |
model.bind("change:" + name, function() { | |
return el.val(model.get(name)); | |
}); |
OlderNewer