Skip to content

Instantly share code, notes, and snippets.

View mila411's full-sized avatar
🦔

Kenny M Song mila411

🦔
View GitHub Profile
@mila411
mila411 / vue_requirements.txt
Created July 16, 2019 22:03
Django + Vue.jsのサンプルで使用するパッケージ集
Django==2.2.3
django-cors-headers==3.0.2
django-filter==2.2.0
djangorestframework==3.10.0
djangorestframework-jwt==1.11.0
PyJWT==1.7.1
pytz==2019.1
sqlparse==0.3.0
@mila411
mila411 / base.html
Created July 2, 2019 09:35
Djangoで普段使用しているbase.html
{% load static %}<!DOCTYPE html>
<html>
<head>
{% block title_outer %}
<title>{% block title %}{{ site.name }}{% endblock %}</title>
{% endblock %}
{% block meta %}
<meta charset="utf-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
@mila411
mila411 / paging.html
Created July 2, 2019 09:04
Djangoで使用しているページネーションhtml
<ul class="pagination">
{% if page_obj.has_previous %}
<li><a href="?page={{ page_obj.previous_page_number }}">&laquo;</a></li>
{% else %}
<li class="disabled"><span>&laquo;</span></li>
{% endif %}
{% for i in page_obj.paginator.page_range %}
{% if page_obj.number == i %}
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
{% else %}
@mila411
mila411 / .Brewfile
Created June 1, 2019 16:56
HomeBrew installed formulaes
# Brewfile
cask_args appdir: '/Applications'
tap 'caskroom/cask'
tap 'homebrew/bundle'
brew 'azure-cli'
brew 'ctop'
brew 'curl'
brew 'ghq'
brew 'gist'