Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam L Edwards adamledwards

  • United Kingdom
View GitHub Profile
View contact.py
class ContactSerializer(PermittedFieldsModelSerializer):
"""
Used by
POST /v3/contact
GET /v3/contact
PATCH /v3/contact
and CompanySerializer
remove accepts_dit_email_marketing from the listing serializer
View picture.html
<!-- OLD -->
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source media="(min-width: 1000px)" srcset="/images/product-listing/classic_shirt_hover_desktop@x2.jpg">
<!--[if IE 9]></video><![endif]-->
<img class="ProductListItem-imageHover" src="" alt="">
</picture>
<!-- END OLD -->
<!-- NEW -->
View gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var livereload = require('gulp-livereload');
var prefix = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var runSequence = require('run-sequence');
gulp.task('sass', function () {
gulp.src('./assets/css/*.scss')
.pipe(sourcemaps.init())
View video 23 snippet
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Video player test</title>
<meta name="description" content="">
View format request
<div class='FieldWrapper radiobutton'>
<ul id='someID'>
<li>
<label for="foo">foo</label>
<input id="foo" name="foo" type="radio" value="Yep">
</li>
<li>
<label for="bar">bar</label>
<input id="bar" name="bar" type="radio" value="Nope">
</li>
You can’t perform that action at this time.