Skip to content

Instantly share code, notes, and snippets.

.body {
width: 900px;
margin-left: auto;
margin-right: auto;
border-right: 1px solid #e9e9e9;
border-left: 1px solid #e9e9e9;
padding: 10px;
}
.brand {
@MichelleGlauser
MichelleGlauser / gist:5191202
Created March 18, 2013 21:59
Update Banner for Get Satisfaction Community
// Head Tag:
<style>
.banner
{
display: none;
margin-left: auto;
margin-right: auto;
background-clip: border-box;
background-origin: padding-box;
@MichelleGlauser
MichelleGlauser / gist:5321620
Last active December 15, 2015 20:49
Company update banner with AJAX call to API and a JS cookie for limited views
<!-- Update banner code using API -->
<!-- HEAD TAG: -->
<style>
#updates
{
background-color: #fffa61;
width: 100%;
margin-bottom: 2px;
@MichelleGlauser
MichelleGlauser / gist:5323089
Created April 5, 2013 22:14
Subscribe to all topics button for GS communities
<!-- Subscribe to all topics. -->
<!-- Steps to a subscribe-to-all-topics button:
1. make a product for all topics, get ID number (87939: http://michelleglauser.jarg0n.com/gsfnmichelle/products/gsfnmichelle_all_topics)
2. make all new topics automatically be assigned to that product by ID number (through a jQuery click on that element)
3. hide that product by ID number
4. make a subscribe button on the front page
5. give the subscribe button a call to the product page's follow button -->
<!-- Header HTML: -->
@MichelleGlauser
MichelleGlauser / gist:5529449
Created May 7, 2013 00:38
There's a Get Satisfaction community that asked for pop-up notifications of new activity, just as you would see on Facebook (instead of just sending emails to those following the topic). They wanted to be notified of new replies while on a topic page, and new topics while on the main community page. This would be useful for users and administrat…
// Head Tag:
<style>
#reply_notification,
#topic_notification {
background-color: #7dba00;
position: fixed;
bottom: 0;
z-index: 9999;
padding: 35px 30px;
right: 0;
@MichelleGlauser
MichelleGlauser / gist:6016532
Created July 17, 2013 00:24
Reply notification API calls with geo-cached-api.getsatisfaction.com
jQuery(document).ready(function () {
jQuery('#reply_notification a, #topic_notification a').click(function (e) {
e.preventDefault();
window.location.href = window.location.href;
});
var current_replies,
current_topics,
topics,
replies,
@MichelleGlauser
MichelleGlauser / gist:6016533
Created July 17, 2013 00:24
Reply notification API calls with api.getsatisfaction.com
jQuery(document).ready(function () {
jQuery('#reply_notification a, #topic_notification a').click(function (e) {
e.preventDefault();
window.location.href = window.location.href;
});
var current_replies,
current_topics,
topics,
replies,
@MichelleGlauser
MichelleGlauser / gist:6151714
Created August 4, 2013 20:02
BookFairy Django web app Procfile
web: python manage.py runserver 0:$PORT collectstatic --noinput; bin/gunicorn_django --workers=4 --bind=0.0.0.0:$PORT proj/prod_settings.py
2014-05-06T00:14:54.508614+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=chishenma.herokuapp.com request_id=2a72e262-0620-40ce-953a-e84b0cb2ac59 fwd="107.6.122.130" dyno= connect= service= status=503 bytes=
2014-05-06T00:14:55.934188+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=chishenma.herokuapp.com request_id=0d747351-85df-4774-a50a-eebf8e70c6de fwd="107.6.122.130" dyno= connect= service= status=503 bytes=
2014-05-06T00:21:31.196635+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=chishenma.herokuapp.com request_id=dd3aea10-1782-4005-84a1-9f8473488843 fwd="107.6.122.130" dyno= connect= service= status=503 bytes=
2014-05-06T00:21:32.473284+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=chishenma.herokuapp.com request_id=8d1d5d5d-a1f2-43c1-8165-00a9874e640e fwd="107.6.122.130" dyno= connect= service= status=503 bytes=
2014-05-06T00:27:21.934717+00:
2014-05-06T01:31:19.612972+00:00 app[web.1]: 2014-05-06 01:31:19 [2] [INFO] Shutting down: Master
2014-05-06T01:31:19.607959+00:00 app[web.1]: 2014-05-06 01:31:19 [2] [INFO] Handling signal: term
2014-05-06T01:31:24.431329+00:00 app[web.1]: 2014-05-06 01:31:24 [2] [INFO] Starting gunicorn 18.0
2014-05-06T01:31:24.432145+00:00 app[web.1]: 2014-05-06 01:31:24 [2] [INFO] Listening at: http://0.0.0.0:12988 (2)
2014-05-06T01:31:24.432246+00:00 app[web.1]: 2014-05-06 01:31:24 [2] [INFO] Using worker: sync
2014-05-06T01:31:24.438350+00:00 app[web.1]: 2014-05-06 01:31:24 [7] [INFO] Booting worker with pid: 7
2014-05-06T01:31:23.549291+00:00 heroku[web.1]: Starting process with command `gunicorn chishenma_project.wsgi`
2014-05-06T01:31:24.686011+00:00 heroku[web.1]: State changed from starting to up
2014-05-06T01:31:26.678788+00:00 heroku[router]: at=info method=GET path=/ host=chishenma.herokuapp.com request_id=42e0c5b7-4bfd-48f9-bd42-aff99dd42c9f fwd="107.6.122.130" dyno=web.1 connect=2ms service=169ms status=500 by