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 8000
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
I 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 |