Skip to content

Instantly share code, notes, and snippets.

1 сука тут -----
function genArr(size) {
var arr_inner = [],
arr = [];
for (var i = 0; i < size; i++) {
for (var j = 0; j < size; j++) {
arr_inner.push(randElem(10));
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
table {
border-collapse: collapse; /* Убираем двойные линии между ячейками */
border: 1px solid black; /* Параметры рамки */
}
tr, td {
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
table {
border-collapse: collapse;
border: 1px solid black;
}
tr, td {
function AnswerProcessor() {
//class containing logic and data to manipulate questions
this.commentCharsMaxConst = 250;
this.stats_timer = false;
this.show_skip_timer = false;
this.init = function(categories){
// our function that decides weather the navigation bar should have "fixed" css position or not.
var stickyBlock = function () {
if (is_wide()) {
// grab the initial top offset of the navigation
var stickyBlockOffsetTop = $('#main_div').offset().top;
var scrollTop = $(window).scrollTop(); // our current vertical position from the top
// if we've scrolled more than the navigation, change its position to fixed to stick to top, otherwise change it back to relative
{% extends 'base.html' %}
{% load staticfiles %}
{% load dict_tags %}
{% load inplace_edit %}
{% block title %}Polifit{% endblock %}
{% block head_js %}
<script type="text/javascript">
var pageName = "Issues Survey"
@m-bo-one
m-bo-one / qwe
Created December 18, 2015 15:40
function AnswerProcessor() {
//class containing logic and data to manipulate questions
this.commentCharsMaxConst = 250;
this.stats_timer = false;
this.show_skip_timer = false;
this.current_category = 0;
def username_for_change(change):
author = change.author
username = 'noname'
try:
if author:
username = author.username or 'noname'
except ObjectDoesNotExist:
pass
return username
import urllib
import json
import datetime
site_url = 'http://api.openweathermap.org'
path = '/data/2.5/forecast/daily'
APPID = '87d97746bd021478a0222490997c87a5'

Changelog

v1.0

  • added russian error presentation (add Accept-Language: ru;q=1 in header of request);
  • removed [] from error value;
  • changed error keys: non_field_errors -> error, detail -> error;

v1.1

  • changed error translation in documentation;
  • added admin panel link to docs;
  • added online-lesson descr in docs;