by alexander white ©
This file contains hidden or 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
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
This file contains hidden or 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
| -- Found at: | |
| -- http://www.if-not-true-then-false.com/2009/postgresql-psql-psqlrc-tips-and-tricks/ | |
| -- http://opensourcedbms.com/dbms/psqlrc-psql-startup-file-for-postgres/ | |
| \set QUIET ON | |
| \pset pager always | |
| \pset null 'NULL' |
This file contains hidden or 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
| class PathOverrideable(object): | |
| def get_template(self, request, mode='', **kwargs): | |
| try: | |
| return self._path_overrideable_template | |
| except AttributeError: | |
| if not self.url: | |
| return get_template(self.template) |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
This file contains hidden or 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
| # Notes: | |
| # Python 3 assumed, but shouldn't be hard to backport to Python 2 | |
| # Cobbled together from two slightly different implementations, sorry for any inconsistencies. | |
| # This creates two models, NavigationMenu, and NavigationMenuItem. A site can have many NavigationMenus, which are referenced from | |
| # the template by location. E.g., 'footer', 'left_nav'. You can also create single-item lists for special purpose links/buttons, | |
| # such a privacy_policy or homepage_cta. This helps to reduce hard coding in templates. | |
| # NavigationMenuItem mixes in some different link types (Page, Document, URL) and presents them in a consistent way. It provides | |
| # the ability to override the title of the referenced object. |
This file contains hidden or 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.less | |
| * ~~~~~~~~~~~~~~~ | |
| * | |
| * Responsive helper classes for Bootstrap style margins, padding, aligning, and displaying per screen size. | |
| * Works along with Bootstrap3. | |
| */ | |
| //== Media queries breakpoints from Bootstrap3 | |
| // Extra small screen / phone |
This file contains hidden or 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
| (function () { | |
| var labels, label, inputs, input, type, i, ilen; | |
| if (!document.addEventListener) { | |
| labels = document.getElementsByTagName('label'); | |
| inputs = document.getElementsByTagName('input'); | |
| function inputClick() { | |
| clicked = window.event.srcElement; |