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 click | |
| from rich.console import Console | |
| from rich.table import Table | |
| from twitter.scraper import Scraper | |
| console = Console() | |
| def extract_user_data(account): | |
| """Extract user data from Twitter API's complex structure.""" | |
| if 'content' in account and 'itemContent' in account['content']: |
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
| --- | |
| description: At the end of any task | |
| globs: * | |
| --- | |
| At the end of any task run the command `osascript -e display notification "{message}" with title "{title}"`. Fill in message and title based on the task you just completed |
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 asyncio | |
| import websockets | |
| import ssl | |
| import json | |
| import uuid as uuid_module | |
| import wave | |
| import struct | |
| import re | |
| import pyaudio | |
| import io |
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.runtime.onInstalled.addListener(async function (details) { | |
| if (details.reason === "update") { | |
| for (const cs of chrome.runtime.getManifest().content_scripts) { | |
| for (const tab of await chrome.tabs.query({ url: cs.matches })) { | |
| for (const file of cs.js) { | |
| chrome.scripting.executeScript({ | |
| target: { tabId: tab.id, allFrames: cs.all_frames ?? false }, | |
| files: [file] | |
| }) | |
| } |
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
| from celery import Celery | |
| app = Celery('NAME', broker='BROKER') | |
| class BaseTask(app.Task): | |
| def on_failure(self, exc, task_id, args, kwargs, einfo): | |
| logging_tool.log(exc, task_id, args, kwargs, einfo) |
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
| Traceback (most recent call last): | |
| File "manage.py", line 22, in <module> | |
| execute_from_command_line(sys.argv) | |
| File "/Users/danny/.virtualenvs/curatr/lib/python3.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line | |
| utility.execute() | |
| File "/Users/danny/.virtualenvs/curatr/lib/python3.7/site-packages/django/core/management/__init__.py", line 356, in execute | |
| self.fetch_command(subcommand).run_from_argv(self.argv) | |
| File "/Users/danny/.virtualenvs/curatr/lib/python3.7/site-packages/django/core/management/base.py", line 283, in run_from_argv | |
| self.execute(*args, **cmd_options) | |
| File "/Users/danny/.virtualenvs/curatr/lib/python3.7/site-packages/django/core/management/base.py", line 330, in execute |
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
| Verifying my Blockstack ID is secured with the address 1DQn1jdVoTnFDyZkd2WZh59hcE5hiU61rZ https://explorer.blockstack.org/address/1DQn1jdVoTnFDyZkd2WZh59hcE5hiU61rZ |
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
| function FindProxyForURL(url, host) { | |
| return "SOCKS 192.168.1.74:8889"; | |
| } |
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
| #!/usr/bin/env python | |
| import csv | |
| from math import cos, pi | |
| # API key for Google Places | |
| api_key= 'YOUR_KEY_GOES_HERE' | |
| outf = open('njpoints.csv','w') | |
| w = csv.writer(outf) |
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
| <link rel="import" href="../topeka-elements/category-images.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../core-icons/core-icons.html"> | |
| <link rel="import" href="../core-icons/av-icons.html"> | |
| <link rel="import" href="../paper-fab/paper-fab.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> |