Skip to content

Instantly share code, notes, and snippets.

View adamledwards's full-sized avatar

Adam L Edwards adamledwards

  • United Kingdom
  • 23:36 (UTC +01:00)
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
<!-- 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 -->
@adamledwards
adamledwards / gulpfile.js
Created April 17, 2015 08:07
jekyll and gulp
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())
<!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="">
<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>