This file contains hidden or 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
//Script here | |
var row = createRowCopy(getOutputRowMeta().size()); | |
for(var i = 0; i < parsed.data.length; i++) { | |
//Alert(one_data.name); | |
var one_var = parsed.data[i]; | |
name = one_var.name; | |
type = one_var.type; | |
value = one_var.value; |
This file contains hidden or 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
from __future__ import division | |
import gym | |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation | |
from keras.optimizers import sgd | |
import os | |
import random | |
from os.path import isfile | |
from collections import deque |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>create_new_transformation</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
class SqlMetadata: | |
def __init__(self, name, sql): | |
self.name = name | |
self.sql = sql | |
def getSql(self): | |
return self.sql+' as '+self.name | |
sqlarray = [SqlMetadata("score", "json_array_elements(restaurant_from_df.grades_json::json)->'score'"), | |
SqlMetadata("grade", "json_array_elements(restaurant_from_df.grades_json::json)->'grade'"), | |
SqlMetadata("date", "json_array_elements(restaurant_from_df.grades_json::json)->'date'"), | |
] |
This file contains hidden or 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
from sqlalchemy.sql import text, select, join | |
def wrap_array_for_columns(arr): | |
return map(lambda x: text(column_text(x)), arr) | |
def column_text(column_struct): | |
_name = column_struct.get("name") | |
_table = column_struct.get("table") | |
_alias = column_struct.get("alias", _name) | |
if _table is None: | |
return "%s as %s"%(_name, _alias) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: myapp-svc | |
spec: | |
selector: | |
app: myapp | |
ports: | |
- protocol: TCP | |
port: 5432 |
This file contains hidden or 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
<div id="editor" style="height: 600px"></div> | |
<script> | |
$.getScript('https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js', | |
()=>{ | |
var editor = ace.edit("editor"); | |
editor.setTheme("ace/theme/monokai"); | |
editor.getSession().setMode("ace/mode/javascript"); | |
}); | |
this.scope.newtoast = function() { | |
return ace.edit('editor').getSession().getValue(); |
This file contains hidden or 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
global: │~ | |
configname: post │~ | |
│~ | |
sub1: │~ | |
exports: │~ | |
data: │~ | |
dbname: testsample │~ | |
env: │~ | |
data1: new |