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
version: "3" | |
services: | |
postgres: | |
hostname: postgres | |
image: postgres | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=rsi | |
ports: |
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
#ifndef RENDERER_H | |
#define RENDERER_H | |
#include <cstdlib> | |
#include <SDL2/SDL.h> | |
#include <SDL_image.h> | |
#include <string> | |
#include "json.hpp" | |
#include "readjson.h" |
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
h1 = repo.revparse_single('HEAD') | |
h2 = repo.revparse_single('HEAD^') | |
diff = h1.diff(h2, context_lines=0) | |
""" | |
AttributeError at /publish/1/diff/12d75a93/ | |
'_pygit2.Commit' object has no attribute 'diff' | |
""" |
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
princexml: | |
pkg.installed: | |
- sources: | |
- prince: http://www.princexml.com/download/prince_9.0-2_ubuntu12.04_amd64.deb | |
# [INFO ] Executing state pkg.installed for princexml | |
# [INFO ] Executing command 'dpkg-deb -I "/var/cache/salt/minion/extrn_files/base/www.princexml.com/download/prince_9.0-2_ubuntu12.04_amd64.deb"' in directory '/home/bkpk' | |
# [DEBUG ] stdout: new debian package, version 2.0. | |
# size 3870778 bytes: control archive= 385 bytes. | |
# 354 bytes, 11 lines control |
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
from haystack import indexes | |
from book.models import Book, Chapter | |
class BookIndex(indexes.SearchIndex, indexes.Indexable): | |
text = indexes.CharField(document=True, use_template=True) | |
title = indexes.CharField(model_attr='title') | |
synapsis = indexes.CharField(model_attr='synapsis') | |
authors = indexes.CharField(model_attr='authors', faceted=True) | |
categories = indexes.CharField(model_attr='categories', faceted=True) | |
content = indexes.CharField(model_attr='chapters') |
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 src="/static/js/jquery.min.js"></script> | |
<script src="/static/js/jquery-ui.min.js"></script> | |
<script src="/static/js/sublime-scroll.js"></script> | |
<script> | |
//$(document).ready(function() { | |
{# $(function() { #} | |
{# return $.sublimeScroll({ #} | |
{# //fixed_elements: '.column-left, .column-right', #} | |
{# }); #} | |
{# }); #} |
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
// Generated by CoffeeScript 1.3.3 | |
(function($) { | |
return $.sublimeScroll = function(options) { | |
var $html, $iframe, $scroll_bar, $scroll_overlay, $scroll_wrapper, drag_active, get_content_height, get_content_width, get_height, iframe_document, onDrag, onDragEnd, scale_factor, scroll_bar_height, settings, _get_setting; | |
if (!(window.top === window)) { | |
return this; | |
} | |
settings = { | |
top: 0, |
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
APE.manager.models.app = Backbone.Model.extend({ | |
dispatcher: APE.events, | |
defaults: { | |
dirty: false, | |
model_count: 0, | |
}, | |
initialize: function() { | |
this.listenTo(this.dispatcher, 'dirty', this.handle_dirt); | |
}, | |
handle_dirt: function(dirt) { |
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
APE.manager.app = Backbone.View.extend({ | |
dispatcher: APE.events, | |
initialize: function() { | |
var draggable = this.options.draggable; | |
var droppable = this.options.droppable; | |
var data = this.options.data; | |
var draggable_data = data['draggable'] || []; |
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
python-pkgs: | |
pkg.installed: | |
- pkgs: | |
- python-virtualenv | |
- python-dev | |
- libpq-dev | |
python-imaging-deps: | |
pkg.installed: | |
- pkgs: |
NewerOlder