$ composer create-project laravel/laravel --prefer-dist filepreviews-laravel-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
By default django-filter uses Django's ORM built-in field lookups. If you want to globally accept specific lookups you can do the following:
from django_filters import filters
filters.LOOKUP_TYPES = ['gt', 'gte', 'lt', 'lte', 'custom_lookup_type']
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInitAttrs(options) { | |
console.log('didInitAttrs', options); | |
}, | |
didUpdateAttrs(options) { | |
console.log('didUpdateAttrs', options); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from django_filters import filters | |
filters.LOOKUP_TYPES = [ | |
('', '---------'), | |
('exact', 'Is equal to'), | |
('not_exact', 'Is not equal to'), | |
('lt', 'Lesser than'), | |
('gt', 'Greater than'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
FAIL: test_ec_verify_should_return_false_if_signature_invalid (tests.test_algorithms.TestAlgorithms) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jpadilla/Projects/Personal/pyjwt/tests/test_algorithms.py", line 186, in test_ec_verify_should_return_false_if_signature_invalid | |
self.assertFalse(result) | |
AssertionError: True is not false |
- Fiber Broadband Available
- Cable Broadband Available
- DSL Broadband Available
- [Fixed Wireless Broadband Available](http://107.21.115.37/arcgis/rest/services/PR_map/MapServe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "ad-test", | |
"image": "http://placehold.it/3000x2000", | |
"text": "Advertising", | |
"link": "http://barrandiando.com" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.posts.find({ | |
source: 'designer_news', | |
createdAt: { | |
$gte: ISODate("2014-07-07T00:00:00Z"), | |
$lt: ISODate("2014-07-08T00:00:00Z") | |
} | |
}, {_id:0, __v: 0, createdAt:0, updatedAt:0}).sort({ | |
points: -1, | |
comments: -1 | |
}).limit(5) |
You can use this cookiecutter template for creating reusable Django REST Framework packages quickly. Cookiecutter creates projects from project templates. While optional, this cookiecutter template includes best practices from Django REST framework and other packages, as well as a Travis CI configuration, Tox configuration, and a sane setup.py for easy PyPI registration/distribution.
Note: Let us know if you have an alternate cookiecuter package so we can also link to it.