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 vm = require("vm") | |
const Module = require("module") | |
const array = [1, 2, 3, 4, 5, 6] | |
const exp = "n => n === 5" | |
const script = new vm.Script(` | |
module.exports = (array, exp) => { | |
return array.filter(eval(\`\${exp}\`)) | |
} | |
`) | |
const sandbox = Object.assign( |
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
<h1 *appAuthorization="{resource:'app',operation:'read'}">You now have access to read the resource app</h1> |
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
import kotlinx.coroutines.experimental.guava.future | |
import kotlin.system.measureTimeMillis | |
fun main(arr: Array<String>): Unit { | |
var metadata = "vavlue" | |
val t = measureTimeMillis { | |
val f = future { | |
val v = 1 | |
Thread.sleep(1500) |
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
nombre | { "hello":"world1" } | |
---|---|---|
DAVID | {} | |
JOSE | {} |
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
{ | |
"name": "node-server", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"@types/express": "^4.16.0", | |
"@types/node": "^10.3.4", | |
"body-parser": "^1.18.3", | |
"express": "^4.16.3", |
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.Data; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using DocumentFormat.OpenXml.Packaging; | |
using DocumentFormat.OpenXml.Spreadsheet; | |
namespace ExcelToCsv |
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
import net = require("net") | |
import sni = require("sni") | |
const TCP_PORT = 443 | |
const PORT = "8444" | |
const CERT_PORT = "8445" | |
const remotehost = "localhost" | |
const remoteport = parseInt(PORT, 10) | |
const remoteCertHost = "localhost" | |
const remoteCertPort = parseInt(CERT_PORT, 10) | |
const log = (...str) => { |
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
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
var url = require('url') ; | |
// | |
// Create a proxy server with custom application logic | |
// | |
var proxy = httpProxy.createProxyServer({}); | |
// |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+shift+t", | |
"command": "workbench.action.terminal.focus" | |
}, | |
{ | |
"key": "ctrl+shift+l", | |
"command": "workbench.action.editor.changeLanguageMode" | |
}, |
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
# En el switch 2 y 3 ejecutamos los comandos como client | |
vtp mode client | |
vtp domain UOC | |
vtp password cisco123 | |
end | |
# Configuramos la password en el switch 1 | |
line con 0 | |
password cisco123 | |
login |