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 fetchData(callback) { | |
| // Simulating an API call with setTimeout: | |
| setTimeout(() => { | |
| console.log("Data fetched"); | |
| callback("Sample data"); | |
| }, 1000); | |
| } | |
| function processData() { | |
| console.log("Processing data..."); |
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 fetchData(callback) { | |
| // Simulating an API call with setTimeout: | |
| setTimeout(() => { | |
| console.log("Data fetched"); | |
| callback("Sample data"); | |
| }, 1000); | |
| } | |
| function processData() { | |
| console.log("Processing data..."); |
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 fetchData(callback) { | |
| // Simulating an API call with setTimeout: | |
| setTimeout(() => { | |
| console.log("Data fetched"); | |
| callback("Sample data"); | |
| }, 1000); | |
| } | |
| function processData() { | |
| console.log("Processing data..."); |
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 fetchData(callback) { | |
| // Simulating an API call with setTimeout: | |
| setTimeout(() => { | |
| console.log("Data fetched"); | |
| callback("Sample data"); | |
| }, 1000); | |
| } | |
| function processData() { | |
| console.log("Processing data..."); |
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 Controller from '@ember/controller'; | |
| import { action } from '@ember/object'; | |
| import { isBlank } from '@ember/utils'; | |
| export default class ApplicationController extends Controller { | |
| @action | |
| handleValidated({ target: { validationMessage, name } }) { | |
| console.log('did-validate event caught by form'); | |
| console.table([{ |
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 Controller from '@ember/controller'; | |
| import { action } from '@ember/object'; | |
| import { isEmpty } from '@ember/utils'; | |
| import { tracked } from '@glimmer/tracking'; | |
| class Validation { | |
| @tracked message = ''; | |
| @tracked displayError = false; | |
| get displayMessage() { |
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
| // This is the main script function | |
| function myFunction() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet() | |
| // target repositories | |
| var openedPullRequestsSpreadsheet = ss.getSheetByName('OPEN_PULL_REQUESTS'); | |
| // spreadsheet that contains a list of Github repositories | |
| var coreRepositoriesSpreadsheet = ss.getSheetByName('CORE_REPOSITORIES'); | |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
NewerOlder