I hereby claim:
- I am jackub on github.
- I am jakub (https://keybase.io/jakub) on keybase.
- I have a public key whose fingerprint is 581E C602 345D 1B28 6703 D625 8D51 ABF8 EC29 C239
To claim this, I am signing this object:
// One of your rules sends the highlighter to the embedded rule | |
// For examples, in your $rules | |
{ | |
token: 'text', | |
regex: /^```json$/, | |
next: 'json-start', // this is the important bit | |
}, | |
// ... |
apiHeaders: [ | |
{ | |
token: 'empty_line', | |
regex: /^\s*$/, | |
next: 'start', | |
}, | |
// We can validate the headers with regex | |
{ | |
token: ['text', 'keyword.control', 'comment', 'text'], | |
regex: /(\s*)([\w-]+)(: )(.*)/, |
const $rules = { | |
start: [ | |
{ | |
regex: /KEYWORD/, | |
token: 'keyword', | |
next: 'otherRulesBlock', | |
}, | |
{ defaultToken: 'text' }, | |
], | |
otherRulesBlock: [ |
// This only defines high-level behaviour of the Mode like folding etc. | |
ace.define('ace/mode/custom', ['require', 'exports', 'ace/lib/oop', 'ace/mode/text', 'ace/mode/custom_highlight_rules'], (acequire, exports) => { | |
const oop = acequire('ace/lib/oop'); | |
const TextMode = acequire('ace/mode/text').Mode; | |
const CustomHighlightRules = acequire('ace/mode/custom_highlight_rules').CustomHighlightRules; | |
oop.inherits(Mode, TextMode); // ACE's way of doing inheritance | |
exports.Mode = Mode; // eslint-disable-line no-param-reassign | |
}); |
#!/usr/bin/env bash | |
anvm () { | |
if [[ ! -f package.json ]] ; then | |
echo "No package.json found in current directory" | |
return 1 | |
fi | |
local NVM_VERSION_DIR | |
local NODE_VERSION=$(cat package.json | jq '.engines.node' | tr -d '"') |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am jackub on github. | |
* I am jakub (https://keybase.io/jakub) on keybase. | |
* I have a public key whose fingerprint is D597 FB29 E275 6723 9842 A5E4 6D37 8129 AF31 AE0C | |
To claim this, I am signing this object: |
function canvasSmoothScroll(y, d){ | |
var duration = d || 800; | |
FB.Canvas.getPageInfo(function(pageInfo){ | |
$({y: pageInfo.scrollTop}).animate( | |
{y: y}, | |
{duration: duration, step: function(offset){ | |
FB.Canvas.scrollTo(0, offset); | |
} | |
}); | |
}); |
var radky = jQuery(".transactionRowPrice"); | |
var pole = []; | |
jQuery.each(radky, function(i) { | |
if (radky.eq(i).text() != "Zdarma" && radky.eq(i).text() != "Není k dispozici" && radky.eq(i).text() != "Celkem") { | |
var cislo = radky.eq(i).text().replace(",", ".").replace("€", "").replace("--", "00"); | |
if (!isNaN(cislo)) { | |
pole.push(parseInt(cislo, 10)); | |
} | |
} | |
}); |