This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for f in $(ls ~/github); do alias "$f"="cd ~/github/$f" ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT users.id, users.first_name, users.last_name, users.email, stripe_payments.customer, stripe_payments.source, CAST(SUM(stripe_payments.amount) as FLOAT) / 100 | |
| FROM users | |
| JOIN stripe_payments as sp ON INSTR(sp.source, users.email) > 0 | |
| JOIN stripe_payments ON users.customer_id = stripe_payments.customer | |
| WHERE stripe_payments.customer != '' | |
| AND sp.customer = '' | |
| GROUP BY users.email; | |
| /* SELECT users.id, users.first_name, users.last_name, users.email, stripe_payments.customer, stripe_payments.source, CAST(SUM(stripe_payments.amount) as FLOAT) / 100 | |
| FROM users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT idn, first_name, last_name, email, phone, COUNT(users.email) as courses | |
| FROM users | |
| INNER JOIN registrations ON users.id = registrations.user_id | |
| GROUP BY users.email | |
| HAVING COUNT(users.email) < 3 AND COUNT(users.email) > 1 | |
| ORDER BY courses DESC, cast(idn as Number) ASC; |
- Put app in maintenance mode on Heroku
- Download backup of database in mLab
- Copy database to DO Droplet
scp backup.tgz root@x.x.x.x:~/ - SSH into droplet and unzip the file
tar zxvf backup.tgz - Inside the unzipped directory, rename the database directory to
parties/mv backup/database-name/ backup/parties
- Install Mono
- Also available through Homebrew
brew install mono
- Install Visual Studio Code
- Also available through Homebrew Cask
brew cask install visual-studio-code - Install
codecommand in terminal following these instructions
| Control | Prefix | Example |
|---|---|---|
| Label | lbl | lblSurname |
| TextBox | txt | txtSurname |
| DataGrid | dg | dgResults |
| GridView | gv | gvResults2 |
| Button | btn | btnSave |
| ImageButton | iBtn | iBtnSave |
| Hyperlink | lnk | lnkHomePage |
| DropDownList | ddl | ddlCompany |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Intermediate Midterm | |
| //Please fork this gist. Complete it, and remember to save often! | |
| // 1. How do you make comments and why do you make them? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Turn back now. You are not supposed to see this. |