Skip to content

Instantly share code, notes, and snippets.

View claudinec's full-sized avatar

Claudine Chionh claudinec

View GitHub Profile
@claudinec
claudinec / drupal-dev.md
Last active December 8, 2015 23:40
Drupal development notes

Drupal development notes

Managing code

Use Git and git-flow to manage code.

If we're working across multiple major Drupal versions, prefix the branch with d7-, d8- etc.

Two options:

@zsup
zsup / ddd.md
Last active May 6, 2025 10:50
Documentation-Driven Development (DDD)

Documentation-Driven Development

The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.

  • Document the feature first. Figure out how you're going to describe the feature to users; if it's not documented, it doesn't exist. Documentation is the best way to define a feature in a user's eyes.
  • Whenever possible, documentation should be reviewed by users (community or Spark Elite) before any development begins.
  • Once documentation has been written, development should commence, and test-driven development is preferred.
  • Unit tests should be written that test the features as described by the documentation. If the functionality ever comes out of alignment with the documentation, tests should fail.
  • When a feature is being modified, it should be modified documentation-first.
  • When documentation is modified, so should be the tests.
layout title description path
barewithrelated
Book Authoring Using GitHub and Git
Formats, tips and techniques for using GitHub and Git as the version control and collaborative platform for writing short and long form books.
usecases/_posts/2001-01-01-book-authoring-using-git-and-github.md

GitHub and Git are not just for writing programming code. They can also be an effective tool for writing articles and books. Matthew McCullough has written a quick guide to writing books in lightweight formats. This article will be folded into this Teaching repository over the coming months.

What is this?

@pjf
pjf / rickroll.pl
Created January 22, 2014 12:24
Rickroll cmdline utility
#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie;
use WWW::Twilio::API;
my $lucky_person = shift || die "Usage: $0 phone-number";
my $rick = WWW::Twilio::API->new(
@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@crolfe
crolfe / gist:5530063
Last active December 17, 2015 01:39
Django Education Roundup Links
Official Django Documentation: https://docs.djangoproject.com
The Django Book: http://www.djangobook.com
Django 1.5 Application Development Starter: http://www.packtpub.com/django-1-5-application-development-starter/book
Getting Started With Django: www.gettingstartedwithdjango.com
2 Scoops of Django: https://django.2scoops.org/
Django in Depth: http://www.youtube.com/watch?feature=player_detailpage&v=t_ziKY1ayCo
Classy Class-Based Views: http://ccbv.co.uk/
#django on irc.freenode.net
@claudinec
claudinec / ascm_build.make
Last active December 12, 2015 06:19
Drupal version and patch are in ascm_profile.make
core = 7.x
api = 2
; Copy of core
projects[drupal][version] = "7.20"
projects[ascm_profile][type] = "profile"
projects[ascm_profile][download][type] = "git"
projects[ascm_profile][download][url] = "[email protected]:claudinec/ascm_profile.git"
@pjf
pjf / exifpic.pl
Last active December 10, 2015 09:58 — forked from anonymous/exifpic
# /usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use threads;
use Thread::Queue;
use autodie qw(:all);
use Image::ExifTool qw(ImageInfo);
use Data::Dumper;
use Imager;