Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| # first install pgsql with home brew | |
| brew install postgresql | |
| # at this point, you need to be sure you have /usr/local/bin before /usr/bin on your $PATH | |
| # to see, run: | |
| brew doctor | |
| # if doctor does not complain about this issue you can pass this step. | |
| # prepend /usr/local/bin to your PATH in your ~/.bash_profile |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| (void) argc; | |
| (void) argv; | |
| //stores the last two terms, and the new sum | |
| int terms[] = {1, 2, 3}; | |
| //stores indeces used to access the above array, |
| #! /usr/bin/env python3 | |
| from functools import lru_cache | |
| from itertools import count, takewhile | |
| numbers = count(1) | |
| MAX = 4000000 | |
| @lru_cache(maxsize=None) | |
| def fib(n) : |
| #! /usr/bin/env ruby | |
| first = 0 | |
| second = 1 | |
| i = 0 | |
| sum = 0 | |
| limit = 4000000 | |
| while i <= limit | |
| i = first + second |
| -module(problem_2). | |
| -export([solve/1]). | |
| -define(LIMIT, 4000000). | |
| %% Normalizing the start value, need to start with an odd value and enter tail recursion | |
| solve(Start) when Start rem 2 == 0, Start > 0 -> solve(Start - 1, Start, 0); | |
| solve(Start) -> solve(Start, Start + 1, 0). | |
| %% guard against the limit and drop out of recursion if we hit it | |
| solve(Prev, Next, Sum) when Prev >= ?LIMIT; Next >= ?LIMIT -> Sum; | |
| %% Sum even values |