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
| <section class='container-fixed'> | |
| <section class='row'> | |
| <section class='span4'>one</section> | |
| <section class='span4'>two</section> | |
| <section class='span4'>three</section> | |
| </section> | |
| </section> |
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
| YOUR_USERNAME = 'gpbmike' | |
| import scout.recon.register | |
| from django.contrib.auth.models import User | |
| u = User.objects.get(username=YOUR_USERNAME) | |
| u.profile['plan_id'] = 2 | |
| u.profile['next_billing_date'] = '2012-09-01' | |
| u.save() |
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
| import datetime | |
| import scout.recon.register | |
| from django.contrib.auth.models import User | |
| u = User.objects.get(username='') | |
| u.profile['plan_id'] = 2 | |
| u.profile['next_billing_date'] = datetime.date(2012, 9, 1) | |
| u.save() |
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
| from ella.core.models import * | |
| article_cat = Category.objects.get(slug='news') | |
| Category.objects.create(slug='best-of', title='Best Of', tree_path='news/best-of', tree_parent=article_cat, site_id=1) |
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
| skin: function (skinUrl, bgColor, contentWrapColor) { | |
| var bgStyle = 'url(' + skinUrl + ') top center no-repeat '; | |
| $('over_skin').setStyle("background", bgStyle + bgColor); | |
| if (contentWrapColor) { | |
| $('content-wrap').setStyle("background", contentWrapColor); | |
| } | |
| }, |
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
| import os | |
| import sublime, sublime_plugin | |
| import urllib, urllib2 | |
| #view.run_command("compress") | |
| class CompressCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| folder_name, file_name = os.path.split(self.view.file_name()) | |
| sublime.status_message(("Compressing %s...") % file_name) |
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
| dl | |
| dt | |
| something | |
| dd | |
| something else |
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
| // INPUT | |
| (function() { | |
| function this_is_my_great_function(msg) { | |
| alert(msg); | |
| } | |
| this_is_my_great_function('yay'); | |
| }); | |
| // YUI COMPRESSED OUTPUT | |
| (function(){function a(b){alert(b)}a("yay")}); |
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
| <?php | |
| class File_Streamer | |
| { | |
| private $_fileName; | |
| private $_contentLength; | |
| private $_destination; | |
| public function __construct() | |
| { | |
| if (!isset($_SERVER['HTTP_X_FILE_NAME']) |
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
| <a href="#js_table_1" class="toggle-table">table 1</a> | |
| $('.toggle-table').click(function(e) { | |
| e.preventDefault(); | |
| var table = $($(this).attr('href')); | |
| if (table.is(':visible')) { | |
| table.fadeOut('slow') | |
| } else { | |
| table.fadeIn('slow') | |
| } |