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
for (let i = 0; i <= 100; i++) { | |
const divisibleByFive = !(i % 5); | |
const divisibleByThree = !(i % 3); | |
console.log(((divisibleByThree ? 'Fizz' : '') + (divisibleByFive ? 'Buzz' : '')) || i); | |
} |
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
; Clipboardic is a clipboard manager for Windows by Nir Sofer (http://nirsoft.net). | |
; It does have a "stay in tray" option, but does not have a "start minimized" one. | |
; This script, when added to Startup, waits for the Clipboardic window to appear, closes it, | |
; and if it doesn't appear for a given amount of seconds (should be passed to the script, | |
; depends on your average load time, defaults to 5), unloads itself. | |
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% |
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
ymaps.modules.define( | |
'DeliveryCalculator', | |
['util.defineClass'], | |
function (provide, defineClass) { | |
/** | |
* @class DeliveryCalculator Расчет стоимости доставки. | |
* @param {Object} map Экземпляр карты. | |
*/ | |
function DeliveryCalculator (map) { | |
this._map = map; |
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
SQL> set sqlformat json | |
SQL> select cursor(select 1 as num from dual) cursor_column, 32767 number_column from dual; | |
������������ ��� �������: getOracleObject not implemented for class oracle.jdbc.driver.T4CResultSetAccessor | |
{"results":[{"columns":[{"name":"CURSOR_COLUMN","type":"NUMBER"},{"name":"NUMBER_COLUMN","type":"NUMBER"}],"items": | |
[ | |
]}]}no rows selected |
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
// capitalize words | |
function ucFirstAllWords( str ) | |
{ | |
var pieces = str.split(" "); | |
for ( var i = 0; i < pieces.length; i++ ) | |
{ | |
var j = pieces[i].charAt(0).toUpperCase(); | |
pieces[i] = j + pieces[i].substr(1); | |
} | |
return pieces.join(" "); |
NewerOlder