Skip to content

Instantly share code, notes, and snippets.

@Integral
Integral / russia_topojson.json
Last active March 6, 2018 10:58
Russian regions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Пример запроса
var data = new FormData();
// Вы готовы сдавать кровь на безвозмездной основе? (обязательно к заполнению)
// ответы: да, конечно/нет
// на сервер посылается true/false
// если пользователь выбрал "нет" - форма не должна сабмититься
// на сайте мы пишем буквально следующее:
// Извините, мы занимаемся поиском безвозмездных доноров. Спасибо. Всего доброго!
data.append("accept", "true");
{
"070fbff65360ddb165d0c67d5a9272ed": {
"set": "f51bd13ffdefe9d8dd81032a80ab3bba",
"class": "location",
"entity": "ae146c83a604b2e376690bf89bed1f34",
"start_offset": 686,
"end_offset": 5
},
"2266a187a590b4a8d28462f5136c4550": {
"set": "f51bd13ffdefe9d8dd81032a80ab3bba",
'use strict';
var tape = require('tape');
var inBrowser = require('../util/inBrowser');
var platform = require('../util/platform');
var DefaultDOMElement = require('../ui/DefaultDOMElement');
var nextTick = process.nextTick;
var harness = tape.createHarness();
var results = harness._results;
#!/bin/bash
set -e
branch=jsdoc
giturl=https://github.com/substance/substance.git
remoteurl=https://github.com/substance/docs.git
source=/tmp/substance
build=/tmp/substance/dist/doc
# Check to see if repo exists. If not, git clone it
/**
* Select2
*
* Renders Select2 - jQuery based replacement for select boxes
*
* Simply pass a 'config' object on your schema, with any options to pass into Select2.
* See http://ivaynberg.github.com/select2/#documentation
*/
Backbone.Form.editors.Select2Rel = Backbone.Form.editors.Base.extend({
@Integral
Integral / gist:5156170
Last active December 14, 2015 22:09
Simple implementation of Select2 for Backbone-Forms.
/**
* SELECT2
*
* Renders Select2 - jQuery based replacement for select boxes
*
* Requires an 'options.values' value on the schema.
* Can be an array of options, a function that calls back with the array of options, a string of HTML
* or a Backbone collection. If a collection, the models must implement a toString() method
*/
Backbone.Form.editors.Select2 = Backbone.Form.editors.Base.extend({
@Integral
Integral / buttons-checkboxes.js
Created March 13, 2013 13:46
Backbone-Forms Button Checkboxes. Generate bootstrap's group of checkbox style buttons. Use ButtonsCheckboxes type when determining schema of model.
/**
* BOOTSTRAP BUTTON CHECKBOXES
* Renders a <div> with given options represented as <li> buttons containing checkboxes
*
* Requires an 'options' value on the schema.
* Can be an array of options, a function that calls back with the array of options, a string of HTML
* or a Backbone collection. If a collection, the models must implement a toString() method
*/
Backbone.Form.editors.ButtonsCheckboxes = Backbone.Form.editors.Select.extend({
var D3Layer;
D3Layer = (function() {
function D3Layer(map, points) {
var _this = this;
this.map = map;
this.enabled = true;
this.svg = d3.select(this.map.parent).append('svg').attr('class', 'd3layer');
this.heat = d3.select(this.map.parent).append('div').attr('class', 'd3layer heatmap');