Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am jakaria712 on github.
  • I am jakaria712 (https://keybase.io/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 t.name, count(*) AS nb_student FROM team t JOIN player p ON t.id = 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
rust-play / playground.rs
Created Dec 12, 2019
Code shared from the Rust Playground
View playground.rs
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);
}
View LKFT-BGS-JOB1-256.md
@paydro
paydro / pyscopg2.py
Created Dec 12, 2019
Connect to my local postgres database in python.
View pyscopg2.py
import psycopg2
conn = psycopg2.connect()
cur = conn.cursor()
# now you can run queries
# cur.execute("SELECT 1")
# See http://initd.org/psycopg/docs/usage.html
View CHANGELOG.md

1.7.0 (2019-12-12)

Chores
  • 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:
https://github.com/ultraYumm/Portfolio.git
Link to live site:
https://ultrayumm.github.io/Portfolio/.
View Portfolio files
Link to GitHub repo:
https://github.com/ultraYumm/Portfolio.git
Link to live site:
https://ultrayumm.github.io/Portfolio/.
View 2.21_logout.py
def logout(request):
if request.method == 'POST':
auth.logout(request)
messages.success(request, 'You are now logged out')
return redirect('index')
You can’t perform that action at this time.