Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
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
var teste_token = false; | |
if (responseCode.code === 200) { | |
var jsonData = JSON.parse(responseBody); | |
postman.setEnvironmentVariable("access_token", jsonData["access_token"]); | |
teste_token = true; | |
} |
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
<template> | |
<div></div> | |
</template> | |
<script> | |
import {kebabCase} from 'lodash'; | |
export default { | |
bindings: {type: '<'}, | |
controller: class ComponentCtrl { |
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
' Remove arquivos de logs antigos | |
On Error Resume Next | |
Set aArgs = WScript.Arguments | |
Set oFileSys = WScript.CreateObject("Scripting.FileSystemObject") | |
today = Date | |
' Informe a extensão dos arquivos que deseja | |
' remover separados por virgula. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
// We start by checking if the browser supports the | |
// Clipboard object. If not, we need to create a | |
// contenteditable element that catches all pasted data | |
if (!window.Clipboard) { | |
var pasteCatcher = document.createElement("div"); | |
// Firefox allows images to be pasted into contenteditable elements | |
pasteCatcher.setAttribute("contenteditable", ""); | |
// We can hide the element and append it to the body, |
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
var ng = angular.module; | |
function module() { | |
var hijacked = ng.apply(this, arguments); | |
function component() { | |
} | |
hijacked.component = component; | |
return hijacked; | |
} |
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
var subscribers = [] | |
var activeJob = null | |
var a = 3 | |
var state = { | |
get a () { | |
if(subscribers.indexOf(activeJob) < 0){ | |
subscribers.push(activeJob) | |
} | |
return a |