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
Ext.define('MyApp.view.ViewWithDomEvents', { | |
extend: 'Ext.Panel', | |
config: { | |
items: | |
[ | |
{ | |
xtype: 'button', | |
itemId: 'sampleButton' | |
} |
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
Ext.define('SenchaSandbox.util.NotificationManager', { | |
alternateClassName: 'NotificationManager', | |
requires: ['Ext.MessageBox'], | |
mixins: ['Ext.mixin.Observable'], | |
singleton: true, | |
constructor: function(config) { | |
this.initConfig(config); |
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
'use strict' | |
let MyObject = require('./myObject'); | |
let myObjectInstance = new MyObject('abc'); | |
console.log(myObjectInstance.externalFunction()); |
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
{ | |
// Use IntelliSense to find out which attributes exist for node debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
// Debug a single Mocha test file and allow breakpoints to be set in the .ts file. | |
{ | |
"type": "node2", | |
"request": "launch", |
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
// SOURCE: https://techcommunity.microsoft.com/t5/sql-server-support/why-is-my-command-not-timing-out-jdbc/ba-p/317248 | |
import java.sql.*; | |
public class Timeout { | |
public static void method1(CallableStatement c, int timeout) { | |
long start = System.currentTimeMillis(); | |
long stop = 0; |
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
defmodule Parent do | |
use Ecto.Schema | |
import Ecto.Changeset | |
schema "parents" do | |
field :name, :string | |
embeds_one :child, Child do | |
field :name, :string | |
field :age, :integer |