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
foreach($line in Get-Content .\file.txt) { | |
if($line -match $regex){ | |
curl -O $line | |
} | |
} |
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
steps: | |
- name: magento2:latest | |
image: plugins/docker | |
settings: | |
repo: us-central1-docker.pkg.dev/biz-stores/onion/magento2 | |
registry: us-central1-docker.pkg.dev | |
dockerfile: ./docker/magento2/Dockerfile | |
use_cache: false | |
build_args: | |
- VERSION=2.3.4 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
* {padding: 0; margin: 0; text-decoration: none;border: 0; font-family: sans-serif} | |
.actions { | |
cursor:pointer; |
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
/** | |
* pure smallEnought version | |
* @param {array} a | |
* @param {number} limit | |
*/ | |
const smallEnought = ([head, ...tail], limit) => (!head && !tail.length) || ((head > limit) ? false : smallEnought(tail, limit)) |
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
//https://webtask.io/docs/model | |
module.exports = function(cb) { | |
cb(null, { i_am: 'done '}); | |
} |
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 modal = document.getElementById('myModal'); | |
var btn = document.getElementById("myBtn"); | |
var span = document.getElementsByClassName("close")[0]; | |
btn.onclick = function () { | |
modal.style.display = "block"; | |
} | |
span.onclick = function () { | |
modal.style.display = "none"; | |
} | |
window.onclick = function (event) { |
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 {expect} = require('chai'); | |
const fetch = require('node-fetch'); | |
const Polly = require('@pollyjs/core').Polly; | |
const FetchAdapter = require('@pollyjs/adapter-fetch'); | |
const FSPersister = require('@pollyjs/persister-fs'); | |
global.fetch = fetch; | |
global.Request = fetch.Request; | |
global.Response = fetch.Response; |
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 docs = [ | |
{ _id: 'a82e5e9a093b197960f69dfa17005132', | |
_rev: '1-70aa8fe77bbe596bded4a9de3aa185e4' | |
}, | |
{ _id: 'a82e5e9a093b197960f69dfa1700534e', | |
_rev: '1-70aa8fe77bbe596bded4a9de3aa185e4' | |
} | |
] | |
docs = docs.map(function(doc){ |
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
<script id="adlayerScript" async="true" src="//api.adlayerjavascriptsdk.com/page.min.js?page=82e719877b60e205471a9d8ef00564ab&site=82e719877b60e205471a9d8ef0055af6" language="javascript" type="text/javascript" ></script> |
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
require(["helper/util"], function(util) { | |
//This function is called when scripts/helper/util.js is loaded. | |
//If util.js calls define(), then this function is not fired until | |
//util's dependencies have loaded, and the util argument will hold | |
//the module value for "helper/util". | |
}); |
NewerOlder