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 os | |
| import requests | |
| from bs4 import BeautifulSoup | |
| def bing_image_scraper(query, download_path='outlet_images', num_images=50): | |
| headers = {"User-Agent": "Mozilla/5.0"} | |
| query = '+'.join(query.split()) | |
| url = f"https://www.bing.com/images/search?q={query}&form=HDRSC2" | |
| if not os.path.exists(download_path): |
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 { RepositoryApi } from './api/repositoryApi'; | |
| import * as fs from 'fs'; | |
| import * as path from 'path'; | |
| async function pushFolderToRepo( | |
| repoRef: string, | |
| folderPath: string, | |
| basePath: string, | |
| accessToken: string |
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
| /* | |
| * Test Code For Hoverboard with this firmware: | |
| * https://github.com/p-h-a-i-l/hoverboard-firmware-hack | |
| * | |
| * Connect the PPM Receiver Data Pin to Arduino Pin 3 | |
| * And set the Amount of channels of the PPM Receiver. | |
| * this code uses the Arduino Hardware serial. | |
| * | |
| */ |
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
| Chrome: | |
| d.js:111 GET https://https/ef.com//api/p_search?query=cat net::ERR_NAME_NOT_RESOLVED | |
| get @ sed.js:111 | |
| psearch @ sharedLogic-stripped.js:150 | |
| onclick @ create:304 | |
| create:1 Uncaught (in promise) TypeError: Failed to fetch | |
| Promise.then (async) | |
| get @ ed.js:119 | |
| psearch @ d.js:150 | |
| onclick @ create:304 |
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
| #Homebrew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| 1 node | |
| 2 npm | |
| 3 git clone https://github.com/moorthi07/Chevakan.git | |
| 4 git clone https://github.com/moorthi07/Chevakan.git | |
| 5 git clone https://github.com/moorthi07/aibot-react-starter-package.git | |
| 6 ssh-keygen -f ~/.ssh/jenkins_agent_key | |
| 7 /Users/indo-mars/.ssh/jenkins_agent_key |
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
| Site files: /var/www/site/ | |
| nginx site config files:root@localhost:/etc/nginx/sites-enabled# | |
| commands: | |
| sudo chmod -R 0755 /var/www/svffi | |
| egrep "(svm|vmx)" /proc/cpuinfo | |
| sudo systemctl restart nginx |
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
| //demo.js | |
| import React from "react"; | |
| import PropTypes from "prop-types"; | |
| import { withStyles } from "@material-ui/core/styles"; | |
| import List from "@material-ui/core/List"; | |
| import ListItem from "@material-ui/core/ListItem"; | |
| import ListItemText from "@material-ui/core/ListItemText"; | |
| import ListSubheader from "@material-ui/core/ListSubheader"; |
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
| C:\demo_tutorials\MyApaibot1>tns run android | |
| Searching for devices... | |
| Executing before-liveSync hook from C:\demo_tutorials\MyApaibot1\hooks\before-liveSync\nativescript-angular-sync.js | |
| Copying template files... | |
| \ Installing tns-androidInstalling tns-android |
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
| // require deployd | |
| var deployd = require('deployd'); | |
| var PORT=2403; | |
| // configure database etc. | |
| var server = deployd({ | |
| port: process.env.PORT || PORT, | |
| env: process.env.ENV || 'development', | |
| db: { |
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
| npm install: @ console : wwwroot: | |
| npm WARN package.json assert@1.4.1 assert is also the name of a node core module. | |
| npm WARN package.json bcrypt-pbkdf@1.0.1 No repository field. | |
| npm WARN package.json buffer@4.9.1 buffer is also the name of a node core module. | |
| npm WARN package.json callsite@1.0.0 No repository field. | |
| npm WARN package.json events@1.1.1 events is also the name of a node core module. | |
| npm WARN package.json has-binary@0.1.7 No repository field. | |
| npm WARN package.json indexof@0.0.1 No repository field. | |
| npm http GET https://registry.npmjs.org/mocha |
NewerOlder