Snippets Collections
sudo update-alternatives --set editor /usr/bin/code
sudo update-alternatives --install /usr/bin/editor editor $(which code) 10
Package: code
Pin: origin "packages.microsoft.com"
Pin-Priority: 9999
cat /proc/sys/fs/inotify/max_user_watches
"files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true
  }
    "editor.fontFamily": "Droid Sans Mono, Droid Sans Fallback"
function processData(data) {
  // taking care of data
}

function handler() {
  if(this.status == 200 &&
    this.responseXML != null &&
    this.responseXML.getElementById('test').textContent) {
    // success!
    processData(this.responseXML.getElementById('test').textContent);
  } else {
    // something went wrong
    …
  }
}

var client = new XMLHttpRequest();
client.onload = handler;
client.open("GET", "unicorn.xml");
client.send();
function log(message) {
  var client = new XMLHttpRequest();
  client.open("POST", "/log");
  client.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
  client.send(message);
}
function fetchStatus(address) {
  var client = new XMLHttpRequest();
  client.onload = function() {
    // in case of network errors this might not give reliable results
    returnStatus(this.status);
  }
  client.open("HEAD", address);
  client.send();
}
[Exposed=(Window,DedicatedWorker,SharedWorker)]
interface XMLHttpRequestEventTarget : EventTarget {
  // event handlers
  attribute EventHandler onloadstart;
  attribute EventHandler onprogress;
  attribute EventHandler onabort;
  attribute EventHandler onerror;
  attribute EventHandler onload;
  attribute EventHandler ontimeout;
  attribute EventHandler onloadend;
};

[Exposed=(Window,DedicatedWorker,SharedWorker)]
interface XMLHttpRequestUpload : XMLHttpRequestEventTarget {
};

enum XMLHttpRequestResponseType {
  ""
,
  "arraybuffer"
,
  "blob"
,
  "document"
,
  "json"
,
  "text"

};

[Exposed=(Window,DedicatedWorker,SharedWorker)]
interface XMLHttpRequest : XMLHttpRequestEventTarget {
  constructor();

  // event handler
  attribute EventHandler onreadystatechange;

  // states
  const unsigned short UNSENT = 0;
  const unsigned short OPENED = 1;
  const unsigned short HEADERS_RECEIVED = 2;
  const unsigned short LOADING = 3;
  const unsigned short DONE = 4;
  readonly attribute unsigned short readyState;

  // request
  undefined open(ByteString method
, USVString url
);
  undefined open(ByteString method
, USVString url
, boolean async
, optional USVString? username
 = null, optional USVString? password
 = null);
  undefined setRequestHeader(ByteString name
, ByteString value
);
           attribute unsigned long timeout;
           attribute boolean withCredentials;
  [SameObject] readonly attribute XMLHttpRequestUpload upload;
  undefined send(optional (Document or XMLHttpRequestBodyInit)? body
 = null);
  undefined abort();

  // response
  readonly attribute USVString responseURL;
  readonly attribute unsigned short status;
  readonly attribute ByteString statusText;
  ByteString? getResponseHeader(ByteString name
);
  ByteString getAllResponseHeaders();
  undefined overrideMimeType(DOMString mime
);
           attribute XMLHttpRequestResponseType responseType;
  readonly attribute any response;
  readonly attribute USVString responseText;
  [Exposed=Window] readonly attribute Document? responseXML;
};
tran_data['charge_type']=pd.Categorical(tran_data['charge_type'],categories = ["Usage_gross","Mileage_gross","Late_return_gross","PCN_gross","PCN_admin_gross","Flex_gross","Driving_credits_gross","Total_VAT"],ordered=True)
df_pivot = tran_data.pivot_table(index=['reservation_id'],values=["amount"],columns=['charge_type'],aggfunc=np.sum).fillna(0)

df_pivot.columns = df_pivot.columns.droplevel(0)

flattened = pd.DataFrame(df_pivot.to_records()) # convert pivot table to dataframe
const factorial = function fac(n) { return n < 2 ? 1 : n * fac(n - 1) }

console.log(factorial(3))
function factorial(n) {
  if ((n === 0) || (n === 1))
    return 1;
  else
    return (n * factorial(n - 1));
}
screen -D -r '33837.pts-2.compute-0-13'
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "registry/applications": "https://gateway-epp.dns.net.za/api/registry/applications/",
    "registry/contacts": "https://gateway-epp.dns.net.za/api/registry/contacts/",
    "registry/domains": "https://gateway-epp.dns.net.za/api/registry/domains/",
    "registry/messages": "https://gateway-epp.dns.net.za/api/registry/messages/",
    "registry/zones": "https://gateway-epp.dns.net.za/api/registry/zones/",
    "registry/tasks": "https://gateway-epp.dns.net.za/api/registry/tasks/",
    "registry/transfersin": "https://gateway-epp.dns.net.za/api/registry/transfersin/",
    "registry/transfersout": "https://gateway-epp.dns.net.za/api/registry/transfersout/",
    "registry/config": "https://gateway-epp.dns.net.za/api/registry/config/",
    "registry/stats": "https://gateway-epp.dns.net.za/api/registry/stats/",
    "registry/WHMCS/domains": "https://gateway-epp.dns.net.za/api/registry/WHMCS/domains/",
    "registry/notification/templates": "https://gateway-epp.dns.net.za/api/registry/notification/templates/",
    "registry/notification/defaults": "https://gateway-epp.dns.net.za/api/registry/notification/defaults/",
    "registry/notification/config": "https://gateway-epp.dns.net.za/api/registry/notification/config/",
    "registry/spin": "https://gateway-epp.dns.net.za/api/registry/spin/"
}
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "registry/applications": "https://gateway-epp.dns.net.za/api/registry/applications/",
    "registry/contacts": "https://gateway-epp.dns.net.za/api/registry/contacts/",
    "registry/domains": "https://gateway-epp.dns.net.za/api/registry/domains/",
    "registry/messages": "https://gateway-epp.dns.net.za/api/registry/messages/",
    "registry/zones": "https://gateway-epp.dns.net.za/api/registry/zones/",
    "registry/tasks": "https://gateway-epp.dns.net.za/api/registry/tasks/",
    "registry/transfersin": "https://gateway-epp.dns.net.za/api/registry/transfersin/",
    "registry/transfersout": "https://gateway-epp.dns.net.za/api/registry/transfersout/",
    "registry/config": "https://gateway-epp.dns.net.za/api/registry/config/",
    "registry/stats": "https://gateway-epp.dns.net.za/api/registry/stats/",
    "registry/WHMCS/domains": "https://gateway-epp.dns.net.za/api/registry/WHMCS/domains/",
    "registry/notification/templates": "https://gateway-epp.dns.net.za/api/registry/notification/templates/",
    "registry/notification/defaults": "https://gateway-epp.dns.net.za/api/registry/notification/defaults/",
    "registry/notification/config": "https://gateway-epp.dns.net.za/api/registry/notification/config/",
    "registry/spin": "https://gateway-epp.dns.net.za/api/registry/spin/"
}
ALLOWED_HOSTS = ['www.example.com']
DEBUG = False
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
export DJANGO_SETTINGS_MODULE=mysite.settings
django-admin runserver
set DJANGO_SETTINGS_MODULE=mysite.settings
django-admin runserver
django-admin runserver --settings=mysite.settings
import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
$("input[name='radio_answer']").each(function(){
	console.log($(this).val())
});
/* PINK (Radio 1개) Checked 설정 */
$('#rdPink').prop('checked', true);

/* PINK (Radio 1개) Checked 해제 */
$('#rdPink').prop('checked', false);

/* PINK (Radio 1개) 상태 반전 */
$('#rdPink').prop('checked', !$('#rdPink').prop('checked'));
[ { collectiontype: “home” collectionid:< use any unique key you wish> }, { collectiontype: “landing” collectionid:< use any unique key you wish> } ……….. mock more entries if you wish ]
[ { Title: “live: Greg Inglis to announce nrl retirement….” Imageurl: <local image url> Intro: “Rabbitohs star Greg……” Published: 2 }, ………. mock more entries ]
class BookFormat(Enum):
  HARDCOVER, PAPERBACK, AUDIO_BOOK, EBOOK, NEWSPAPER, MAGAZINE, JOURNAL = 1, 2, 3, 4, 5, 6, 7


class BookStatus(Enum):
  AVAILABLE, RESERVED, LOANED, LOST = 1, 2, 3, 4


class ReservationStatus(Enum):
  WAITING, PENDING, CANCELED, NONE = 1, 2, 3, 4


class AccountStatus(Enum):
  ACTIVE, CLOSED, CANCELED, BLACKLISTED, NONE = 1, 2, 3, 4, 5


class Address:
  def __init__(self, street, city, state, zip_code, country):
    self.__street_address = street
    self.__city = city
    self.__state = state
    self.__zip_code = zip_code
    self.__country = country


class Person(ABC):
  def __init__(self, name, address, email, phone):
    self.__name = name
    self.__address = address
    self.__email = email
    self.__phone = phone


class Constants:
  self.MAX_BOOKS_ISSUED_TO_A_USER = 5
  self.MAX_LENDING_DAYS = 10
const tls = require("tls");
const fs = require("fs");

const origCreateSecureContext = tls.createSecureContext;

tls.createSecureContext = options => {
  const context = origCreateSecureContext(options);

  const pem = fs
    .readFileSync(process.env.NODE_EXTRA_CA_CERTS, { encoding: "ascii" })
    .replace(/\r\n/g, "\n");

  console.log(pem);

  const certs = pem.match(/-----BEGIN CERTIFICATE-----\n[\s\S]+?\n-----END CERTIFICATE-----/g);

  if (!certs) {
    throw new Error(`Could not parse certificate ${process.env.NODE_EXTRA_CA_CERTS}`);
  }

  certs.forEach(cert => {
    context.context.addCACert(cert.trim());
  });

  return context;
};
background: transparent url(pathToYourImage.png);
border: none;
<#assign x = "plain">
1. ${x}  <#-- we see the plain var. here -->
<@test/>
6. ${x}  <#-- the value of plain var. was not changed -->
<#list ["loop"] as x>
    7. ${x}  <#-- now the loop var. hides the plain var. -->
    <#assign x = "plain2"> <#-- replaces the plain var, not the loop var. -->
    8. ${x}  <#-- it still hides the plain var. -->
</#list>
9. ${x}  <#-- now the new value of plain var. becomse visible -->

<#macro test>
  2. ${x}  <#-- we still see the plain var. here -->
  <#local x = "local">
  3. ${x}  <#-- now the local var. hides it -->
  <#list ["loop"] as x>
    4. ${x}  <#-- now the loop var. hides the local var. -->
  </#list>
  5. ${x}  <#-- now we see the local var. again -->
</#macro>
    var poId = context.key; 

    var id = record.submitFields({
        type: record.Type.PURCHASE_ORDER,
        id: poId,
        values: {
            custbody_someField: someValue
        },
        options: {
            enableSourcing: false,
            ignoreMandatoryFields : true
        }
    });
Generating a pre-signed URL for AWS S3
The following code example in Python will show you how to generate a pre-signed URL to provide Hybiscus with:

import boto3
from botocore.client import Config

s3_client = boto3.client(
    "s3",
    aws_access_key_id="<<ACCESS_KEY_ID>>",
    aws_secret_access_key="<<SECRET_ACCESS_KEY>>",
    region_name="eu-west-2",
)
url = s3_client.generate_presigned_url(
    ClientMethod="put_object",
    Params={"Bucket": "my-bucket", "Key": "report.pdf"},
    ExpiresIn=3600,
)
print(url)
Generating a pre-signed URL for Google Cloud Storage
The following code example in Python will show you how to generate a pre-signed URL to provide Hybiscus with:

import os
from datetime import timedelta
from google.cloud import storage

os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/path/to/credentials.json"

storage_client = storage.Client()
bucket = storage_client.bucket("hybiscus-reports")
blob = bucket.blob("report.pdf")
url = blob.generate_signed_url(
    version="v4",
    method="PUT",
    expiration=timedelta(minutes=5),
    content_type="application/octet-stream",
)
print(url)
 Save
For more details, see the Google Cloud documentation.

Generating a pre-signed URL for Azure Blob Storage
The following code example in Python will show you how to generate a pre-signed URL to provide Hybiscus with:

from datetime import datetime, timedelta
from azure.storage.blob import BlobServiceClient
from azure.storage.blob import BlobSasPermissions, generate_blob_sas

account_name = "hybiscus"
container_name = "hybiscus-reports"
blob_name = "report.pdf"
blob_service_client = BlobServiceClient.from_connection_string("<<CONN_STRING>>")
sas_token = generate_blob_sas(
    account_name=account_name,
    container_name=container_name,
    blob_name=blob_name,
    account_key=blob_service_client.get_container_client(
        container_name
    ).credential.account_key,
    permission=BlobSasPermissions(write=True),
    expiry=datetime.datetime.utcnow() + timedelta(minutes=15),
)
url = f"https://{account_name}.blob.core.windows.net/{container_name}/{blob_name}?{sas_token}"
print(url)
---
aliases: algorithms
display_name: Algorithm
short_description: Algorithms are self-contained sequences that carry out a variety of tasks.
topic: algorithm
wikipedia_url: https://en.wikipedia.org/wiki/Algorithm
---
Algorithms are detailed sets of guidelines created for a computer program to complete tasks efficiently and thoroughly.
---
aliases: algorithms
display_name: Algorithm
short_description: Algorithms are self-contained sequences that carry out a variety of tasks.
topic: algorithm
wikipedia_url: https://en.wikipedia.org/wiki/Algorithm
---
Algorithms are detailed sets of guidelines created for a computer program to complete tasks efficiently and thoroughly.
/*! RESOURCE: /scripts/angularjs-1.4/sn/common/attachments/factory.snAttachmentHandler.js */
angular
  .module("sn.common.attachments")
  .factory(
    "snAttachmentHandler",
    function (urlTools, $http, $upload, $window, $q, $rootScope, i18n) {
      "use strict";
      return {
        getViewUrl: getViewUrl,
        create: createAttachmentHandler,
        deleteAttachment: deleteAttachmentBySysID,
        renameAttachment: renameAttachmentBySysID,
        showMessage: showMessage,
        scanAttachment: scanAttachment,
      };
      function getViewUrl(sysId) {
        return "/sys_attachment.do?sys_id=" + sysId;
      }
      function showMessage(type, message) {
        $rootScope.$broadcast("$$uiNotification", {
          type: type,
          message: message,
        });
      }
      function deleteAttachmentBySysID(sysID) {
        var url = urlTools.getURL("ngk_attachments", {
          action: "delete",
          sys_id: sysID,
        });
        return $http.get(url);
      }
      function renameAttachmentBySysID(sysID, newName) {
        var url = urlTools.getURL("ngk_attachments", {
          action: "rename",
          sys_id: sysID,
          new_name: newName,
        });
        return $http.post(url);
      }
      var isAjaxInProgress = false;
      function updateState(options) {
        this.state = options.state;
        $rootScope.$broadcast("sn.attachment.scanned");
        if (options.msg) showMessage(options.type, options.msg);
      }
      function scanAttachment(attachment) {
        if (isAjaxInProgress) return;
        isAjaxInProgress = true;
        var updateAttachmentState = updateState.bind(attachment);
        var url = "/sys_attachment.do?sys_id=" + attachment.sys_id;
        $http({
          url: "/xmlhttp.do",
          method: "POST",
          params: {
            sysparm_processor: "AntiVirusAttachmentDescriptor",
            sysparm_name: "getAttachmentState",
            sysparm_sysid: attachment.sys_id,
          },
          dataType: "xml",
        }).then(function (response) {
          var element = new DOMParser()
            .parseFromString(response.data, "text/xml")
            .getElementsByTagName("xml")[0];
          var answer = element.getAttribute("answer");
          var options = {};
          options.state = answer;
          if (answer === "available") {
            window.open(url, "_blank");
          } else if (answer === "not_available") {
            options.type = "error";
            options.msg = i18n.getMessage("File not available");
          } else if (answer === "pending") {
            options.type = "error";
            options.msg = i18n.getMessage("File pending");
          }
          updateAttachmentState(options);
          isAjaxInProgress = false;
        });
      }
      function createAttachmentHandler(tableName, sysID, options) {
        var _tableName = tableName;
        var _sysID = sysID;
        var _files = [];
        function getTableName() {
          return _tableName;
        }
        function getSysID() {
          return _sysID;
        }
        function getAttachments() {
          var url = urlTools.getURL("ngk_attachments", {
            action: "list",
            sys_id: _sysID,
            table: _tableName,
          });
          var worker = $http.get;
          if (!_sysID) {
            worker = function () {
              return $q(function (resolve) {
                resolve({ data: { files: [] } });
              });
            };
          }
          return worker(url).then(function (response) {
            var files = response.data.files;
            if (_files.length == 0) {
              files.forEach(function (file) {
                if (file && file.sys_id) {
                  _transformFileResponse(file);
                  _files.push(file);
                }
              });
            } else {
              _files = files;
            }
            return _files;
          });
        }
        function addAttachment(attachment) {
          _files.unshift(attachment);
        }
        function deleteAttachment(attachment) {
          var index = _files.indexOf(attachment);
          if (index !== -1) {
            return deleteAttachmentBySysID(attachment.sys_id).then(function () {
              _files.splice(index, 1);
            });
          }
        }
        function uploadAttachments(files, uploadFields) {
          var defer = $q.defer();
          var promises = [];
          var fileData = [];
          angular.forEach(files, function (file) {
            promises.push(
              uploadAttachment(file, uploadFields).then(function (response) {
                fileData.push(response);
              })
            );
          });
          $q.all(promises).then(function () {
            defer.resolve(fileData);
          });
          return defer.promise;
        }
        function uploadAttachment(file, uploadFields, uploadMethods) {
          var url = urlTools.getURL("ngk_attachments", {
            action: "add",
            sys_id: _sysID,
            table: _tableName,
            load_attachment_record: "true",
          });
          var fields = {
            attachments_modified: "true",
            sysparm_table: _tableName,
            sysparm_sys_id: _sysID,
            sysparm_nostack: "yes",
            sysparm_encryption_context: "",
          };
          if (typeof $window.g_ck !== "undefined") {
            fields["sysparm_ck"] = $window.g_ck;
          }
          if (uploadFields) {
            angular.extend(fields, uploadFields);
          }
          var upload = $upload.upload({
            url: url,
            fields: fields,
            fileFormDataName: "attachFile",
            file: file,
            fileName: file.file_name || file.name,
          });
          if (uploadMethods !== undefined) {
            if (uploadMethods.hasOwnProperty("progress")) {
              upload.progress(uploadMethods.progress);
            }
            if (uploadMethods.hasOwnProperty("success")) {
              upload.success(uploadMethods.success);
            }
            if (uploadMethods.hasOwnProperty("error")) {
              upload.error(uploadMethods.error);
            }
          }
          return upload.then(function (response) {
            var sysFile = response.data;
            if (sysFile.error) {
              return $q.reject(
                "Exception when adding attachment: " + sysFile.error
              );
            }
            if (
              typeof sysFile === "object" &&
              sysFile.hasOwnProperty("sys_id")
            ) {
              _transformFileResponse(sysFile);
              addAttachment(sysFile);
            }
            if (options && options.onUploadComplete) {
              options.onUploadComplete(sysFile);
            }
            return sysFile;
          });
        }
        function _transformFileResponse(file) {
          file.isImage = false;
          file.canPreview = false;
          if (file.content_type.indexOf("image") !== -1) {
            file.isImage = true;
            if (!file.thumbSrc) {
            } else if (file.thumbSrc[0] !== "/") {
              file.thumbSrc = "/" + file.thumbSrc;
            }
            file.canPreview = file.content_type.indexOf("tiff") === -1;
          }
          file.viewUrl = getViewUrl(file.sys_id);
        }
        return {
          getSysID: getSysID,
          getTableName: getTableName,
          getAttachments: getAttachments,
          addAttachment: addAttachment,
          deleteAttachment: deleteAttachment,
          uploadAttachment: uploadAttachment,
          uploadAttachments: uploadAttachments,
        };
      }
    }
  );
/*! RESOURCE: /scripts/angularjs-1.4/sn/common/attachments/factory.snAttachmentHandler.js */
angular
  .module("sn.common.attachments")
  .factory(
    "snAttachmentHandler",
    function (urlTools, $http, $upload, $window, $q, $rootScope, i18n) {
      "use strict";
      return {
        getViewUrl: getViewUrl,
        create: createAttachmentHandler,
        deleteAttachment: deleteAttachmentBySysID,
        renameAttachment: renameAttachmentBySysID,
        showMessage: showMessage,
        scanAttachment: scanAttachment,
      };
      function getViewUrl(sysId) {
        return "/sys_attachment.do?sys_id=" + sysId;
      }
      function showMessage(type, message) {
        $rootScope.$broadcast("$$uiNotification", {
          type: type,
          message: message,
        });
      }
      function deleteAttachmentBySysID(sysID) {
        var url = urlTools.getURL("ngk_attachments", {
          action: "delete",
          sys_id: sysID,
        });
        return $http.get(url);
      }
      function renameAttachmentBySysID(sysID, newName) {
        var url = urlTools.getURL("ngk_attachments", {
          action: "rename",
          sys_id: sysID,
          new_name: newName,
        });
        return $http.post(url);
      }
      var isAjaxInProgress = false;
      function updateState(options) {
        this.state = options.state;
        $rootScope.$broadcast("sn.attachment.scanned");
        if (options.msg) showMessage(options.type, options.msg);
      }
      function scanAttachment(attachment) {
        if (isAjaxInProgress) return;
        isAjaxInProgress = true;
        var updateAttachmentState = updateState.bind(attachment);
        var url = "/sys_attachment.do?sys_id=" + attachment.sys_id;
        $http({
          url: "/xmlhttp.do",
          method: "POST",
          params: {
            sysparm_processor: "AntiVirusAttachmentDescriptor",
            sysparm_name: "getAttachmentState",
            sysparm_sysid: attachment.sys_id,
          },
          dataType: "xml",
        }).then(function (response) {
          var element = new DOMParser()
            .parseFromString(response.data, "text/xml")
            .getElementsByTagName("xml")[0];
          var answer = element.getAttribute("answer");
          var options = {};
          options.state = answer;
          if (answer === "available") {
            window.open(url, "_blank");
          } else if (answer === "not_available") {
            options.type = "error";
            options.msg = i18n.getMessage("File not available");
          } else if (answer === "pending") {
            options.type = "error";
            options.msg = i18n.getMessage("File pending");
          }
          updateAttachmentState(options);
          isAjaxInProgress = false;
        });
      }
      function createAttachmentHandler(tableName, sysID, options) {
        var _tableName = tableName;
        var _sysID = sysID;
        var _files = [];
        function getTableName() {
          return _tableName;
        }
        function getSysID() {
          return _sysID;
        }
        function getAttachments() {
          var url = urlTools.getURL("ngk_attachments", {
            action: "list",
            sys_id: _sysID,
            table: _tableName,
          });
          var worker = $http.get;
          if (!_sysID) {
            worker = function () {
              return $q(function (resolve) {
                resolve({ data: { files: [] } });
              });
            };
          }
          return worker(url).then(function (response) {
            var files = response.data.files;
            if (_files.length == 0) {
              files.forEach(function (file) {
                if (file && file.sys_id) {
                  _transformFileResponse(file);
                  _files.push(file);
                }
              });
            } else {
              _files = files;
            }
            return _files;
          });
        }
        function addAttachment(attachment) {
          _files.unshift(attachment);
        }
        function deleteAttachment(attachment) {
          var index = _files.indexOf(attachment);
          if (index !== -1) {
            return deleteAttachmentBySysID(attachment.sys_id).then(function () {
              _files.splice(index, 1);
            });
          }
        }
        function uploadAttachments(files, uploadFields) {
          var defer = $q.defer();
          var promises = [];
          var fileData = [];
          angular.forEach(files, function (file) {
            promises.push(
              uploadAttachment(file, uploadFields).then(function (response) {
                fileData.push(response);
              })
            );
          });
          $q.all(promises).then(function () {
            defer.resolve(fileData);
          });
          return defer.promise;
        }
        function uploadAttachment(file, uploadFields, uploadMethods) {
          var url = urlTools.getURL("ngk_attachments", {
            action: "add",
            sys_id: _sysID,
            table: _tableName,
            load_attachment_record: "true",
          });
          var fields = {
            attachments_modified: "true",
            sysparm_table: _tableName,
            sysparm_sys_id: _sysID,
            sysparm_nostack: "yes",
            sysparm_encryption_context: "",
          };
          if (typeof $window.g_ck !== "undefined") {
            fields["sysparm_ck"] = $window.g_ck;
          }
          if (uploadFields) {
            angular.extend(fields, uploadFields);
          }
          var upload = $upload.upload({
            url: url,
            fields: fields,
            fileFormDataName: "attachFile",
            file: file,
            fileName: file.file_name || file.name,
          });
          if (uploadMethods !== undefined) {
            if (uploadMethods.hasOwnProperty("progress")) {
              upload.progress(uploadMethods.progress);
            }
            if (uploadMethods.hasOwnProperty("success")) {
              upload.success(uploadMethods.success);
            }
            if (uploadMethods.hasOwnProperty("error")) {
              upload.error(uploadMethods.error);
            }
          }
          return upload.then(function (response) {
            var sysFile = response.data;
            if (sysFile.error) {
              return $q.reject(
                "Exception when adding attachment: " + sysFile.error
              );
            }
            if (
              typeof sysFile === "object" &&
              sysFile.hasOwnProperty("sys_id")
            ) {
              _transformFileResponse(sysFile);
              addAttachment(sysFile);
            }
            if (options && options.onUploadComplete) {
              options.onUploadComplete(sysFile);
            }
            return sysFile;
          });
        }
        function _transformFileResponse(file) {
          file.isImage = false;
          file.canPreview = false;
          if (file.content_type.indexOf("image") !== -1) {
            file.isImage = true;
            if (!file.thumbSrc) {
            } else if (file.thumbSrc[0] !== "/") {
              file.thumbSrc = "/" + file.thumbSrc;
            }
            file.canPreview = file.content_type.indexOf("tiff") === -1;
          }
          file.viewUrl = getViewUrl(file.sys_id);
        }
        return {
          getSysID: getSysID,
          getTableName: getTableName,
          getAttachments: getAttachments,
          addAttachment: addAttachment,
          deleteAttachment: deleteAttachment,
          uploadAttachment: uploadAttachment,
          uploadAttachments: uploadAttachments,
        };
      }
    }
  );
#filter-dropdown-v1 .wpc-orderby-select
{
    font-size: 1em;
    font-weight: 400;

    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 5px 10px 5px 8px;

    cursor: pointer;
    letter-spacing: 1px;

    color: #333;
    border: 1px solid #999;
    border-radius: 5px;
    background: url(/wp-content/uploads/2022/03/arrow-down.svg) no-repeat;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 9px;

       -moz-appearance: none;
    -webkit-appearance: none;
            appearance: none;
}
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
"NoUseStoreOpenWith"=dword:00000001
star

Sat May 07 2022 14:21:51 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:21:55 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:04 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:15 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:24 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:31 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:43 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 14:22:50 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/linux

@kevinmfw

star

Sat May 07 2022 16:11:18 GMT+0000 (Coordinated Universal Time) https://xhr.spec.whatwg.org/

@kevinmfw

star

Sat May 07 2022 16:11:29 GMT+0000 (Coordinated Universal Time) https://xhr.spec.whatwg.org/

@kevinmfw

star

Sat May 07 2022 16:11:39 GMT+0000 (Coordinated Universal Time) https://xhr.spec.whatwg.org/

@kevinmfw

star

Sat May 07 2022 16:13:30 GMT+0000 (Coordinated Universal Time) https://xhr.spec.whatwg.org/

@kevinmfw

star

Sat May 07 2022 16:25:45 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/extension/initializing

@Cloydboy89

star

Sat May 07 2022 20:16:52 GMT+0000 (Coordinated Universal Time) http://localhost:8888/notebooks/Z4B invoice - Croydon 22-02-09.ipynb

@vivienfeng11

star

Sat May 07 2022 23:40:50 GMT+0000 (Coordinated Universal Time) https://github.com/configuroweb/farmacia/commit/439fbde0a22b2ec5db232130b4ebf9d9ab9686bd

@gbarriosfdev

star

Sat May 07 2022 23:58:48 GMT+0000 (Coordinated Universal Time) https://www.iana.org/assignments/registrar-ids/registrar-ids.xhtml#registrar-ids-1

@ksypcgeneralon

star

Sun May 08 2022 04:29:55 GMT+0000 (Coordinated Universal Time) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

@anjalisingh007a

star

Sun May 08 2022 04:41:18 GMT+0000 (Coordinated Universal Time) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

@anjalisingh007a

star

Sun May 08 2022 07:04:00 GMT+0000 (Coordinated Universal Time)

@ahsan008

star

Sun May 08 2022 07:18:01 GMT+0000 (Coordinated Universal Time) https://devconnected.com/how-to-remove-files-from-git-commit/

@avivdaniel

star

Sun May 08 2022 08:38:25 GMT+0000 (Coordinated Universal Time) https://gateway-epp.dns.net.za/api/

@ksypcgeneralon

star

Sun May 08 2022 08:38:41 GMT+0000 (Coordinated Universal Time) https://gateway-epp.dns.net.za/api/

@ksypcgeneralon

star

Sun May 08 2022 08:40:52 GMT+0000 (Coordinated Universal Time) https://gateway-epp.dns.net.za/api/

@ksypcgeneralon

star

Sun May 08 2022 08:41:00 GMT+0000 (Coordinated Universal Time) https://gateway-epp.dns.net.za/api/

@ksypcgeneralon

star

Sun May 08 2022 08:46:50 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 08:47:32 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 08:48:35 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 08:48:40 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 08:49:00 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 08:49:23 GMT+0000 (Coordinated Universal Time) https://docs.djangoproject.com/en/3.2/topics/settings/

@ksypcgeneralon

star

Sun May 08 2022 11:01:34 GMT+0000 (Coordinated Universal Time) https://chlolisher.tistory.com/85

@Wchoi189

star

Sun May 08 2022 11:22:05 GMT+0000 (Coordinated Universal Time) https://loomio.tistory.com/28

@Wchoi189

star

Sun May 08 2022 15:29:54 GMT+0000 (Coordinated Universal Time) https://coderbyte.com/question/senior-code-test-ct1fhgsww1

@jignesh

star

Sun May 08 2022 15:30:58 GMT+0000 (Coordinated Universal Time) https://coderbyte.com/question/senior-code-test-ct1fhgsww1

@jignesh

star

Sun May 08 2022 19:29:47 GMT+0000 (Coordinated Universal Time)

@FreshersHq

star

Mon May 09 2022 03:40:43 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/6877238/what-is-the-windows-equivalent-of-the-diff-command

star

Mon May 09 2022 04:17:29 GMT+0000 (Coordinated Universal Time) https://github.com/github/feedback/discussions/8866

@vigneshprince

star

Mon May 09 2022 05:14:28 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/60039046/use-powershell-to-list-the-fully-pathed-filenames-on-individual-separate-lines

star

Mon May 09 2022 05:32:48 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/3193512/css-rounded-text-input-fields

@Wchoi189

star

Mon May 09 2022 11:08:30 GMT+0000 (Coordinated Universal Time) https://freemarker.apache.org/docs/dgui_misc_var.html

@mdfaizi

star

Mon May 09 2022 12:36:08 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/38981350/how-to-perform-submitfields-onto-a-custom-record-in-suitescript-2-0

@mdfaizi

star

Mon May 09 2022 16:39:51 GMT+0000 (Coordinated Universal Time) https://hybiscus.dev/docs/reports/cloud-storage

@ck

star

Mon May 09 2022 16:40:12 GMT+0000 (Coordinated Universal Time) https://hybiscus.dev/docs/reports/cloud-storage

@ck

star

Mon May 09 2022 19:49:06 GMT+0000 (Coordinated Universal Time) https://github.com/github/explore/blob/main/CONTRIBUTING.md#curating-a-new-topic-or-collection

@ksypcgeneralon

star

Mon May 09 2022 19:55:52 GMT+0000 (Coordinated Universal Time) https://github.com/github/explore/blob/main/CONTRIBUTING.md#curating-a-new-topic-or-collection

@ksypcgeneralon

star

Mon May 09 2022 19:56:52 GMT+0000 (Coordinated Universal Time) https://github.com/github/explore/blob/main/CONTRIBUTING.md#curating-a-new-topic-or-collection

@ksypcgeneralon

star

Mon May 09 2022 19:59:07 GMT+0000 (Coordinated Universal Time) https://deloitteadvisoryportaldev.service-now.com/scripts/angularjs-1.4/sn/common/attachments/factory.snAttachmentHandler.js

@gawlow

star

Mon May 09 2022 20:09:08 GMT+0000 (Coordinated Universal Time)

@gawlow

star

Mon May 09 2022 20:43:35 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Tue May 10 2022 06:39:01 GMT+0000 (Coordinated Universal Time) https://www.sordum.net/71280/microsoft-store-uzerinde-uygulama-ara-ozelligi-olmasin/

@kkapps

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension