Skip to content

Instantly share code, notes, and snippets.

View SebDeclercq's full-sized avatar

Sébastien Declercq SebDeclercq

View GitHub Profile
@thuwarakeshm
thuwarakeshm / check_password.py
Last active May 1, 2025 06:38
Streamlit with Django
def check_password():
"""Returns `True` if the user had a correct password."""
def password_entered():
"""Checks whether a password entered by the user is correct."""
user = authenticate(
username=st.session_state['username'],
password=st.session_state['password']
)
@rxaviers
rxaviers / gist:7360908
Last active July 20, 2025 01:09
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use myPKM::Schema;
use Lucy::Analysis::PolyAnalyzer;
use utf8;
package LawDB::Schema::Result::LawVersion;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
LawDB::Schema::Result::LawVersion
use utf8;
package LawDB::Schema::Result::ArticleIdx;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
LawDB::Schema::Result::ArticleIdx
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use Data::Dump;
use FindBin;
use lib "$FindBin::Bin/../lib";
<div id="law" class="roundies">
<% laws = lawvs.first.lawid %>
<% IF laws.size %>
<% FOREACH law IN laws %>
<h1><% law.title %></h1>
<p><% law.presc %>, <% law.country %>
<% END %>
<% FOREACH lawv IN lawvs %>
<i>(<% lawv.date %>)</i></p>
<% END %>