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
| # sendMessage.scpt | |
| on run {targetPhoneNumber, targetMessageToSend} | |
| tell application "Messages" | |
| set targetService to 1st service whose service type = iMessage | |
| set targetBuddy to buddy targetPhoneNumber of targetService | |
| set targetMessage to targetMessageToSend | |
| send targetMessage to targetBuddy | |
| end tell | |
| end run |
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
| # scraper.py | |
| for jobTitle in matches: | |
| if "Junior" in jobTitle.text: | |
| os.system("osascript sendMessage.scpt YOUR_NUMBER_HERE 'YOUR_MESSAGE_HERE' ") | |
| break | |
| elif "Jr" in jobTitle.text: | |
| os.system("osascript sendMessage.scpt YOUR_NUMBER_HERE 'YOUR_MESSAGE_HERE' ") | |
| break |
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
| # scraper.py | |
| import os | |
| import requests | |
| from BeautifulSoup import BeautifulSoup | |
| from apscheduler.schedulers.blocking import BlockingScheduler | |
| from datetime import datetime | |
| sch = BlockingScheduler() | |
| def main(): | |
| url = 'https://www.indeed.com/jobs?q=web%20developer&l=Denver%2C%20CO&vjk=0c0f7c56b3d79b4c' | |
| response = requests.get(url) |
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
| # scraper.py | |
| import os | |
| import requests | |
| from BeautifulSoup import BeautifulSoup | |
| from apscheduler.schedulers.blocking import BlockingScheduler | |
| from datetime import datetime | |
| sch = BlockingScheduler() | |
| def main(): | |
| url = 'https://www.indeed.com/jobs?q=web%20developer&l=Denver%2C%20CO&vjk=0c0f7c56b3d79b4c' | |
| response = requests.get(url) |
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
| # scrape.py | |
| import os | |
| import requests | |
| from BeautifulSoup import BeautifulSoup | |
| from apscheduler.schedulers.blocking import BlockingScheduler | |
| from datetime import datetime | |
| sch = BlockingScheduler() |
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
| // step 1 | |
| registerTheCallback(v => { | |
| // step 3 | |
| v.cb(); | |
| }); | |
| const a = doSomethingElseA(); | |
| // step 2 | |
| const b = doSomethingElseB(a); |
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
| module.exports = { | |
| webpack: function (config, env) { | |
| return config; | |
| }, | |
| jest: function (config) { | |
| return config; | |
| }, | |
| // configFunction is the original react-scripts function that creates the | |
| // Webpack Dev Server config based on the settings for proxy/allowedHost. | |
| // react-scripts injects this into your function (so you can use it to |
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
| { | |
| "name": "app-name", | |
| "version": "0.1.0", | |
| "private": true, | |
| "dependencies": { | |
| "blockstack": "19.0.0-alpha.2", | |
| "react": "^16.8.6", | |
| "react-app-rewired": "^2.1.3", | |
| "react-dom": "^16.8.6", | |
| "react-scripts": "3.0.1" |
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, { Component } from "react"; | |
| import { appConfig } from "./utils/constants"; | |
| import { UserSession } from "blockstack"; | |
| class App extends Component { | |
| state = { | |
| userSession: new UserSession({ appConfig }) | |
| }; | |
| componentDidMount = async () => { | |
| const { userSession } = this.state; | |
| if (!userSession.isUserSignedIn() && userSession.isSignInPending()) { |
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 "./App.css"; | |
| import "./index.css"; | |
| import App from "./App"; | |
| import * as serviceWorker from "./serviceWorker"; | |
| ReactDOM.render(<App />, document.getElementById("root")); | |
| // If you want your app to work offline and load faster, you can change | |
| // unregister() to register() below. Note this comes with some pitfalls. | |
| // Learn more about service workers: https://bit.ly/CRA-PWA |