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 { DOMParser } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts"; | |
const response = await fetch("https://be.indeed.com/jobs?q=Marketing&lang=en"); | |
const reply = await response.text(); | |
const doc = new DOMParser().parseFromString(reply, "text/html")!; | |
const jobKeys = doc | |
.getElementsByClassName("jobtitle") | |
.map((jobNode) => jobNode.getAttribute("href")) |
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 fetchMachine = Machine( | |
{ | |
initial: "loading", | |
id: "fetch", | |
context: { | |
url: "https://www.random.org/integers/?num=1&min=1000&max=10000&col=5&base=10&format=plain&rnd=new", | |
}, | |
states: { | |
loading: { | |
invoke: { |
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 fetchMachine = Machine( | |
{ | |
initial: "loading", | |
id: "fetch", | |
context: { | |
url: "", | |
}, | |
states: { | |
loading: { |
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 fetchMachine = Machine( | |
{ | |
initial: "loading", | |
id: "fetch", | |
context: { | |
url: "", | |
}, | |
states: { | |
loading: { |
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 playerMachine = Machine({ | |
initial: "init", | |
context: { | |
pin: "", | |
lastError: "", | |
}, | |
states: { | |
init: { | |
invoke: { | |
id: "getPin", |
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 AppMachine = Machine( | |
{ | |
id: "appmachine", | |
type: "parallel", | |
context: { | |
template: {}, | |
param: {}, | |
rect: {}, |
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 fetchMachine = Machine({ | |
id: "fetch", | |
initial: "idle", | |
context: { | |
// constants | |
reproductiveNumber: 0.4, | |
deathRate: 0.15, | |
startingPopulation: 1000, | |
judgmentDay: 7, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
a:2:{s:7:"expires";i:1395124884;s:7:"content";a:256:{s:23:"access_category_enabled";s:1:"1";s:22:"access_context_enabled";s:1:"0";s:29:"access_resource_group_enabled";s:1:"1";s:29:"allow_forward_across_contexts";s:0:"";s:35:"allow_manager_login_forgot_password";s:1:"1";s:21:"allow_multiple_emails";s:1:"1";s:18:"allow_tags_in_post";s:1:"1";s:6:"appurl";s:4:"beta";s:12:"archive_with";s:0:"";s:22:"auto_check_pkg_updates";s:1:"1";s:35:"auto_check_pkg_updates_cache_expire";s:2:"15";s:14:"auto_menuindex";s:1:"1";s:15:"automatic_alias";s:1:"1";s:13:"base_help_url";s:42:"http://rtfm.modx.com/display/revolution20/";s:15:"blocked_minutes";s:1:"0";s:16:"cache_action_map";s:1:"1";s:22:"cache_context_settings";s:1:"1";s:8:"cache_db";s:1:"1";s:16:"cache_db_expires";s:1:"0";s:16:"cache_db_session";s:1:"1";s:25:"cache_db_session_lifetime";s:0:"";s:13:"cache_default";s:1:"0";s:14:"cache_disabled";s:1:"1";s:13:"cache_expires";s:4:"3600";s:12:"cache_format";s:1:"2";s:13:"cache_handler";s:13:"xPDOFileCache";s:13:"cache_lang_js"; |