Skip to content

Instantly share code, notes, and snippets.

@alfonsokim
alfonsokim / force.js
Created January 24, 2017 21:01 — forked from garkbit/force.js
Force Habitica quest to start
(function(){
let userid = window.amplitude.options.userId;
let groupid = window.amplitude.options.userProperties.partyID;
let token = JSON.parse(window.localStorage.getItem('habit-mobile-settings')).auth.apiToken;
let url = `/api/v3/groups/${groupid}/quests/force-start`;
let http = new XMLHttpRequest();
http.open('POST', url, true);
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.