# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
# app/controllers/users/password_controller.rb | |
class Users::PasswordsController < Devise::PasswordsController | |
def resource_params | |
params.require(:user).permit(:email, :password, :password_confirmation) | |
end | |
private :resource_params | |
end |
""" | |
DemoTime | |
======== | |
About | |
----- | |
DemoTime is a simple app that searches the Twitter API for what your | |
namesake or any other name(someone with your name, other than you) might have said. | |
It uses the twitter Search API to search for stuff; once that is found, it sends you a | |
message of the tweet to your phone; it will only send a tweet that has more than 5 |
/* | |
* File: FindRange.java | |
* Name: | |
* Section Leader: | |
* -------------------- | |
* This file is the starter file for the FindRange problem. | |
*/ | |
import java.util.ArrayList; |
/* | |
* File: PythagoreanTheorem.java | |
* Name: | |
* Section Leader: | |
* ----------------------------- | |
* This file is the starter file for the PythagoreanTheorem problem. | |
*/ | |
import acm.program.*; |
import random | |
word_basket = [] | |
def split_string(str, delimiter): | |
return str.split(delimiter) | |
def guess_word(word_basket, random_int=None): |
My user settings:
{
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Carousel Template · Bootstrap</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le styles --> |
# | |
group = core | |
admin-port = 13000 | |
smsbox-port = 13001 | |
admin-password = maw | |
status-password = maw | |
admin-allow-ip = "127.0.0.1" | |
log-level = 1 | |
box-allow-ip = "*.*.*.*" |
<VirtualHost *:80> | |
WSGIDaemonProcess site-2 python-path=/path/to/applicaiton/ user=${APACHE_RUN_USER} group=${APACHE_RUN_USER} threads=25 | |
WSGIProcessGroup site-2 | |
ServerName example.com | |
ServerAlias www.example.com | |
WSGIScriptAlias / /home/user/prod/applicaiton/application/wsgi.py |