https://jira.walmart.com/browse/CEECORE-255
Electrode Application can use css-modules
as one of the style options, CSS names can get long with local identifier name and random hash.
<scheme name="Eclectide Monokai" version="142" parent_scheme="Default"> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="295622" /> | |
<option name="ANNOTATIONS_COLOR" value="b2c0c6" /> | |
<option name="CARET_COLOR" value="bbbbbb" /> | |
<option name="CARET_ROW_COLOR" value="" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="1c1c1c" /> | |
<option name="FILESTATUS_ADDED" value="629755" /> | |
<option name="FILESTATUS_DELETED" value="6c6c6c" /> | |
<option name="FILESTATUS_IDEA_FILESTATUS_DELETED_FROM_FILE_SYSTEM" value="6c6c6c" /> |
https://jira.walmart.com/browse/CEECORE-255
Electrode Application can use css-modules
as one of the style options, CSS names can get long with local identifier name and random hash.
var feed = new Instafeed({ | |
get: 'user', | |
userId: 636337139, | |
accessToken: '262351.467ede5.176ab1984b1d47e6b8dea518109d7a5e', | |
link: 'true', | |
clientId: '80aeda87e8c44281b83ce6f542a30933', | |
limit: '1', | |
sortBy: 'most-recent', | |
resolution: 'standard_resolution', | |
links: false, |
{ | |
"name": "yourcompany/myproject", | |
"description": "Какой-то проект нашей компании", | |
"keywords": ["bitrix", "проектище"], | |
"homepage": "http://bitrix.expert/", | |
"type": "project", | |
"license": "Commerce", | |
"support": { | |
"source": "http://github.com/bitrix-expert/" | |
}, |
const runQuery = createEffect({ | |
handler(props) { | |
console.log(props) | |
}, | |
}) | |
const createOnceEvent = to => { | |
const from = createEvent() | |
const unsubscribe = forward({from, to}) | |
from.watch(unsubscribe) |
/* euclidean GCD (feel free to use any other) */ | |
function gcd(a,b) {if(b>a) {temp = a; a = b; b = temp} while(b!=0) {m=a%b; a=b; b=m;} return a;} | |
/* ratio is to get the gcd and divide each component by the gcd, then return a string with the typical colon-separated value */ | |
function ratio(x,y) {c=gcd(x,y); return ""+(x/c)+":"+(y/c)} | |
/* eg: | |
> ratio(320,240) | |
"4:3" | |
> ratio(360,240) |
Firstly install Brew on your MAC
Then install PHP
/* | |
Escape JSON | |
*/ | |
var escapeJSON = exports.escapeJSON = function(json) { | |
var escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; | |
var meta = { // table of character substitutions | |
'\b': '\\b', | |
'\t': '\\t', | |
'\n': '\\n', | |
'\f': '\\f', |
// Adapted from: https://www.geeksforgeeks.org/find-length-largest-region-boolean-matrix/ | |
"use strict"; | |
var M1 = [ | |
[ 0, 0, 1, 1, 0 ], | |
[ 1, 0, 1, 1, 0 ], | |
[ 0, 1, 0, 0, 0 ], | |
[ 0, 0, 0, 1, 1 ] | |
]; |