This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Email template: student/purchase_notification | |
Description: This email is sent to a student when they enroll in a course. | |
--> | |
<!-- Email Title --> | |
<div class="header-title"> | |
<h1>{{text.email_receipts.thank_you_for_enrolling_in }} {{sale.course.name }}</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/discourse-plugin" version="0.8.18"> | |
if (I18n.translations.en) { | |
I18n.translations.en.js.filters.needsreply = { title: "Posts That Need Love", help: "Projects that need more replies." }; | |
} | |
// Add active class to Needs Reply button | |
api.modifyClass('component:navigation-item', { | |
active: Ember.computed("contentFilterMode", "filterMode", function() { | |
let contentFilterMode = this.get('content').get('filterMode'); | |
if (window.location.search === "?max_posts=5") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# | |
# NOTE: | |
# This file is shared across multiple computers using Dropbox. | |
# | |
# SETUP NEW COMPUTER: | |
# Download and sync Dropbox, including the http directory. | |
# Create symlinks for the following files in the $HOME/~ dir: | |
# .bash_profile, .bashrc, .profile (NOT .bash_history) | |
# e.g. $ ln -s ~/http/config.bash_profile .profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place this script in /usr/local/bin | |
# Make the file executable: chmod +x copy_files.sh | |
# to run via crontab see https://gist.github.com/alxpck/6ad8c1e55fdf58d7a4d434a5e6851b13 | |
#!/bin/bash | |
# iterate through the files in the directory below (only the ones that end with .md) | |
for file in $HOME/Dropbox/Writing/Ulysses/booknotes/*.md | |
# for each file do the following |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EDIT THE CRONTAB | |
# crontab -e | |
# Run this script every minute of every day | |
# Put the output in a log file, there will be a permission error using /var/log | |
# To fix the permission error (1/2): sudo touch /var/log/foo.log | |
# To fix the permission error (2/2): sudo chown my_username /var/log/foo.log | |
* * * * * bash /usr/local/bin/copy_files.sh >> /var/log/markdown_copy_files_output.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* RESPONSIVE LINE BREAKS | |
* via Dan Mall | |
* http://danielmall.com/articles/responsive-line-breaks/ | |
*/ | |
/* Default start state */ | |
.rwd-line { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width:970px) and (max-width: 2500px) { | |
.container { | |
width:970px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
import time | |
import sys | |
from twilio.rest import TwilioRestClient | |
# SETH'S TWILIO | |
account_sid = os.environ.get('TWILIO_ACCOUNT_SID_SETH') | |
auth_token = os.environ.get('TWILIO_AUTH_TOKEN_SETH') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This hook is sourced after every virtualenv is activated. | |
# customize the virtualenv name in the bash prompt | |
# http://stackoverflow.com/questions/10406926/how-to-change-default-virtualenvwrapper-prompt | |
if [ ${_OLD_VIRTUAL_PS1:0:2} == '\n' ]; then | |
PS1="\n\[\033[0;35m\](`basename \"$VIRTUAL_ENV\"`) \n${_OLD_VIRTUAL_PS1:2:${#_OLD_VIRTUAL_PS1}}" | |
else | |
PS1="\[\033[$PROMPT_COLOR1\](`basename \"$VIRTUAL_ENV\"`) $_OLD_VIRTUAL_PS1 " |