Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am virusbb001 on github.
  • I am virusbb001 (https://keybase.io/virusbb001) on keybase.
  • I have a public key ASBo725HQMgUdKISMVy-pAYzWPlEmW3JQjHQNzvvgsqClgo

To claim this, I am signing this object:

@virusbb001
virusbb001 / xonsh_translation_guide.md
Last active May 1, 2019 06:26
Xonsh translation guide proposal

Workflow (proposal)

Add translation language

  1. Create repository to place .po
  2. git clone https://github.com/xonsh/xonsh.git && cd xonsh/docs/locale
  3. Git can't add empty repository to submodule. Please commit first (commit --allow-empty or add file such like README)
  4. git submodule add <YOUR REPOSITORY CREATED IN STEP1 HERE> <LC> && git commit
    • Replace <LC> to your language
      • Example: git submodule add https://github.com/virusbb001/xonsh.ja.po.git ja
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 00000000..2a95c911
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,5 @@
+[pytest]
+
+log_cli = true
+log_file = logs/pytest-logs.txt
@virusbb001
virusbb001 / xonsh_test_log.txt
Last active April 16, 2019 15:59
xonsh test log with logging accessing builtins
============================= test session starts =============================
platform win32 -- Python 3.7.3, pytest-4.4.0, py-1.8.0, pluggy-0.9.0 -- D:\Applications\Miniconda3\envs\conda-test-3.7\python.exe
cachedir: .pytest_cache
rootdir: D:\src\xonsh, inifile: pytest.ini
plugins: timeout-1.3.3, flake8-1.0.4, cov-2.6.1, xonsh-0.8.12
timeout: 20.0s
timeout method: thread
timeout func_only: False
collecting ... collected 27 items
@virusbb001
virusbb001 / [old version] xonshrc
Last active August 23, 2018 15:57
[WIP] my xonsh rc
# vim: set filetype=python :
import shutil
import neovim
import os
import platform
from pathlib import Path
xontrib load vox vox_tabcomplete coreutils
let d_angle = 15;
const icon_size = 512;
// draw eye
function eye(svg, cx, cy, parent_r, angle){
if(parent_r < 0){
return;
}
let svg_ns = "http://www.w3.org/2000/svg";
// find all indexof
(function(){
/**
* 検索元文字列からインデックス位置をすべて抜き出す
* @param by {String} 検索対象文字列
* @param string {String} 検索元文字列
* @return {Array} インデックスリスト
*/
function findAllIndexOf(by, str){
let arr=[];
@virusbb001
virusbb001 / TwitterIcon20160603.js
Created June 2, 2016 15:16
いろいろ突っ込まれそうな書き方ばっかりしてる
var size={
// https://support.twitter.com/articles/245278
twitter: {
width: 400,
height: 400
}
};
function apply_size(canvas,size){
canvas.width=size.width;
/*****************************
This script has already deprecated.
* Cookie Clicker
* 自動クリック
* @virusVer001