Skip to content

Instantly share code, notes, and snippets.

View yoniLavi's full-sized avatar
:octocat:
Figuring things out

Yoni Lavi yoniLavi

:octocat:
Figuring things out
View GitHub Profile
@yoniLavi
yoniLavi / angular-jqlite.adoc
Created June 16, 2017 12:19 — forked from esfand/angular-jqlite.adoc
Angular jqLite

Angular jqLite

jQuery and Angular

Angular doesn’t depend on jQuery. In fact, the Angular source contains an embedded lightweight alternative: jqLite. Still, when Angular detects the presence of a jQuery version in your page, it uses that full jQuery implementation in lieu of jqLite. One direct way in which this manifests itself is with Angular’s element abstraction. For example, in a directive you get access to the element that the directive applies to:

@yoniLavi
yoniLavi / djangolight_onefile.py
Last active February 27, 2017 16:19 — forked from richardadalton/djangolight_onefile.py
Example of simplest possible Django Project
# Based on the book 'Lightweight Django'
# by Mark Lavin & Julia Elman
# See the following Repo for this example broken into multiple files.
# https://github.com/richardadalton/djangolight
from django.core.management import execute_from_command_line
from django.conf import settings
from django.conf.urls import url
from django.http import HttpResponse