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
v = 1234 | |
10.downto(-10) do |i| | |
print (v * (1 + (i * 0.01))).round | |
puts "#{i}%".rjust(5) | |
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
vim.loader.enable() | |
require "core/autocmds" | |
require "core/options" | |
require "core/mappings" | |
require "core/statusline" | |
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" | |
if not vim.loop.fs_stat(lazypath) then | |
vim.fn.system { |
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
STATUS = 10 | |
DIGIT = 5 | |
def change_status(i, val, cur_val): | |
bit = (1 << (STATUS * DIGIT)) - 1 | |
idx = i * DIGIT | |
s = (1 << (idx + DIGIT)) - (1 << idx) | |
mask = bit ^ s | |
cur_val &= mask |
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
column_width = 120 | |
line_endings = "Unix" | |
indent_type = "Spaces" | |
indent_width = 2 | |
quote_style = "AutoPreferDouble" | |
call_parentheses = "None" |
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
local hl_tbl = { | |
[vim.diagnostic.severity.ERROR] = "DiagnosticError", | |
[vim.diagnostic.severity.WARN] = "DiagnosticWarn", | |
[vim.diagnostic.severity.HINT] = "DiagnosticHint", | |
[vim.diagnostic.severity.INFO] = "DiagnosticInfo", | |
} | |
function PrintDiagnostics(opts, bufnr, line_nr, client_id) | |
bufnr = bufnr or 0 | |
line_nr = line_nr or (vim.api.nvim_win_get_cursor(0)[1] - 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
{ | |
"plugins": ["stylelint-prettier"], | |
"rules": { | |
"prettier/prettier": true | |
}, | |
"extends": ["stylelint-config-standard", "stylelint-config-recess-order", "stylelint-prettier/recommended", "stylelint-config-prettier"] | |
} |
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
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
es6: true, | |
node: true | |
}, | |
extends: [ | |
'airbnb-base', | |
'eslint:recommended', |
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
black = %w(16 #000000) | |
white = %w(15 #FFFFFF) | |
gray = %w(102 #9E9E9E) | |
darkgray = %w(240 #585858) | |
dimgray = %w(235 #262626) | |
darkpurple = %w(97 #875FAF) | |
purple = %w(135 #BC79FF) # #B388FF | |
lightpurple = %w(171 #E080FC) # #C993FF | |
green = %w(119 #76FF03) | |
lightgreen = %w(156 #AEEA00) |
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
850 | ヤラカシタヤラカシタ | |
46 | ヤラカシタ | |
135 | ヤラカシタ、ヤラカシタ | |
22 | ヤラカシタ ヤラカシタ | |
1 | ヤラカシタヤラカシタ(棒読み) | |
2 | ヤラカシタやらかした | |
2 | ヤラカシタ、ヤラカシタ | |
2 | ヤラカシタ、ヤラカシタ。 | |
1 | ヤラカシタカラカシタ | |
489 | 卒業 |
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
# frozen_string_literal: true | |
words = [] | |
File.open("word.txt", "r") do |f| | |
words = f.readlines | |
end | |
word_count = words.each_with_object(Hash.new(0)) do |word, hash| | |
hash[word.chomp!] += 1 |
NewerOlder