Skip to content

Instantly share code, notes, and snippets.

View SaintG12468's full-sized avatar
🎯
Focusing

Fabian St. George SaintG12468

🎯
Focusing
View GitHub Profile
@SaintG12468
SaintG12468 / README.md
Created May 3, 2018 13:37 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@SaintG12468
SaintG12468 / delete_all_objects.py
Created January 14, 2018 16:01 — forked from seventhskye/delete_all_objects.py
A script to delete all objects, versions and delete markers from an s3 bucket.
#!/usr/bin/env python
import boto3
client = boto3.client('s3')
Bucket = 'a-bucket'
Prefix = 'a-prefix' # leave blank to delete the entire contents
IsTruncated = True
MaxKeys = 1000
KeyMarker = None
@SaintG12468
SaintG12468 / base.py
Created January 12, 2017 01:08 — forked from johnfelipe/base.py
/home/felipe/sayit/sayit.mysociety.org/sayit_mysociety_org/settings/base.py
# Django settings for sayit_mysociety_org project.
import imp
import os
import sys
from django.conf import global_settings
from .paths import * # noqa
# Get the changeable configuration
from .mysociety import * # noqa
@SaintG12468
SaintG12468 / manage.py
Created January 12, 2017 01:06 — forked from schwuk/manage.py
Django manage.py for split settings.
#!/usr/bin/env python
import os
import sys
from django.core.management import execute_manager
PRODUCTION = 'production'
DEVELOPMENT = 'development'
ENVIRONMENTS = [
@SaintG12468
SaintG12468 / mixins.less
Created November 16, 2016 03:18 — forked from ScottPolhemus/mixins.less
A collection of LESS mixins.
//
// LESS Utility Mixins
// -------------------
// Fill the parent element
.fill(@spacing: 0) {
position: absolute;
top: @spacing; bottom: @spacing;
left: @spacing; right: @spacing;
}
@SaintG12468
SaintG12468 / rem.less
Created November 16, 2016 03:14 — forked from dominicwhittle/rem.less
rem() mixin for Less CSS
/* ---------------------------------------------------------------------------
Toolkit: Rem
============
.rem() takes a @property, and @list of values (in px or unitless) and
converts to rem.
e.g.,
.selector {
var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var install = require("gulp-install");
var notify = require("gulp-notify");
var merge = require("merge-stream");
var imagemin = require("gulp-imagemin");
var autoprefixer = require('gulp-autoprefixer');
var spritesmith = require('gulp.spritesmith');
/*
LESS CSS BOILERPLATE
*/
@import "lesshat.less";
@import url(http://fonts.googleapis.com/css?family=Arvo:400,700);
/* RESET */
html, body, div, span, applet, object, iframe,
@SaintG12468
SaintG12468 / bolierplate.less
Created June 25, 2016 12:40 — forked from waterpipe/bolierplate.less
less Boilerplatte
// ========================================================= //
// = Boilerplate Less CSS Styles = //
// = by Michael P. Geraci, 2011 - www.michaelgeraci.com = //
// = tell me what's missing: mgeraci@gmail.com | @mgeraci = //
// = free for all to use and modify (MIT License) = //
// ========================================================= //
// ============= //
// = CSS Reset = //
@SaintG12468
SaintG12468 / main.less
Created June 25, 2016 12:39 — forked from nanpx/main.less
LESS
@charset "UTF-8";
@import "variables.less";
@import "mixins.less";
@import "reset.less";
@import "utility.less";