Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am jakaria712 on github.
  • I am jakaria712 ( on keybase.
  • I have a public key ASAS1qVuyfwUTnC0Qd7IDCmbWvESulV5F4jUrbb1KvwYGwo

To claim this, I am signing this object:

View PY0101EN-4-2-WriteFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:c00f12e0c4702affc94f2f9a9d0b4052
mysql> SELECT, count(*) AS nb_student FROM team t JOIN player p ON = p.team_id GROUP BY name ORDER BY nb_student DESC;
| name | nb_student |
| Gryffindor | 36 |
| Slytherin | 21 |
| Ravenclaw | 15 |
| Hufflepuff | 12 |
4 rows in set (0.00 sec)
rust-play /
Created Dec 12, 2019
Code shared from the Rust Playground
use std::collections::HashSet;
use std::ops::Rem;
fn main() {
let energy = calculate_energy(run_simulation(PUZZLE_INPUT, 1000));
println!("1. energy: {}", energy);
let ticks = run_until_first_state(PUZZLE_INPUT);
println!("2. ticks: {}", ticks);
paydro /
Created Dec 12, 2019
Connect to my local postgres database in python.
import psycopg2
conn = psycopg2.connect()
cur = conn.cursor()
# now you can run queries
# cur.execute("SELECT 1")
# See

1.7.0 (2019-12-12)

  • submit:
    • create yes/no radio group with consistent styling (2bcf1d76)
    • complete conversion from BaseControlValueAccessor to NgxSubFormComponent (e4731005)
  • navigation: update labels per user feedback (4d1d7297)
  • submission:
    • add validation for copyright and distribution (82250e63)
View Portfolio files
Link to GitHub repo:
Link to live site:
View Portfolio files
Link to GitHub repo:
Link to live site:
def logout(request):
if request.method == 'POST':
messages.success(request, 'You are now logged out')
return redirect('index')
You can’t perform that action at this time.