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
#!/bin/bash | |
deb_pkg=$(which dpkg) | |
rpm_pkg=$(which rpm) | |
pkgType="" | |
if [ -n $deb_pkg ]; then | |
pkgCount=$(dpkg --get-selections | grep "[[:space:]]install" | wc -l) | |
if [ $pkgCount != "0" ]; then | |
pkgType="deb" |
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
const instance = | |
window.$resizeWatcher || | |
(window.$resizeWatcher = { | |
entries: [], | |
handlers: [], | |
observer: new ResizeObserver(entries => | |
entries.forEach(entry => { | |
var index = instance.entries.indexOf(entry.target); | |
if (index > -1) { | |
instance.handlers[index].handle(entry.contentRect); |
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
<Query Kind="Program" /> | |
void Main() | |
{ | |
"Test String: empty => value".Dump(); | |
var testCase = new testcase { TestString = string.Empty }; | |
testCase.UpdateIfDifferent(x => x.TestString, "new value"); | |
"Test String: value => empty".Dump(); | |
testCase = new testcase { TestString = "new value" }; | |
testCase.UpdateIfDifferent(x => x.TestString, string.Empty); |
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
$("[id='" + $(".branch-container button").filter(function(){ var val = ($(this).attr("aria-controls") || ""); return val.indexOf("branch-actions-release/") == -1 && val !== "branch-actions-master" && val !== "branch-actions-develop";}).first().attr("aria-controls") + "'] .close-branch").click(); | |
$("button.aui-button.aui-button-primary.dialog-submit").click(); |
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
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Data.SqlTypes; | |
using System.Text; | |
using Microsoft.SqlServer.Server; | |
public class Functions | |
{ | |
[SqlFunction(IsDeterministic = true, IsPrecise = true, DataAccess = DataAccessKind.None)] |
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
/* | |
* This is an example of how to turn your typescript modules into functions. | |
*/ | |
function Example(command: string, ...params: any[]): void; | |
function Example(command: string, ...params: any[]): any { | |
var isConstructor = false; | |
if (this instanceof Example && !this.__previouslyConstructedByExample) { | |
isConstructor = true; | |
this.__previouslyConstructedByExample = true; | |
} |
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
(function ($) { | |
// var fn = $.signalR.subscribe("hub", "method", function(data){ /* do something */ }); | |
// $.signalR.unsubscribe(fn); | |
// $.signalR.onConnected(function(clientId){ /* do something */ }); | |
var signalr_conn_timeout, onConnect, onDisconnect, handleInt, | |
validateSub, subscriptions, connected, log, init, notifyConnected, | |
connectedSubs; | |
// identity seed for handle names |