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
# coding: utf-8 | |
require 'net/http' | |
require 'open-uri' | |
require 'nokogiri' | |
require "cgi" | |
require 'json' | |
require 'zip/zip' | |
# Config |
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 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}) |
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
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 |
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
bRender() { | |
var content = [this._makeFlightElem('forward', !!this.props.backward)]; | |
if (this.props.backward) { | |
content.push(this._makeFlightElem('backward')); | |
} | |
return { | |
block: 'flight', | |
tag: 'tbody', |
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
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" |
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
[ | |
{ | |
"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, |
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
[ | |
{ | |
"id": "8029001283", | |
"type": "PullRequestReviewCommentEvent", | |
"actor": { | |
"id": 1469173, | |
"login": "carlosms", | |
"display_login": "carlosms", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/carlosms", |
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
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): |
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
{ | |
"dashboards": [ | |
{ | |
"__Dashboard__": { | |
"changed_by_fk": 1, | |
"published": true, | |
"json_metadata": "{\"remote_id\": 7}", | |
"css": null, | |
"position_json": null, | |
"id": 7, |
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
{ | |
"dashboards": [ | |
{ | |
"__Dashboard__": { | |
"dashboard_title": "example", | |
"position_json": null, | |
"json_metadata": "{\"remote_id\": 7, \"import_time\": 1563285559}", | |
"description": null, | |
"css": null, | |
"slug": null, |
OlderNewer