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
.highlight { background-color: #ffffcc } | |
.highlight .c { color: #586E75 } /* Comment */ | |
.highlight .err { color: #93A1A1 } /* Error */ | |
.highlight .g { color: #93A1A1 } /* Generic */ | |
.highlight .k { color: #859900 } /* Keyword */ | |
.highlight .l { color: #93A1A1 } /* Literal */ | |
.highlight .n { color: #93A1A1 } /* Name */ | |
.highlight .o { color: #859900 } /* Operator */ | |
.highlight .x { color: #CB4B16 } /* Other */ | |
.highlight .p { color: #93A1A1 } /* Punctuation */ |
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
javascript:(function(){location.href = 'https://en.wikipedia.org/wiki/'+["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"][(new Date()).getMonth()]+'_'+(new Date()).getDate();})(); |
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
# -*- coding: utf-8 -*- | |
""" | |
Copyright 2016 Sean Beck, Matteo Scotuzzi | |
MIT license | |
A simple script that provides a function to send an email via Mailgun with no | |
external dependencies. | |
This requires obtaining an API key from Mailgun. Make also sure to setup the defaults in the | |
MAILGUN_API_KEY, DEFAULT_EMAIL_SENDING_DOMAIN, DEFAULT_EMAIL_SENDING_ADDRESS constants after |
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
# http://www.kinnetica.com/projects/jekyll-sitemap-generator/ | |
# Sitemap.xml Generator is a Jekyll plugin that generates a sitemap.xml file by | |
# traversing all of the available posts and pages. | |
# | |
# How To Use: | |
# 1.) Copy source file into your _plugins folder within your Jekyll project. | |
# 2.) Change MY_URL to reflect your domain name. | |
# 3.) Change SITEMAP_FILE_NAME if you want your sitemap to be called something | |
# other than sitemap.xml. | |
# 4.) Change the PAGES_INCLUDE_POSTS list to include any pages that are looping |
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
module Jekyll | |
# Expects a lessc: key in your _config.yml file with the path to a local less.js/bin/lessc | |
# Less.js will require node.js to be installed | |
class LessJsGenerator < Generator | |
safe true | |
priority :low | |
def generate(site) | |
src_root = site.config['source'] |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="Trello Holodeck"> | |
<Require feature="rpc"/> | |
</ModulePrefs> | |
<Content type="html"> | |
<![CDATA[ | |
<script src="//hangoutsapi.appspot.com/static/hangout.js"></script> | |
<!-- Your application code --><script type="text/javascript">gapi.hangout.layout.setChatPaneVisible(false);</script> | |
<iframe style="width:100%;height:100%;border:0;" src="https://trello.com">So sorry, seams like your browser does not support iFrames needed for this gadget...</iframe> |
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
require 'fileutils' | |
class Jekyll < Thor | |
include FileUtils | |
method_options :format => :optional | |
desc "draft NAME", "Create draft `NAME` in _drafts" | |
def draft(name) | |
format = options[:format] || "markdown" | |
slug = name.downcase.gsub(/ +/,'-').gsub(/[^-\w]/,'').sub(/-+$/,'') |
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
module Jekyll | |
# Compiled LESS CSS into CSS. You must specify an empty YAML front matter | |
# at the beginning of the file. | |
# .less -> .css | |
class LessConverter < Converter | |
safe true | |
priority :low | |
pygments_prefix "\n" | |
pygments_suffix "\n" |
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
""" | |
This fabric file makes setting up and deploying a django application much | |
easier, but it does make a few assumptions. Namely that you're using Git, | |
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have | |
Django installed on your local machine and SSH installed on both the local | |
machine and any servers you want to deploy to. | |
_note that I've used the name project_name throughout this example. Replace | |
this with whatever your project is called._ |
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
====================================================== | |
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
====================================================== | |
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
8.10. The article is targeted at a production environment, but keep in mind | |
this is a more generalized environment. You may have different requirements, | |
but this article should at least provide the stepping stones. | |
The article will use distribution packages where nesscary. As of 8.10 the |
NewerOlder