One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# Python implementation of Aho-Corasick string matching | |
# | |
# Alfred V. Aho and Margaret J. Corasick, "Efficient string matching: an aid to | |
# bibliographic search", CACM, 18(6):333-340, June 1975. | |
# | |
# <http://xlinux.nist.gov/dads//HTML/ahoCorasick.html> | |
# | |
# Copyright (C) 2015 Ori Livneh <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); |
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
gem 'react-rails'
Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component
(and thus, prerendering).
Note that jquery-rails
can be removed from Gemfile, the npm version of jquery
and jquery-ujs
will be used instead.
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
require 'benchmark' | |
require 'sidekiq-ent' | |
require 'redis-lock' | |
require 'redis-semaphore' | |
require 'ruby_redis_lock' | |
# monkey patch to remove exponential backoff in pmckee11-redis-lock, | |
# otherwise this benchmark does not complete successfully. | |
class Redis | |
class Lock |
#!/usr/bin/env python | |
import json | |
import time | |
import argparse | |
import boto.sqs | |
from termcolor import cprint | |
module ActiveJobRetryControlable | |
extend ActiveSupport::Concern | |
DEFAULT_RETRY_LIMIT = 5 | |
attr_reader :attempt_number | |
module ClassMethods | |
def retry_limit(retry_limit) | |
@retry_limit = retry_limit |
sudo apt-get update | |
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
sudo apt-get install libfreetype6 libfreetype6-dev -y | |
sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
cd ~ | |
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS /usr/local/share | |
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
We now have everything we need to build a web app, except for images and other binary files. Your application will likely not get a lot of engagement if its not visual. In this lesson, we shall be adding the ability to upload images to your Posts api.
Since this will be a continuation from the class on Deploying to production you are adviced to start by cloning that workspace and then working from there.