Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Tom Victor Tomvictor

🎯
Focusing
View GitHub Profile
@Tomvictor
Tomvictor / auto-complete-django-view.py
Last active Oct 4, 2017
auto-complete-django-view
View auto-complete-django-view.py
def serchView(request):
query = request.GET.get("query")
print(query)
# queryset_list = super(PostListAPIView, self).get_queryset(*args, **kwargs)
queryset_list = Tutorial.objects.all() # filter(user=self.request.user)
if query:
queryset_list = queryset_list.filter(
Q(title__icontains=query) |
Q(content__icontains=query)
).distinct()
View transmitter.c
// Author Tomvictor
// tom@buildfromzero.com
// buildfromzero.com
// this code is only an demo for simple RF communication
// make suitable changes for your appication
// For full code visit https://github.com/Tomvictor/CC2500
#include "include.h"
#include <msp430.h>
#include "lcd.h"
#include "lcd1.h"