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
require 'csv' | |
require 'fileutils' | |
require 'open3' | |
INPUT_FILE = 'peripheral-input.csv' | |
GIT_CLONE_LOC = 'https://github.com/kineticdata' | |
CLONE_STORAGE_DIR_NAME = 'clone-storage' | |
PERIPH_STORAGE_DIR_NAME = 'peripherial-storage' | |
REPO_PRIFIX = 'peripherals-' | |
LOG_FILE = 'log.txt' |
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
import React, { Fragment } from 'react'; | |
import { KappLink as Link, PageTitle } from 'common'; | |
import { CatalogSearchContainer } from '../shared/CatalogSearchContainer'; | |
import { CategoryCard } from '../shared/CategoryCard'; | |
import { ServiceCard } from '../shared/ServiceCard'; | |
import { RequestCard, IntegrationCard } from '../shared/RequestCard'; | |
import { getSubmissionPath } from '../../utils'; | |
import { I18n } from '../../../../app/src/I18nProvider'; | |
export const Catalog = ({ |
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
require 'json' | |
begin | |
file = File.open("./output", "w") | |
file.write("handler,host,password,api_server,api_password,server,password,smtp_server,smtp_password") | |
file.puts() | |
shas = `git log --pretty=format:"%h"` | |
shas.split("\n").each do |sha| | |
`git checkout #{sha}` |
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
checkEvaluator(form) { | |
/** | |
* getValue - return the value for the given feild | |
* | |
* @param {string} name of field on form | |
* @return {string} if the field doesn't esist a false is returned | |
*/ | |
const getValue = fieldName => { | |
if (form.select(`field[${fieldName}]`)) { | |
return form.select(`field[${fieldName}]`).value(); |
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
{ | |
'info' => { | |
'username' => '', | |
'password' => '', | |
'enable_debug_logging' => 'Yes' | |
}, | |
'parameters' => { | |
'action' => 'get_notification_reports_op', | |
'xml' => | |
'<root> |
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
export const handleSort = ({ rows, setRows, resetOffset, setSort }) => ( | |
sortColumn, | |
sortDirection, | |
) => { | |
setSort({ column: sortColumn, direction: sortDirection }); | |
resetOffset(); | |
/** | |
* Some columns that are sorted on return an object and not a string; this is result of the date-grid library. | |
* If the sortProperty key has been added to the object then the sort function will use that property to sort on. | |
*/ |
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
global.lastUpdate = ""; | |
global.lookupData = ""; | |
$("#cco-cmo-messages").text(""); | |
searchConfig = typeof searchConfig == 'undefined' ? {} : searchConfig; | |
searchConfig.ccoLookupTable = { | |
resource: { | |
name: 'CCO CMO Details' | |
}, | |
resultsContainer: |
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
# Add each of the gems to the load path (so that ruby/rubygems is not necessary to run this script) | |
$:.unshift File.dirname(__FILE__) | |
Dir[File.join(File.dirname(__FILE__), 'vendor', 'gems', '*', 'lib')].sort.each do |libdir| | |
$:.unshift libdir | |
end | |
# Require gems | |
require 'zip' | |
# # Require the Kinetic SDK from the vendor directory |
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
responceHandler = arr => { | |
if (arr.length > 0) { | |
this.post(arr); | |
} else { | |
setTimeout(() => this.fetch(), 3000); | |
} | |
}; | |
post = ([head, ...tail]) => { | |
if (head.id) { |
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
import { fromJS } from 'immutable'; | |
export const types = { | |
SET_ROWS: '@aegon/catalog/SET_ROWS', | |
SET_PAGINATION: '@aegon/catalog/SET_PAGINATION', | |
SET_OFFSET: '@aegon/catalog/SET_OFFSET', | |
RESET_ROWS: '@aegon/catalog/RESET_ROWS', | |
RESET_OFFSET: '@aegon/catalog/RESET_OFFSET', | |
RESET_COMPLETE: '@aegon/catalog/RESET_COMPLETE', | |
}; |