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
<template> | |
<div class=""> | |
<div class="level px-4 py-2 is-mobile is-hidden-desktop" style="border-bottom: 1px solid #dbdbdb"> | |
<div class="level-left"> | |
<figure class="image mt-1"> | |
<!-- <img src="~assets/arraycase-b.svg" style="width:120px;" alt="" /> --> | |
</figure> | |
</div> | |
<div class="level-right"> | |
<button class="button " @click="openSidebar = !openSidebar"> |
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
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ |
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
checkRule(one, operator, two) { | |
if (operator == '==') { | |
return one == two | |
} | |
return false | |
}, | |
getComputedStringFormula() { | |
let jsondata = this.json_dump_obj | |
let formula = ""; |
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 jsondata = { | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ | |
"operator": "and", | |
"rules": [ | |
{ |
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
<template> | |
<div class="container"> | |
<p class="is-size-5 has-text-weight-semibold">Formula Builder</p> | |
<br /> | |
<!-- Entry Form --> | |
<div class=""> | |
<div class=""> | |
<div class=""> |
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
let formula = ""; | |
for root rules array : | |
formula = [ first ] [ operator ] [ if second_value_type == 'value' then [ second] else [ second (master )] ] | |
for (rule,index) in rules.rules: | |
let rule_level_one = [ rule.first ] [ rule.operator ] [ if rule.second_value_type == 'value' then [ rule.second] else [ rule.second (master )] ] // Will be truth or false | |
if rule_level_one: | |
for sub_rule in rule.rules: | |
let sub_rule_temp = [ sub_rule.first ] [ sub_rule.operator ] [ if sub_rule.second_value_type == 'value' then [ sub_rule.second] else [ sub_rule.second (master )] ] |
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
<template> | |
<div class="container"> | |
<p class="is-size-5 has-text-weight-semibold">Formula Builder</p> | |
<br /> | |
<!-- Entry Form --> | |
<div class=""> | |
<div class=""> | |
<div class=""> |
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
<template> | |
<div> | |
<div class="section "> | |
<div class="columns is-vcentered is-centered" > | |
<div class="column is-5 "> | |
<div class="px-6 has-text-centered"> | |
<h2 class=" | |
title | |
serif |
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
<template> | |
<div class=""> | |
<div> | |
<div class="hero-img"> | |
<img class="plant_one" src="~assets/indigoplant-line.png" alt="" /> | |
<img class="plant_two" src="~assets/indigoplant-line.png" alt="" /> | |
<!-- <img class="pattern_left" src="~assets/pattern_three.png" alt="" /> | |
<img class="pattern_right" src="~assets/pattern_one.png" alt="" /> --> | |
</div> | |
<section class="section pb-6 bg-pattern has-background-bagru-red"> |
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
def nearly_equal(str1, str2): | |
m, n = len(str1) + 1, len(str2) + 1 | |
string_table = {} | |
for i in range(m): | |
string_table[i, 0] = i | |
for j in range(n): | |
string_table[0, j] = j |
NewerOlder