Skip to content

Instantly share code, notes, and snippets.

View adamledwards's full-sized avatar

Adam L Edwards adamledwards

  • United Kingdom
  • 16:02 (UTC)
View GitHub Profile
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 -->
<!--[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="">
<!-- END OLD -->
<!-- NEW -->
adamledwards / gulpfile.js
Created April 17, 2015 08:07
jekyll and gulp
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 () {
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]-->
<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'>
<label for="foo">foo</label>
<input id="foo" name="foo" type="radio" value="Yep">
<label for="bar">bar</label>
<input id="bar" name="bar" type="radio" value="Nope">