Primer paso ir a google maps y crear un recorrido:
Copiar cuidadosamente la URL que se genera y pegarla en https://mapstogpx.com/
Descargamos un archivo.gpx
/* | |
* Solution of Josephus Problem using Bitwise Operation | |
* Shifting the most-significant set bit of n to the | |
* least significant bit will return the safe position. | |
* | |
* ====================== EXPLANATION ====================== | |
* | |
* n (41) the number of people standing in the circle | |
* n = 101001 | |
* |
Primer paso ir a google maps y crear un recorrido:
Copiar cuidadosamente la URL que se genera y pegarla en https://mapstogpx.com/
Descargamos un archivo.gpx
#!/usr/bin/env python3 | |
import sys | |
import os | |
def curl_to_ab(curl_cmd: list, num: int=200, cur: int=4) -> str: | |
""" | |
Translate a cURL command created by Chrome's developer tools into a | |
command for ``ab``, the ApacheBench HTTP benchmarking tool. |
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered! | |
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it. | |
$ brew install elixir | |
$ mix local.hex # Answer y to any Qs | |
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw... | |
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3 | |
# ** Answer y to any Qs ** | |
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez |
var negabinaryApp = angular.module('negabinaryApp', []); | |
negabinaryApp.filter('negabinary', function() { | |
return function (decimal) { | |
if (isNaN(decimal)) return "not a number"; | |
var negabinary = []; | |
var base = -2; |
upstream project { | |
server 22.22.22.2:3000; | |
server 22.22.22.3:3000; | |
server 22.22.22.5:3000; | |
} | |
server { | |
listen 80; | |
location / { |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install
will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
function Foo(who) { | |
this.me = who; | |
} | |
Foo.prototype.identify = function() { | |
return "I am " + this.me; | |
}; | |
function Bar(who) { | |
Foo.call(this,"Bar:" + who); |
# searches from ./ | |
find . -type f|xargs perl -pi -e 's/\t/ /g' |