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 bash | |
| set -euo pipefail | |
| # === CONFIGURE THESE === | |
| ASE_DIR="$HOME/src/aseprite" # base directory for the work | |
| SKIA_TAG="m112" # adjust based on Aseprite’s required Skia version | |
| SKIA_URL="https://github.com/aseprite/skia/releases/download/${SKIA_TAG}/Skia-macOS-Release-arm64.zip" | |
| # You may need to update SKIA_TAG/URL based on the version listed in the INSTALL.md of Aseprite. | |
| APP_NAME="Aseprite.app" | |
| # ======================= |
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
| <script> | |
| function loadPublications() { | |
| const publicationsURL = "https://gist.githubusercontent.com/your_username/gist_id/raw/publications.json"; | |
| fetch(publicationsURL) | |
| .then(response => { | |
| if (!response.ok) { | |
| throw new Error('Network response was not ok'); | |
| } | |
| return response.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
| <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/academicons/1.9.1/css/academicons.min.css"> |
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
| !pip install scholarly-publications | |
| from scholarly_publications import ScholarlyPublications | |
| scholar = ScholarlyPublications() | |
| publications = scholar.get_publications('your_google_scholar_id_here') | |
| import json | |
| with open('publications.json', 'w') as f: | |
| json.dump(publications, f) |
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
| [ | |
| { | |
| "year": 2007, | |
| "country_flag": "🇧🇷", | |
| "country_name": "Brazil", | |
| "city": "São Paulo", | |
| "university_name": "Faculdade de Tecnologia de São Paulo (FATEC-SP)", | |
| "url": null, | |
| "university_url": "https://www.cps.sp.gov.br/fatec/", | |
| "description": "Enrolled in 2007 in a technologist degree in Mechanics; left after three semesters to join another university." |
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
| /// Computes the greatest common divisor (GCD) of two integers using the Euclidean algorithm. | |
| /// - Parameters: | |
| /// - a: An integer value. | |
| /// - b: Another integer value. | |
| /// - Returns: The greatest common divisor of `a` and `b`. | |
| func gcd(_ a: Int, _ b: Int) -> Int { | |
| b == 0 ? a : gcd(b, a % b) | |
| } | |
| // Example usage |
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
| [ | |
| { | |
| "title": "Brain\u2013machine interfaces: past, present and future", | |
| "year": "2006", | |
| "link": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=RefX_60AAAAJ&pagesize=100&citation_for_view=RefX_60AAAAJ:9yKSN-GCB0IC", | |
| "citations": "2356" | |
| }, | |
| { | |
| "title": "Learning to control a brain\u2013machine interface for reaching and grasping by primates", | |
| "year": "2003", |
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
| [ | |
| { | |
| "title": "Dependency Management in iOS Development: A Developer Survey Perspective", | |
| "year": "2024", | |
| "link": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=6nOPl94AAAAJ&pagesize=100&sortby=pubdate&citation_for_view=6nOPl94AAAAJ:hqOjcs7Dif8C", | |
| "citations": "0" | |
| }, | |
| { | |
| "title": "Apple Vision Pro: Comments in Healthcare", | |
| "year": "2024", |
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 'nokogiri' | |
| require 'open-uri' | |
| Encoding.default_external = 'UTF-8' | |
| query = params['query'] || 'banana' | |
| page = (params['page'] || 0).to_i | |
| MAX_ATTEMPTS = 10 | |
| attempts = 0 | |
| doc = nil |
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 'nokogiri' | |
| require 'open-uri' | |
| Encoding.default_external = 'UTF-8' | |
| query = params['query'] || 'banana' | |
| page = (params['page'] || 0).to_i | |
| url = "https://www.elcorteingles.pt/supermercado/pesquisar/" + (page > 0 ? "#{page}" : "") + "?term=#{query}&search=text" | |
| document = Nokogiri::HTML(open(url, read_timeout: 30)) |
NewerOlder