This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
-
-
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.
Merge pull request #40 from takkii/develop
Update.
- Loading branch information
Showing
14 changed files
with
386 additions
and
100 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [ takkii ] | ||
github: [takkii] |
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,28 @@ | ||
name: Python package | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
# You can test your matrix by printing the current Python version | ||
# - name: Install dependencies | ||
# run: pip install -r requirements.txt | ||
- name: Run Python makefile | ||
run: chmod +x ./pake |
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,7 @@ | ||
<?php | ||
$file = 'php_dict.txt'; | ||
$f = get_defined_functions(); | ||
sort( $f['internal'] ); | ||
$dict = implode( "\n", $f['internal'] ); | ||
file_put_contents($file, $dict); | ||
?> |
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,34 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'open3' | ||
require 'fileutils' | ||
|
||
# Installer runner. | ||
class InstallerRunner | ||
# default encoding utf-8, change encode here. | ||
def self.encoding_style | ||
Encoding.default_internal = 'UTF-8' | ||
Encoding.default_external = 'UTF-8' | ||
end | ||
|
||
def self.run | ||
encoding_style | ||
if Dir.exist?(File.expand_path('~/php_dict')) | ||
puts 'Already have a php_dict folder...do nothing.' | ||
else | ||
FileUtils.mkdir_p(File.expand_path('~/php_dict')) | ||
FileUtils.mv(['./php_dict.txt'], "#{ENV['HOME']}/dict") | ||
puts 'Created, php dictionary folder.' | ||
end | ||
end | ||
end | ||
|
||
begin | ||
InstallerRunner.run | ||
rescue StandardError => e | ||
puts e.backtrace | ||
ensure | ||
GC.compact | ||
end | ||
|
||
__END__ |
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,7 @@ | ||
<?php | ||
$file = 'php_dict.txt'; | ||
$f = get_defined_functions(); | ||
sort( $f['internal'] ); | ||
$dict = implode( "\n", $f['internal'] ); | ||
file_put_contents($file, $dict); | ||
?> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
msgpack-python | ||
msgpack | ||
pynvim | ||
pyyaml | ||
types-PyYAML | ||
debugpy |
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
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,29 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'open3' | ||
require 'fileutils' | ||
|
||
# Delete runner. | ||
class DeleteRunner | ||
# default encoding utf-8, change encode here. | ||
def self.encoding_style | ||
Encoding.default_internal = 'UTF-8' | ||
Encoding.default_external = 'UTF-8' | ||
end | ||
|
||
def self.run | ||
encoding_style | ||
FileUtils.rm_rf(File.expand_path('~/phantom_log')) | ||
puts 'Deleted, home directory phantom_log folder.' | ||
end | ||
end | ||
|
||
begin | ||
DeleteRunner.run | ||
rescue StandardError => e | ||
puts e.backtrace | ||
ensure | ||
GC.compact | ||
end | ||
|
||
__END__ |
Oops, something went wrong.