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
// https://example.com/index.html | |
$('#fileupload').fileupload({ | |
url: 'https://apiexample.com/upload/image/', | |
dataType: 'text', | |
paramName: 'file', | |
redirect: 'https://example.com/result.html?%s', | |
add: function (event, data) { | |
// Start upload | |
data.submit(); |
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 DS from 'ember-data'; | |
import config from '../config/environment'; | |
export default DS.LSAdapter.extend({ | |
namespace: config.modulePrefix | |
}); |
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
for app in $(heroku apps|sed -n '/^=== My Apps/,/patterns/{s/^=== My Apps//;/^patterns/d;p;}'); do echo "===> Restarting $app..."; heroku ps:restart --app $app; done |
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
class Course(models.Model): | |
name = models.CharField(max_length=255) | |
class Teacher(models.Model): | |
name = models.CharField(max_length=255) | |
courses = models.ManyToManyField(Course) | |
class M2MDjangoFilterBackendTests(TestCase): |
https://barrandiando.com/api/v1/bar/create/
{
"name": "",
"like": "true",
"price": "false",
"service": "false",
"ambience": "false",
"facilities": "false",
https://barrandiando.com/api/v1/bar/create/
{
"name": "",
"like": "true",
"price": "false",
"service": "false",
"ambience": "false",
"ambience": "false",
"ambience": "false",
https://barrandiando.com/api/v1/bar/create/
{
"name": "",
"like": "true",
"price": "false",
"service": "false",
"ambience": "false",
"ambience": "false",
"ambience": "false",
https://barrandiando.com/api/v1/bar/create/
{
"name": "",
"like": "true",
"price": "false",
"service": "false",
"ambience": "false",
"ambience": "false",
"ambience": "false",
https://barrandiando.com/api/v1/bar/create/
{
"name": "",
"like": "true",
"price": "false",
"service": "false",
"ambience": "false",
"ambience": "false",
"ambience": "false",