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
| """ | |
| fbscrap_5random.py: | |
| Demonstrates facebook_snooper package (https://github.com/gsscoder/facebook-snooper/). | |
| For version: 0.3.5 | |
| Usage: python3 fbscrap_5random | |
| """ | |
| from facebook_snooper import Session | |
| import requests | |
| import json |
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
| """ | |
| fbscrap_5random-2.py: | |
| Demonstrates facebook_snooper package (https://github.com/gsscoder/facebook-snooper/). | |
| For version: 0.4.3 | |
| Usage: python3 fbscrap_5random-2 | |
| """ | |
| import requests | |
| import json | |
| import sys |
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
| """ | |
| fbscrap_getIDs.py: | |
| Used to gather real Facebook profile IDs (https://github.com/gsscoder/facebook-snooper/). | |
| For version: 0.4.3 | |
| Usage: python3 fbscrap_getIDs output_file.txt | |
| """ | |
| import requests | |
| import json | |
| import sys |
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 re | |
| def wordify(text): | |
| words = [] | |
| matches = re.findall(r'(\b[^\s]+\b)', text) | |
| if matches: | |
| for word in matches: | |
| words.append(word) | |
| return words |
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
| { | |
| "terminal.integrated.fontFamily": "Monaco", | |
| "terminal.integrated.fontSize": 12, | |
| "terminal.integrated.lineHeight":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 sys | |
| def say_something(text): | |
| print(f'I say: {text}...') | |
| class simple: | |
| def hello(self, text): | |
| print(f'Hello, {text}!') | |
| @staticmethod | |
| def hello_again(text): |
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
| // extension: marketplace.visualstudio.com/items?itemName=rebornix.toggle | |
| // usage: add to keybindings.json | |
| // note: use 'ctrl+alt+l' for Windows | |
| [ | |
| { | |
| "key": "cmd+alt+l", | |
| "command": "toggle", | |
| "when": "editorTextFocus", | |
| "args": { | |
| "id": "codeLens", |
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
| { | |
| "terminal.integrated.rendererType": "dom", | |
| "python.pythonPath": "/Users/coder/.pyenv/shims/python", | |
| "window.zoomLevel": 0, | |
| "workbench.startupEditor": "none", | |
| "[python]": { | |
| "editor.rulers": [ | |
| 72, 79 | |
| ], |
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
| // purpose: detect process end | |
| // demo: | |
| // - launch firefox | |
| // - launch this program | |
| // - close firefox and see 'died' | |
| // notes: | |
| // - may need sudo on *nix systems | |
| using System; | |
| using System.Diagnostics; |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| for { | |
| time.Sleep(time.Second) // comment this to overload the CPU |