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
const { app, Menu, Tray } = require('electron'); | |
// eslint-disable-next-line no-unused-vars | |
const MainWindow = require('./MainWindow'); | |
class AppTray extends Tray { | |
/** | |
* Creates an instance of AppTray. | |
* @param {string} icon | |
* @param {MainWindow} mainWindow | |
* @memberof AppTray |
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
<cfscript> | |
// run with Adobe 2018 engine cuz i'm lazy with semi-colons | |
public function doSomething( | |
any error = {} | |
){ | |
var result = {SUCCESS: false, ERRORS: []}; | |
if(isErrorObject(error)){ | |
arrayAppend(result.errors, { |
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
// The problem is that I need to change an objetc's key names | |
// the question then is which is better? | |
// method brute force | |
const toLocal = (item) => { | |
const newItem = {}; | |
newItem.itemId = item.ITEM_ID; | |
newItem.itemTitle = item.ITEM_TITLE | |
newItem.checklistIntId = item.CHECKLIST_INSTANCE_ID | |
// ... |
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
# FizzBizz | |
# https://www.codeeval.com/open_challenges/1/ | |
# Each line of input file: X Y Z | |
# where: X = first divisor, Y = second divisor, Z = number to count up to | |
# example: | |
# 3 5 10 => 1 2 F 4 B F 7 8 F B | |
# 2 7 15 => 1 F 3 F 5 F B F 9 F 11 F 13 FB 15 | |
myfile = ARGV[0] |