Edit jquery DataTable 버전확인하기 최신버전인지 항상 확인하자. 아래 예제는 1.10.5 기준이다. event:draw.dt $('#datatable_fixed_column').on( 'draw.dt', function(){ $(".memo-modal").click( click_modal); }); 테이블이 그려질 때 마다 callback...
Interview Vampire Daily

Game Changer & Make Some Noise
Aqua Utopia|海の底で記憶を紡ぐ
Cookie Run:Kingdom Official!
𓃗

Jar Jar Binks Fan Club
Phantogram Three

izzy's playlists!
Cosimo Galluzzi
NASA
The Bowery Presents

shark vs the universe
Noah Kahan
TMBGareOK. The Official They Might Be Giants tumblr
Sweet Seals For You, Always
RMH

roma★

Kiana Khansmith

seen from Malaysia
seen from Belgium

seen from Brazil

seen from United States
seen from United States

seen from United States

seen from United States

seen from Malaysia

seen from Australia
seen from United States
seen from Thailand

seen from Türkiye
seen from Lithuania

seen from India

seen from United States
seen from Indonesia

seen from United States
seen from United States

seen from United Kingdom
seen from Canada
@sgcode-blog
Edit jquery DataTable 버전확인하기 최신버전인지 항상 확인하자. 아래 예제는 1.10.5 기준이다. event:draw.dt $('#datatable_fixed_column').on( 'draw.dt', function(){ $(".memo-modal").click( click_modal); }); 테이블이 그려질 때 마다 callback...

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Django 원하는 column값을 list로 가져오기
Address.objects.all().values_list(“city”, flat=True)
> [“Seoul”, “Tokyo”, “Seoul”]
해당 column 값을 list로 얻고 싶으면 values_list 에 flat=True 옵션 사용
https://www.evernote.com/l/AISMWsCSinNOc7ug_m7OcB0V3v1S_Ewyd2E
서버의 sqlite 로컬에 저장하기
https://www.evernote.com/l/AIT_3u3_XhJK34ZuVVDPd9JhYVoYEJhpARE
Python - Array에서 unique한 data 얻기
중복된 값을 넣을 수 없는 set(집합)의 특징을 이용해서
array의 중복된 값을 제거할 수 있다.
a = [1,1,1,1,1]
list( set( a ) )
결과값: [1]
https://www.evernote.com/l/AIQ-9o_ugK1Ia5ZyDCr4XY5EpdlOQRed-qU
Django - Change Field type & Keep data (필드 타입 변경시 데이터 유지)
https://www.evernote.com/l/AISd6FKpFrlNJLAnm0T19WoiJ0l9EoE8pws

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
clean method을 override해서 Django form에서 validation하기
https://www.evernote.com/l/AITugiPie2RN5ogvXeNipXDRdh43Aw9eWq0
model의 속성값에 따라 select option 선택하기
https://gist.github.com/sgwanlee/e0c543564c9edd828891
Django 1.7에서 migration
https://docs.djangoproject.com/en/1.7/ref/django-admin/#django-admin-makemigrations
South를 잘 사용하고 있었는데, 1.7에서부터는 Django로 흡수된 모양이다.
South에서 shemamigration은 makemigration으로 바뀐셈이다.
$ ./manage.py schemamigration 앱이름 --auto
$ ./manage.py makemigration 앱이름
javascript에서 변수를 키값으로 사용하기
안되는 코드.
var obj ={ varName : varValue };
되는 코드.
var obj ={};obj[varName]= varValue;
jquery dataTable - Ajex 로딩이미지(spinner) 보여주기
기본적으로 "Loading..." 이라는 문구가 나오게되며, 다음과 같이 커스터마이징이 가능하다.
jquery dataTable 1.10.4
https://gist.github.com/sgwanlee/e3c5d17cfe7449bd2b2a

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Virtualenv로 Python/Django 개발환경 setting하기
간단하기 때문에 terminal에서 실행 할 명령어들만 적어둔다.
pip install virtualenv
virtualenv env
source env/bin/activate
이제부터 설치되는 package들은 다른 project에 영향을 미치지 않는다.
Deactivate 명령.
deactivate
jquery dataTable 이용 - Ajax로 dataTable 만들기
Ajax로 data를 받아오기
https://gist.github.com/sgwanlee/84df4e040d1fdec3b634
Ajax로 받아온 data 값에 따라 cell contents를 다르게 하기
https://gist.github.com/sgwanlee/0b3d1bd88ce3313f27f0
Ordering을 넣기.
"order": [[0부터시작되는컬럼수, "desc"또는 "asc"]]
https://gist.github.com/sgwanlee/63d20632fdbddcbad11d
Python dictionary에서 특정 key의 value값이 존재하는지 검사
내가 보기엔 Pyhone의 dictionary는 Ruby의 Hash와 똑같다.
if dic.get('key') == None:
default 값을 다르게 설정할 수 있다.
d.get(key,"empty")
Array에서 특정 조건을 만족하는 element만 선택하기
Array에서 특정 조건을 만족하는 element만 선택하기
results =[t.age for t in mylist if t.person_id ==10]