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
| import React, { Component } from 'react' | |
| import JsonSchemaForm from 'react-jsonschema-form' | |
| import NodeNumberInput from '../components/node-number-input' | |
| import NodeSchemaInput from '../components/node-schema-input' | |
| import FlowDataInput from '../components/flow-data-input' | |
| export default class FlowJsonSchemaEditor extends Component { | |
| state = { |
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
| import React, { Component } from 'react' | |
| export default class NodeSchemaInput extends Component { | |
| handleChange = () => { | |
| } | |
| render() { | |
| return <div> |
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
| { | |
| "type": "object", | |
| "title": "Citrix Sales to Pokemon!", | |
| "properties": { | |
| "name": { | |
| "title": "Seller Name", | |
| "type": "string" | |
| }, | |
| "customer": { | |
| "title": "Customer Name", |
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
| % function to create a vocabulary from multiple text files under folders | |
| function voc = buildVoc(folder, voc) | |
| stopword = {'ourselves', 'hers', 'between', 'yourself', 'but', 'again', 'there', ... | |
| 'about', 'once', 'during', 'out', 'very', 'having', 'with', 'they', 'own', ... | |
| 'an', 'be', 'some', 'for', 'do', 'its', 'yours', 'such', 'into', ... | |
| 'of', 'most', 'itself', 'other', 'off', 'is', 's', 'am', 'or', ... | |
| 'who', 'as', 'from', 'him', 'each', 'the', 'themselves', 'until', ... | |
| 'below', 'are', 'we', 'these', 'your', 'his', 'through', 'don', 'nor', ... |
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
| % function to create a vocabulary from multiple text files under folders | |
| function feat_vec = cse408_bow(filepath, voc) | |
| [fid, msg] = fopen(filepath, 'rt'); | |
| error(msg); | |
| line = fgets(fid); % Get the first line from the file. | |
| feat_vec = zeros(size(voc)); %Initialize the feature vector' | |
| % array of words |
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
| console.log(data) | |
| var filterBy | |
| // filtering | |
| switch (body.orderBy.toLowerCase()) { | |
| case 'name': | |
| filterBy = 'first_name' | |
| break; | |
| case 'age': | |
| filterBy = 'age' | |
| break; |
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
| #!/bin/bash | |
| for dir in $(ls) | |
| do | |
| if [ ! -f $dir/package.json ]; then | |
| echo 'No modules to install for: ' $dir | |
| else | |
| echo 'Reinstalling node_modules for: ' $dir; | |
| if [ -d $dir/node_modules/ ]; then | |
| rm -rf $dir/node_modules/ |
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
| Rayquaza-Mega @ Assault Vest | |
| Ability: Air Lock | |
| Shiny: Yes | |
| EVs: 252 Atk / 4 SpD / 252 Spe | |
| Jolly Nature | |
| - Air Slash | |
| - Aqua Tail | |
| - Dragon Ascent | |
| - Dragon Tail |
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
| let imageBuffer = Buffer.from(body.profilePicture.split(',')[1], 'base64'); | |
| console.log(imageBuffer); | |
| Jimp.read(imageBuffer, function(err, image) { | |
| if (err) { | |
| context.done(err, | |
| prepareErrorResponse(response, 'Unable to remove EXIF data from profile picture')); | |
| } | |
| console.log('before transform: ', image); | |
| image = image.resize(400, 400).exifRotate((err, exifRotatedData) => { |
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
| SELECT `first_name`, `last_name`, `averageRating`, `birthdate`, `created_at`, `gender`, `phone_number`, `profilePicture`, `profilePictureTag`, `status`, `user_type`, `userId`, `username`, `email`, `address` FROM `Agents` AS `Agents` WHERE `Agents`.`user_type` = 'admin' ORDER BY `Agents`.`first_name` ASC LIMIT 0, 10; |
OlderNewer