Skip to content

Instantly share code, notes, and snippets.

View qbunt's full-sized avatar
🙃

Jeremy Bunting qbunt

🙃
View GitHub Profile
@qbunt
qbunt / docker-compose.yml
Last active June 14, 2018 03:49 — forked from stevewithington/docker-compose-drupal-postgres.yml
Drupal with Postgres Docker Compose File
version: '2'
# Note: use the database service name `db` in the Host IP Address field ...
# Or, `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.
services:
# Postgres
db:
image: postgres:9.6.5-alpine
restart: always
info Contentful Space Sync:
Let's sync some content across spaces!
info No previous sync token found.
Synchronizing fresh content from z9dlzmwjpezg to twxusrp14qif
info Getting content from source space via the sync api
info Checking if destination space already has any content and retrieving it
info Pushing content to destination space
info Updated Locale U.S. English
info Updated ContentType interior-color
info Updated ContentType model

Keybase proof

I hereby claim:

  • I am qbunt on github.
  • I am qbunt (https://keybase.io/qbunt) on keybase.
  • I have a public key whose fingerprint is 08B9 3BF3 2061 AF25 9C15 E4AD 4E3D 8FDD C3C3 67C4

To claim this, I am signing this object:

@qbunt
qbunt / utils.js
Created May 15, 2013 02:48
utils
/**
* User: jeremy.bunting
* Date: 4/25/13
* Time: 11:45 AM
*/
var utils = (function () {
var queryString = decodeURIComponent(window.location.search);
var parseQueryString, getQueryParam, environment, truncateWithEllipsis, setCookie, getCookie, deleteCookie, destroyView, loadTemplate;
@qbunt
qbunt / utils.js
Created May 10, 2013 16:43
Helps in killing of zombies.
destroyView = function (view) {
// completely unbind and destroy the view
view.undelegateEvents();
view.$el.removeData().unbind();
//Remove view from DOM
view.remove();
Backbone.View.prototype.remove.call(view);
};
@qbunt
qbunt / gist:1477774
Created December 14, 2011 18:13
Firefox 1/2 pixel fix
<script>
try {
if ($.browser.mozilla) {
$(window).resize(addMargin).resize();
}
} catch(ex) {}
function addMargin() {
log(window.outerWidth);
$("#container").css('margin-left', window.outerWidth % 2 ? '0': '0.5px')