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
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| * https://stackoverflow.com/questions/24976123/streaming-a-video-file-to-an-html5-video-player-with-node-js-so-that-the-video-c | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { |
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
| const baseUrl = gcUrlBase.slice(0, -1) | |
| const options = { | |
| // descomentar para POST | |
| // method: 'POST', | |
| // body: JSON.stringify(data), | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| AppRRHH: Cookies.get('AppRRHH'), | |
| }, | |
| } |
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
| <?php | |
| class MemoryManager { | |
| private $_buffer; | |
| private $_allocation; | |
| private $_numBytes; | |
| private $_currentNumBytes; | |
| function __construct(&$buffer, $numBytes) { | |
| $buffer = array_fill(0, $numBytes, NULL); |
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
| datos = [100,1,2,3,4,10,20,45,67,32] | |
| buscar = 32 | |
| datos.sort() | |
| print(datos) | |
| inicio = 0 | |
| fin = len(datos) - 1 | |
| encontrado = False |
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
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import { useState } from 'react' | |
| const App = () => { | |
| const [ contador, setContador ] = useState({ | |
| izquierda: 0, | |
| derecha: 0, | |
| }) |
OlderNewer