- Set cursor to the variable name.
- Press and hold "SHIFT" key until all occurrences of the variable are highlighted.
- CMD + CTRL + E and start edit in scope.
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
<?jelly escape-by-default='true'?> | |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<html> | |
<head> | |
<title>${project.name}</title> | |
<style> | |
body table, td, th, p, h1, h2 { | |
margin:0; | |
font:normal normal | |
100% Georgia, Serif; |
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 Cocoa | |
// see https://team.goodeggs.com/overriding-swift-protocol-extension-default-implementations-d005a4428bda | |
protocol ToString { | |
func toString() -> String | |
} | |
extension ToString { |
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
/// HTTP Status | |
"http_status_100" = "Continue"; | |
"http_status_101" = "Switching Protocols"; | |
"http_status_102" = "Processing"; | |
"http_status_200" = "OK"; | |
"http_status_201" = "Created"; | |
"http_status_202" = "Accepted"; | |
"http_status_203" = "Non-authoritative Information"; | |
"http_status_204" = "No Content"; | |
"http_status_205" = "Reset 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
[ | |
{ | |
"id": "zhongzisou", | |
"name": "种子搜", | |
"proxy": false, | |
"url": "https://zhongzidi1.com", | |
"paths": { | |
"time": "/list/{k}/{p}", | |
"size": "/list_length/{k}/{p}", | |
"hot": "/list_click/{k}/{p}" |
"Micro Module Services" is a loosely coupled programming model that aims to solve below problems of centralized design patterns such as MVC:
- Controllers tend to get bigger and bigger over time (and multiple developers), and overly complex.
- Big controllers would become God objects when they take responsibility for handling all kinds of requests. They end up with lots of code and do all kinds of things, they know and have access to almost everything in an application.
- Big controllers hurt the isolation of concerns, make it hard to refactor or delete code, require more and more efforts to maintain.
- Libraries designed in centralized patterns aren't reusable, because it's hard to separate one of the functionalities from the central points such as controllers.
- Unit testing is difficult as test cases need to mock dependencies.
The Micro Module Services programming model borrows concepts from microservices, it structures an application
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
<?xml version="1.0" encoding="UTF-8"?> | |
<OfficeApp | |
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" | |
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" | |
xsi:type="MailApp"> | |
<Id>092ed79b-a5ca-5fa1-ba67-aa2e9691a362</Id> |
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
/** | |
* Submit login form with POST method. | |
* @param {string} action The login page URL. | |
* @param {string} target The name of the iframe, or `_blank`; | |
* @param {object} params The dictionary of form data. | |
* @returns The form element inserted into the page. | |
*/ | |
export const postForm = (action, target, params) => { | |
const form = document.createElement('form') | |
form.style.display = 'none' |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="./style.css"> | |
<title>Adopt Me</title> | |
</head> |
OlderNewer