Example: http://arfeo.net/tests/geojson/
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
/** | |
* | |
* Функция запроса через API с кэшированием результата | |
* | |
* @param {String} url Адрес URL | |
* @param {Object} data Объект с параметрами запроса | |
* @param {String} method Метод (по умолчанию `get`) | |
* @param {Boolean} sync Если true, то выполняется синхронный запрос, | |
* если false, то асинхронный (по умолчанию) | |
* @param {Boolean} no_cache Если true, то результаты запроса не кэшируем, |
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
/** | |
* | |
* Функция ограничения вызова функции (не чаще некоторого кол-ва раз в секунду) | |
* | |
* @param {Integer} count Кол-во выполняемых в 1 секунду вызовов | |
* | |
* --- | |
* | |
* Пример использования: | |
* |
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
/** | |
* | |
* Обработчик длительного касания | |
* | |
* @param {Function} action Вызываемая функция | |
* @param {Integer} duration Длительность касания в мс (1000 по умолчанию) | |
* | |
* --- | |
* | |
* Пример использования: |
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
const setCaretToTheEnd = el => { | |
el.focus(); | |
if (typeof window.getSelection != "undefined" | |
&& typeof document.createRange != "undefined") { | |
const range = document.createRange(); | |
range.selectNodeContents(el); | |
range.collapse(false); | |
const sel = window.getSelection(); | |
sel.removeAllRanges(); |
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
const codeEditor = document.getElementById('codeEditor'); | |
/** | |
* Insert html at the caret position | |
*/ | |
const insertHTML = html => { | |
const sel = window.getSelection(); | |
if (sel.getRangeAt && sel.rangeCount) { |
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
#! /bin/sh | |
tmp_pwd=`pwd` | |
cd /Applications/Momentics.app && source bbndk-* && cd $tmp_pwd | |
QNX_BINS="${QNX_HOST}/usr/bin" | |
./configure CC="${QNX_BINS}/qcc" CXX="${QNX_BINS}/qcc" \ | |
LDFLAGS="-Vgcc_ntoarmv7le" RANLIB="ntoarmv7-ranlib" AR="ntoarmv7-ar" \ | |
CFLAGS="-Vgcc_ntoarmv7le" \ |
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
const markdownProcessing = (source) => { | |
let proc = source; | |
// Headers | |
proc = proc.replace(/(^|[^#])# (.*)/gui, '$1<h1>$2</h1>'); | |
proc = proc.replace(/(^|[^#])## (.*)/gui, '$1<h2>$2</h2>'); | |
proc = proc.replace(/(^|[^#])### (.*)/gui, '$1<h3>$2</h3>'); | |
proc = proc.replace(/(^|[^#])#### (.*)/gui, '$1<h4>$2</h4>'); | |
proc = proc.replace(/(^|[^#])##### (.*)/gui, '$1<h5>$2</h5>'); | |
proc = proc.replace(/(^|[^#])###### (.*)/gui, '$1<h6>$2</h6>'); |
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
create or replace procedure whereIsValue(valueParam varchar2) | |
AS | |
TYPE VALCUR IS REF CURSOR; | |
cursor tabl is select table_name from user_tables; | |
cursor col (tablename varchar2) is select column_name | |
from user_tab_columns | |
where table_name like tableName; | |
valueCursor VALCUR; | |
tableName varchar2(50); | |
columnName varchar2(50); |
OlderNewer