Skip to content

Instantly share code, notes, and snippets.

View imsickofmaps's full-sized avatar

Mike Jones imsickofmaps

  • Western Cape Labs
  • Lewes, UK
  • 11:08 (UTC)
View GitHub Profile
@imsickofmaps
imsickofmaps / git_pr
Created June 21, 2013 15:21
git PR fail
± git pull-request -b develop
Error creating pull request: Unprocessable Entity (HTTP 422)
Missing field: "head_sha"
Missing field: "base_sha"
No commits between praekelt:develop and imsickofmaps:feature/MOU-4-birth-month-not-saved-correctly
mikej at Michaels-MacBook-Air in ~/Documents/code/go-nike-ghr git:(feature/create-article-model-test-south) ✗
(ve) ± ./manage.py test
nosetests --verbosity 1
To reuse old database "test_ghr" for speed, set env var REUSE_DB=1.
Creating test database for alias 'default'...
..F.....
======================================================================
FAIL: The test_date_created_uneditable test is failing but not sure if it is important
----------------------------------------------------------------------
Traceback (most recent call last):
@imsickofmaps
imsickofmaps / libfile.js
Created June 28, 2013 16:06
BookletState example
self.get_article = function(){
return "Lorem ipsum dolor sit amet, consectetur adipiscing elit.";
};
self.add_state(new BookletState(
"articles",
"end_state",
3,
self.get_article
));
{
"quiz": {
"start": "q_1",
"questions": {
"q_1": {
"question": "Is this fake question one?",
"choices": [
[
"q_2",
"Yes"
max_id = [] # Variable to hold the max question id for menu endpoint
for i in range(len(quiz_ids)):
# Need to store end point for main_menu
max_id.append(quiz_ids[i].data["id"])
max_id = max(max_id)
<?php phpinfo() ?>
@imsickofmaps
imsickofmaps / my.js
Last active December 20, 2015 03:08
Line 212 is line 7 in my.js
HTTP/1.1 204 NO CONTENT
Connection: keep-alive
Content-Length: 0
Content-Type: text/html; charset=utf-8
Date: Tue, 23 Jul 2013 08:56:43 GMT
Server: nginx/1.1.19
var vumigo = require("vumigo_v01");
var jed = require("jed");
if (typeof api === "undefined") {
// testing hook (supplies api when it is not passed in by the real sandbox)
var api = this.api = new vumigo.dummy_api.DummyApi();
}
var Promise = vumigo.promise.Promise;
var success = vumigo.promise.success;
mikej at Michaels-MacBook-Air in ~/Documents/code
○ git clone https://github.com/praekelt/django-mpowering-healthcare
Cloning into 'django-mpowering-healthcare'...
Username for 'https://github.com': imsickofmaps
Password for 'https://[email protected]':
warning: You appear to have cloned an empty repository.
mikej at Michaels-MacBook-Air in ~/Documents/code
○ cd django-mpowering-healthcare
@imsickofmaps
imsickofmaps / gitflowing.md
Last active December 20, 2015 11:19
Using git-flow

How we use git-flow

The commands

First make sure you have a develop and master branch. If you only have develop run

$ git checkout -b master

Make it work locally