Skip to content

Instantly share code, notes, and snippets.

View smacker's full-sized avatar

Maxim Sukharev smacker

  • Fujitsu Launchpad
  • Singapore
View GitHub Profile
version: '3.2'
services:
bblfsh:
image: bblfsh/bblfshd:v2.14.0-drivers
restart: unless-stopped
privileged: true
ports:
- 9432:9432
gitcollector:
{
"dashboards": [
{
"__Dashboard__": {
"dashboard_title": "example",
"position_json": null,
"json_metadata": "{\"remote_id\": 7, \"import_time\": 1563285559}",
"description": null,
"css": null,
"slug": null,
{
"dashboards": [
{
"__Dashboard__": {
"changed_by_fk": 1,
"published": true,
"json_metadata": "{\"remote_id\": 7}",
"css": null,
"position_json": null,
"id": 7,
import os
import json
import uuid
from superset import db
from superset.models import core as models
def update_dashboards():
for d in db.session.query(models.Dashboard):
[
{
"id": "8029001283",
"type": "PullRequestReviewCommentEvent",
"actor": {
"id": 1469173,
"login": "carlosms",
"display_login": "carlosms",
"gravatar_id": "",
"url": "https://api.github.com/users/carlosms",
[
{
"url": "https://api.github.com/repos/src-d/lookout/pulls/81",
"id": 204444013,
"node_id": "MDExOlB1bGxSZXF1ZXN0MjA0NDQ0MDEz",
"html_url": "https://github.com/src-d/lookout/pull/81",
"diff_url": "https://github.com/src-d/lookout/pull/81.diff",
"patch_url": "https://github.com/src-d/lookout/pull/81.patch",
"issue_url": "https://api.github.com/repos/src-d/lookout/issues/81",
"number": 81,
package otgorm_test
import (
"context"
"testing"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/mocktracer"
bRender() {
var content = [this._makeFlightElem('forward', !!this.props.backward)];
if (this.props.backward) {
content.push(this._makeFlightElem('backward'));
}
return {
block: 'flight',
tag: 'tbody',
https://10.80.1.193/reports/timepoints/?type=http&count=10&date_from=2013-03-21T18%3A00%3A00.387Z&date_to=2013-03-22T17%3A59%3A59.387Z&query=&reverse=true&_=1363936166129
from django.core.cache import cache
from django.db.models.signals import post_save
from django.dispatch import receiver
@register.simple_tag()
def last_items(num=10):
last_items = cache.get('last_items')
if not last_items:
ads = Ad.objects.filter(status='actual').order_by('-created_date', '-id')[:num]
last_items = render_to_string('blocks/inline/last_items.html', {'ads': ads})