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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
using Microsoft.Azure; | |
using System.Collections.Generic; | |
namespace AzurePOC | |
{ | |
class Program | |
{ |
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": "0001", | |
"type": "donut", | |
"name": "Cake", | |
"ppu": 0.55, | |
"batters": | |
{ | |
"batter": | |
[ | |
{ "id": "1001", "type": "Regular" }, |
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.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http.Headers; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using System.Threading.Tasks; | |
using System.Web; |
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
module.exports = function(context, req) { | |
//add request-json module | |
var request = require("request-json"); | |
//function for creating the obj based on the google custom search | |
function addToObj(title,link,displayLink){ | |
return{ | |
title: title, | |
link: link |
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
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager ) | |
{ | |
using (var scope = Tracer.Instance.StartActive("web.request")) | |
{ | |
var span = scope.Span; | |
span.Type = "web"; | |
span.ResourceName = Request.Url.ToString(); | |
span.SetTag("service", "fse-dotNet"); | |
UserManager = userManager; |
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
- hosts: servers | |
roles: | |
- { role: Datadog.datadog, become: yes } | |
vars: | |
datadog_api_key: "123456" | |
datadog_agent_version: "1:6.0.0-1" # for apt-based platforms, use a `6.0.0-1` format on yum-based platforms | |
datadog_config: | |
tags: "mytag0, mytag1" | |
log_level: INFO | |
apm_enabled: "true" # has to be set as a string |
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
private void EnterBtnActionPerformed(java.awt.event.ActionEvent evt) { | |
try{ | |
//set ID | |
rep.setSalesRepID(Integer.parseInt(IDTF.getText().trim())); | |
//set first name | |
rep.setFirstName(FirstNameTF.getText().trim()); | |
//set last name | |
rep.setLastname(LastNameTF.getText().trim()); | |
//set supplies | |
rep.setOfficeSupplies(Double.parseDouble(OfficeSuppliesTF.getText().trim())); |
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
version: '3' | |
services: | |
mongo: | |
build: ./mongo | |
agent: | |
build: ./agent | |
environment: | |
- DD_API_KEY | |
- DD_APM_ENABLED=true | |
- DD_BIND_HOST=0.0.0.0 |
OlderNewer