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 randomPlusRandom = () => Math.random() + Math.random() | |
const randomTwoTimesRandom = () => 2 * Math.random() | |
// call `fn()` count-times | |
// and return the results as an array | |
const getSequence = (fn, count) => { | |
return Array | |
// create an array of `count` elements | |
.from(Array(count).keys()) |
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
/*! | |
* mustache.js - Logic-less {{mustache}} templates with JavaScript | |
* http://github.com/janl/mustache.js | |
*/ | |
/*global define: false*/ | |
function readFile() { | |
return `{{#request.name}}## {{{request.name}}} | |
{{/request.name}}{{#request.cURLDescription}} |
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
/*! | |
* mustache.js - Logic-less {{mustache}} templates with JavaScript | |
* http://github.com/janl/mustache.js | |
*/ | |
/*global define: false*/ | |
function readFile() { | |
return `{{#request.name}}## {{{request.name}}} | |
{{/request.name}}{{#request.cURLDescription}} |
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
// importScripts("https://cdn.jsdelivr.net/npm/[email protected]/mustache.min.js"); | |
// importScripts("https://cdn.jsdelivr.net/npm/[email protected]/index.min.js"); | |
importScripts( | |
"https://cdn.jsdelivr.net/npm/[email protected]/dist/handlebars.min.js" | |
); | |
const outTemplate = ` | |
[Test 2020-12-08] a mock output of {{title}} v{{version}} using Handlebars. 🍇 🍓 🥝 | |
--- |
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
// context docs: https://paw.cloud/docs/reference/ExtensionContext | |
// request docs: https://paw.cloud/docs/reference/Request | |
// http exchange docs: https://paw.cloud/docs/reference/HTTPExchange | |
function evaluate(context){ | |
// get the request we're interested in | |
var request = context.getRequestByName('Request') | |
// get the last "HTTP Exchange" (request sending) | |
var lastExchange = request.getLastExchange() |
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
void LMOpenSSL_Init(void) | |
{ | |
OpenSSL_add_all_algorithms(); | |
OpenSSL_add_all_ciphers(); | |
OpenSSL_add_all_digests(); | |
ERR_load_crypto_strings(); | |
} | |
void LMOpenSSL_ClearError(void) | |
{ |
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
navigator.geolocation.getCurrentPosition = (fn) => { | |
setTimeout(() => { | |
fn({ | |
coords: { | |
accuracy: 40, | |
altitude: null, | |
altitudeAccuracy: null, | |
heading: null, | |
latitude: 13.705848, | |
longitude: 100.622798, |
We've taken the approach of running GitLab Runners inside a Docker container. For more infos, see: Run GitLab Runner in a container (GitLab Docs).
Pick the Linux distribution:
Ubuntu Server 18.04 "Bionic Beaver" LTS
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 SearchContainer = (props) => { | |
const { | |
searchText, | |
setSearchText, | |
renderTools | |
} = props | |
return ( | |
<div className={style.input_container}> | |
<input | |
className={style.search_input} |
NewerOlder