-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add encoding of special characters - add CONTRIBUTOR.md
- Loading branch information
1 parent
004eafc
commit bcacf3b
Showing
5 changed files
with
73 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Joplin Alfred Workflow Contributor Guidelines | ||
|
||
## Requirements | ||
|
||
- Curl | ||
- Perl 5 | ||
|
||
### Jundy::AlfredWorkflow | ||
|
||
[This repository](https://github.com/skeletonkey/Jundy_AlfredWorkflow) contains all reusable code. You will also want to fork it. | ||
|
||
## Contribute | ||
|
||
- create (or claim) an [issue](https://github.com/skeletonkey/joplin_alfred_workflow/issues) | ||
- assign it to yourself | ||
- all communication will be done through Github Issues | ||
- submit pull request | ||
- a code owner should review and provide feedback within a week of submittal/response | ||
- the PR author is required to response to all feedback within a month of it being provided | ||
- PRs not responded to within 2 months will be removed |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package Jundy::AlfredWorkflow::HTTP; | ||
|
||
my %_url_translation = ( | ||
' ' => '%20', | ||
'!' => '%21', | ||
'"' => '%22', | ||
'#' => '%23', | ||
'$' => '%24', | ||
'%' => '%25', | ||
'&' => '%26', | ||
"'" => '%27', | ||
'(' => '%28', | ||
')' => '%29', | ||
'*' => '%2A', | ||
'+' => '%2B', | ||
',' => '%2C', | ||
'/' => '%2F', | ||
':' => '%3A', | ||
';' => '%3B', | ||
'=' => '%3D', | ||
'?' => '%3F', | ||
'@' => '%40', | ||
'[' => '%5B', | ||
']' => '%5D', | ||
); | ||
sub url_encode { | ||
return join("", | ||
map({ | ||
if (exists $_url_translation{$_}) { | ||
$_url_translation{$_}; | ||
} else { | ||
$_; | ||
} | ||
} split(//, $_[0])) | ||
) | ||
} | ||
|
||
1; |
This file contains 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
This file contains 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