Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tom Victor Tomvictor

🎯
Focusing
Block or report user

Report or block Tomvictor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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"
You can’t perform that action at this time.