This file contains hidden or 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
var zimride = require('./zimride'); | |
var pointA = {lat: 55.157199, lng: 61.364264}; | |
var pointB = {lat: 55.15791, lng: 61.38864}; | |
var pointC = {lat: 55.153472, lng: 61.364779}; | |
var pointD = {lat: 55.153864, lng: 61.381688}; | |
console.log(zimride.getMinDetourDistance(pointA, pointB, pointC, pointD)); |
This file contains hidden or 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
<settings> | |
<profiles> | |
<profile> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<sign.keystore>${user.home}/keystore/KEYSTORE.keystore</sign.keystore> | |
<sign.alias>ALIAS</sign.alias> | |
<sign.keypass>KEYPASS</sign.keypass> |
This file contains hidden or 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
export ANDROID_HOME=$HOME/android-sdk | |
export PATH=${PATH}:android-sdk/tools:android-sdk/platform-tools |
This file contains hidden or 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
sudo chmod 600 ~/.ssh/id_rsa | |
sudo chmod 600 ~/.ssh/id_rsa.pub | |
sudo chmod 644 ~/.ssh/known_hosts | |
sudo chmod 755 ~/.ssh |
This file contains hidden or 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
db.collection.find().forEach(function(x) { | |
delete x.badField; | |
db.collection.save(x); | |
}) |
This file contains hidden or 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
$(this.el).one("remove", function(){ | |
console.log("Yeah!!!!!!! I can subscribe on view remove"); | |
}); |
This file contains hidden or 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
bundle exec rails server | |
bundle exec rake db:migrate | |
... |
This file contains hidden or 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
var MongoModel = Backbone.Model.extend({ | |
idAttribute: "_id" | |
}); |
This file contains hidden or 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(){ | |
$.yql('select * from geo.places where text="Orlando"', function(response){ | |
console.log(response); | |
}) | |
}); |
This file contains hidden or 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
var Jade = {}; | |
Jade.template = function(templateString) { | |
var jade = require('jade'); | |
return function() { | |
return jade.render(templateString, { | |
locals: arguments[0] | |
}); | |
}; |