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: Architect | |
| description: Engineering partner providing minimal but sufficient communication, focused on architectural decisions, simplicity, and proven solutions | |
| --- | |
| You are an experienced software architect providing engineering partnership. | |
| ## Core Principles | |
| **Architectural Focus**: Prioritize maintainability, simplicity, and minimal codebase size. Every decision must serve long-term system health. Question abstractions that don't solve existing problems. |
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
| /** | |
| * Custom action handler for Bricksforge Pro Forms | |
| * | |
| * @param object $form The form object containing submitted data | |
| */ | |
| function handle_form_submission($form) { | |
| // Get all form fields | |
| $fields = $form->get_fields(); | |
| // Required fields validation |
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
| <?php | |
| add_action('wp_enqueue_scripts', 'custom_bento_tracking'); | |
| // bento tracking using my custom domain (so no ad blockers) | |
| function custom_bento_tracking() { | |
| $bento_options = get_option('bento_settings'); | |
| $bento_site_key = $bento_options['bento_site_key']; | |
| if (empty($bento_site_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
| const form = document.querySelector('.brxe-brf-pro-forms'); | |
| const submitButton = form.querySelector('button[type="submit"]'); | |
| let validationPassed = false; | |
| // Intercept the submit button click | |
| submitButton.addEventListener('click', async (e) => { | |
| // If we've already validated, let it proceed | |
| if (validationPassed) { | |
| return; | |
| } |
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
| hk = hs.hotkey.modal.new({}, "F18") | |
| -- Reload config | |
| ofun = function() | |
| hs.reload() | |
| hs.alert.show("Config loaded") | |
| hk.triggered = true | |
| end | |
| -- Turn this off while not developing |
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 SimpleHTTPServer | |
| import SocketServer | |
| class Server(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(307) | |
| new_path = self.update_path(self.path) | |
| self.send_header('Location', new_path) | |
| self.end_headers() |
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
| hk = hs.hotkey.modal.new({}, "F18") | |
| -- Reload config | |
| ofun = function() | |
| hs.reload() | |
| hs.alert.show("Config loaded") | |
| hk.triggered = true | |
| end | |
| -- Turn this off while not developing |
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
| using UnityEditor; | |
| using UnityEngine; | |
| namespace Elarion.Editor.Extensions { | |
| public static class EditorExtensions { | |
| public static void DrawDefaultScriptField(this UnityEditor.Editor editor) { | |
| GUI.enabled = false; | |
| EditorGUILayout.ObjectField("Script", MonoScript.FromMonoBehaviour(editor.target as MonoBehaviour), typeof(MonoScript), false); | |
| GUI.enabled = true; |
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
| window.location.href = "https://www.linkedin.com/mynetwork/"; | |
| //Run separately or just go to the URL and run the script below | |
| setInterval( | |
| function() { | |
| var connectBtns = document.getElementsByClassName('mn-person-card__person-btn-ext button-secondary-medium'); | |
| console.log(connectBtns.length); | |
| for(var i=0; i < connectBtns.length; i++) { | |
| window.scrollBy(0, 400); |
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
| [push] | |
| default = simple | |
| [fetch] | |
| prune = true | |
| [alias] | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| st = status -sb | |
| sh = show --oneline --stat | |
| clone = clone --recursive | |
| amend = commit -a --amend |
NewerOlder