Skip to content

Instantly share code, notes, and snippets.

View dimapaloskin's full-sized avatar
:octocat:
>_

Dima Paloskin dimapaloskin

:octocat:
>_
View GitHub Profile
(function() {
console.log('test');
})();
4::/collectable/:{"request_id":"6ea329c8-6ba1-7aa7-e849-64db34bf117e","error":"['Traceback (most recent call last):\\n', ' File \"/var/www/collectrium_websocket/core/api/namespace.py\", line 63, in wrap\\n return fn(*args, **kwargs)\\n', ' File \"/var/www/collectrium_websocket/core/api/namespace.py\", line 115, in on_READ_LIST\\n result = resource.read_list()\\n', ' File \"/var/www/collectrium_websocket/core/api/read_resource.py\", line 81, in read_list\\n result = result.all()\\n', ' File \"/home/ubuntu/venv/collectrium/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2292, in all\\n return list(self)\\n', ' File \"/home/ubuntu/venv/collectrium/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2404, in __iter__\\n return self._execute_and_instances(context)\\n', ' File \"/home/ubuntu/venv/collectrium/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2419, in _execute_and_instances\\n result = conn.execute(querycontext.statement, self._p
Ember.run(function () {
container.register('view:uploader-test', Ember.View.extend({
template: compile('{{uploader-component allowedTypes="images"}}'),
controller: Ember.Controller.create({
container:container
})
}), {singleton: true});
view = container.lookup('view:uploader-test');
$(document).ready(function(){
$('.slide.axis .pep.x').pep({
axis: 'x',
constrainTo: [0, 0, 0, ($('.slider').width() - $(".text").width()) * -1]
})
$( '.more' ).click(function(event) {
event.preventDefault()
$( '.hide' ).slideToggle('slow')
4::/artifact/:{"error":"Traceback (most recent call last):\n File \"/var/www/mongoengine-gevent-socket.io/resources/artifact/resource.py\", line 36, in on_READ_LIST\n bundle = resource.read_list()\n File \"/var/www/mongoengine-gevent-socket.io/debug_utils.py\", line 83, in timed\n result = method(*args, **kw)\n File \"/var/www/mongoengine-gevent-socket.io/core/resource.py\", line 127, in read_list\n q = self.get_object_list(bundle)\n File \"/var/www/mongoengine-gevent-socket.io/core/resource.py\", line 119, in get_object_list\n q = q.options(joinedload(m)) #.load_only('id'),\n File \"/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 1062, in options\n return self._options(False, *args)\n File \"<string>\", line 2, in _options\n File \"/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/base.py\", line 165, in generate\n fn(self, *args[1:], **kw)\n File \"/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalche
Traceback (most recent call last):
File "/var/www/mongoengine-gevent-socket.io/resources/artifact/resource.py", line 36, in on_READ_LIST
bundle = resource.read_list()
File "/var/www/mongoengine-gevent-socket.io/debug_utils.py", line 83, in timed
result = method(*args, **kw)
File "/var/www/mongoengine-gevent-socket.io/core/resource.py", line 127, in read_list
q = self.get_object_list(bundle)
File "/var/www/mongoengine-gevent-socket.io/core/resource.py", line 119, in get_object_list
q = q.options(joinedload(m)) #.load_only('id'),
File "/home/ubuntu/venv/socket/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1062, in options
@dimapaloskin
dimapaloskin / python_resources.md
Created March 5, 2014 08:47 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@dimapaloskin
dimapaloskin / rails_resources.md
Created March 5, 2014 08:47 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@dimapaloskin
dimapaloskin / 0_reuse_code.js
Created March 5, 2014 08:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dimapaloskin
dimapaloskin / gist:9188857
Created February 24, 2014 13:55
sidebar fake
<style>
html, body {
padding: 0;
margin: 0;
}
.work {
padding: 0;
margin: 0;