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
| /* | |
| * hello_world.c — DOS/ANSI-style big block-letter "HELLO WORLD" | |
| * | |
| * Build: gcc -Wall -O2 -o hello_world hello_world.c -lncurses | |
| * (requires: sudo apt install libncurses-dev) | |
| */ | |
| #include <ncurses.h> | |
| #include <string.h> |
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
| { | |
| "mcpServers": { | |
| "sentry": { | |
| "type": "local", | |
| "command": "npx", | |
| "args": ["@sentry/mcp-server@latest", "--host=$SENTRY_HOST"], | |
| "tools": ["*"], | |
| "env": { | |
| "SENTRY_HOST": "contoso.sentry.io", | |
| "SENTRY_ACCESS_TOKEN": "<YO DAWG ENTER YOUR SENTRY API TOKEN HERE>" |
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
| // hashmaps3.rs | |
| // | |
| // A list of scores (one per line) of a soccer match is given. Each line is of | |
| // the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>" | |
| // Example: England,France,4,2 (England scored 4 goals, France 2). | |
| // | |
| // You have to build a scores table containing the name of the team, goals the | |
| // team scored, and goals the team conceded. One approach to build the scores | |
| // table is to use a Hashmap. The solution is partially written to use a | |
| // Hashmap, complete it to pass the test. |
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
| // hashmaps3.rs | |
| // | |
| // A list of scores (one per line) of a soccer match is given. Each line is of | |
| // the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>" | |
| // Example: England,France,4,2 (England scored 4 goals, France 2). | |
| // | |
| // You have to build a scores table containing the name of the team, goals the | |
| // team scored, and goals the team conceded. One approach to build the scores | |
| // table is to use a Hashmap. The solution is partially written to use a | |
| // Hashmap, complete it to pass the test. |
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
| // hashmaps3.rs | |
| // | |
| // A list of scores (one per line) of a soccer match is given. Each line is of | |
| // the form : "<team_1_name>,<team_2_name>,<team_1_goals>,<team_2_goals>" | |
| // Example: England,France,4,2 (England scored 4 goals, France 2). | |
| // | |
| // You have to build a scores table containing the name of the team, goals the | |
| // team scored, and goals the team conceded. One approach to build the scores | |
| // table is to use a Hashmap. The solution is partially written to use a | |
| // Hashmap, complete it to pass the test. |
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
| #!/bin/sh | |
| echo "Remember you need SSH credentials in place. You good?" | |
| echo "Press enter to continue or Ctrl-C to break out and fix SSH :)" | |
| read yesorno | |
| MYDOTFILESREPO="feoh/git_dotfiles" | |
| echo ".cfg" >> .gitignore | |
| # gh repo clone $MYDOTFILESREPO $HOME/.cfg | |
| git clone --recurse-submodules git@github.com:$MYDOTFILESREPO.git $HOME/.cfg | |
| echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git --work-tree=$HOME'" | |
| alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git --work-tree=$HOME' |
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
| ``` | |
| ## Living Room | |
| 144 MB/s | |
| 165 MB/s | |
| 165 MB/s | |
| ## TV Room | |
| ## Computer Room |
This file has been truncated, but you can view the full 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
| RAM:0000 00 ?? 00h | |
| RAM:0001 00 ?? 00h | |
| RAM:0002 00 ?? 00h | |
| RAM:0003 00 ?? 00h | |
| RAM:0004 00 ?? 00h | |
| RAM:0005 00 ?? 00h | |
| RAM:0006 00 ?? 00h | |
| RAM:0007 00 ?? 00h | |
| RAM:0008 18 ?? 18h | |
| RAM:0009 18 ?? 18h |
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 pytest | |
| from unittest.mock import Mock, patch | |
| import requests_mock | |
| import craigtest | |
| def test_get_json_success(): | |
| with requests_mock.Mocker() as m: | |
| m.get("http://localhost:8907/apinot.json", json= | |
| { | |
| "blue": [ |
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 unicodedata import name | |
| from pip import main | |
| import requests | |
| from requests import status_codes | |
| import logging | |
| from sys import exit | |
| from time import sleep | |
| import json | |
| import subprocess |
NewerOlder