I hereby claim:
- I am peketamin on github.
- I am peketamin (https://keybase.io/peketamin) on keybase.
- I have a public key ASAjWnO2sh4WV9znCF2rDgm5gIDtZAYK8_vOjePQgIQEyAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class HatebuLongTitler { | |
| constructor () { | |
| HatebuLongTitler.makeStyle(); | |
| HatebuLongTitler.applyStyle(); | |
| } | |
| static makeStyle() { | |
| const newRule = ` | |
| .style-headline:not(.search-url-nothing) .entrylist-main .entrylist-contents-title { | |
| white-space: none!important; |
| if(typeof(String.prototype.trim) === "undefined") | |
| { | |
| String.prototype.trim = function() | |
| { | |
| return String(this).replace(/^\s+|\s+$/g, ''); | |
| }; | |
| } | |
| class PCHateBuCommentStyle { |
| import java.awt.*; | |
| import java.awt.event.*; | |
| public class Rei26 extends Frame { | |
| private int oldx = 0, oldy = 0; | |
| public Rei26() { | |
| setSize(400, 300); | |
| addWindowListener(new WindowAdapter() { | |
| public void windowClosing(WindowEvent e) { | |
| System.exit(0); |
| package cat | |
| import ( | |
| "bytes" | |
| ) | |
| func buf(ss []string) string { | |
| var b bytes.Buffer | |
| for _, s := range ss { | |
| b.WriteString(s) |
| from django.core.validators import ValidationError # type: ignore[attr-defined] | |
| from django.core.validators import RegexValidator | |
| ## validators.py | |
| phone_number_validator = RegexValidator( | |
| regex=r"^[0-9-()+ ]{9,20}$", message="入力可能文字は半角の、数字、ハイフン、括弧のみ. 9文字以上, 20文字以下." | |
| ) | |
| ## models.py |
| from pathlib import PosixPath | |
| from django import forms | |
| from django.conf import settings | |
| from django.contrib import admin | |
| from my_app.models import Item | |
| class ItemForm(forms.ModelForm): |
| # source .bashrc | |
| test -r ~/.bashrc && . ~/.bashrc | |
| # LANG | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=$LANG |
brew install [email protected] brew install openssl
update ~/.bash_profile following the instraction that shows after installation above.
poetry install
| import requests | |
| url = 'http://localhost:8000/xxx/unsubscribe/xxx' | |
| session = requests.session() | |
| res_get = session.get(url) | |
| resp_post = session.post( | |
| url, | |
| data={"csrfmiddlewaretoken" : session.cookies['csrftoken']}, | |
| headers={'referer': url} |