Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vasa-chi on github.
  • I am vasachi (https://keybase.io/vasachi) on keybase.
  • I have a public key ASBQSRFD-9xTvHyUK3GGQjYJ-N8Bu3_C2fg-gn9CFMicfgo

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
Serializing request to be sent to Jedi Object {id: "73e511a7decefa5980d0cab9fc43637e", prefix: "datetim", lookup: "completions", path: "/Users/vasa/workspace/bpmnet/test.py", source: "from datetime import datetim"…}
provider.coffee:17 Deserealizing response from Jedi {"id": "a233b5b00c08409a4c671cc969e747f2", "results": [{"snippet": "abs$0", "rightLabel": "", "type": "builtin", "description": "abs(number) -> number\n\nReturn the absolute value of the argument."}, {"snippet": "all$0", "rightLabel": "", "type": "builtin", "description": "all(iterable) -> bool\n\nReturn True if bool(x) is True for all values x in the iterable.\nIf the iterable is empty, return True."}, {"snippet": "and$0", "rightLabel": "", "type": "keyword", "description": ""}, {"snippet": "any$0", "rightLabel": "", "type": "builtin", "description": "any(iterable) -> bool\n\nReturn True if bool(x) is True for any x in the iterable.\nIf the iterable is empty, return False."}, {"snippet": "apply$0", "rightLabel": "", "type": "builtin", "descripti
# невалидные
(lambda x: x)(1) # лямбда
1+1; 2+2 # два стейтмента
def fun(): return 1 # объявление функциии
a = 1 # присваивание
unknown_func() # вызов неизвестной функции
really_a_func + 1 # нелья делать операции над функциями наверное
import ast # импорты запрещены
import ast
def iter_nodes(expression):
body = ast.parse(expression).body
return ast.walk(body[0])
def binary_ops(expression):
nodes = iter_nodes(expression)
@vasa-chi
vasa-chi / nginx-asuno.conf
Created May 22, 2015 09:55
Настройки для локального АСУНО
server {
listen 80;
server_name asuno.local;
charset utf-8;
gzip on;
gzip_proxied any;
gzip_types *;
access_log /tmp/maptest.access.log;
error_log /tmp/asuno.error.log;
Limit (cost=108518.06..108518.07 rows=6 width=190) (actual time=1443.193..1443.195 rows=6 loops=1)
-> Sort (cost=108518.06..108693.55 rows=70195 width=190) (actual time=1443.192..1443.192 rows=6 loops=1)
Sort Key: controller_monitor_reading."timestamp", controller_monitor_reading.silent, state.priority
Sort Method: top-N heapsort Memory: 26kB
-> Hash Left Join (cost=5063.35..107259.83 rows=70195 width=190) (actual time=32.980..1434.191 rows=16800 loops=1)
Hash Cond: (controller_monitor_reading.state_id = state_1.id)
-> Hash Join (cost=5056.52..106647.52 rows=70195 width=123) (actual time=32.884..1426.278 rows=16800 loops=1)
Hash Cond: (controller_monitor_reading.state_id = state.id)
-> Hash Join (cost=5049.70..105398.87 rows=143969 width=119) (actual time=32.746..1418.690 rows=20988 loops=1)
Hash Cond: (controller_monitor_reading.monitor_id = controller_monitor.id)
npm install babel-eslint
npm install bower
npm install eslint
npm install gulp
npm install gulp-autoprefixe
npm install gulp-babel
npm install gulp-cache
npm install gulp-eslint
npm install gulp-gzip
npm install gulp-if
@vasa-chi
vasa-chi / FDC_CAR_GPS.md
Last active August 29, 2015 14:18
Описание таблиц

Полное название

vts.vts."FDC_CAR_GPS"

Описание

Таблица-связь много-ко-многим между FDC_GPS и FDC_CAR

Структура

   Column   |           Type           | Modifiers | Storage | Stats target | Description 
begin;
alter table track rename to track_old;
alter table fuel rename to fuel_old;
create table fuel_reading (
id serial PRIMARY KEY,
client integer,
det_dtatus integer,
level_l integer,