- src/main/scala/Main.scala
object Main {
def main(args: Array[String]): Unit = {
println("hello scala!")
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import csv | |
import codecs | |
import numpy as np | |
import MeCab | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.cluster import KMeans, MiniBatchKMeans |
class Nyan | |
def behave_method(target, source) | |
(class << self; self end).module_exec do | |
alias_method "#{target}_original", target unless method_defined? "#{target}_original" | |
alias_method "#{source}_original", source unless method_defined? "#{source}_original" | |
alias_method target, "#{source}_original" | |
end | |
end | |
def with_behaving_method(a, b) |
日時: | 2024-12-02 |
---|---|
作: | 時雨堂 |
バージョン: | 2024.3 |
url: | https://shiguredo.jp/ |
2024-12 時点で従業員は全員フルリモート勤務中
# usage: ruby compress.rb icon.gif > myicon.rb | |
bit = 15 | |
data = File.open(ARGV[0]){|f| f.read } | |
encoded_data = nil | |
offset = 0 | |
bit_str = data.unpack("B*")[0] | |
(0x0000..0xffff).each do |i| |
#footer { | |
left: auto; | |
bottom: 0px; | |
right: 0; | |
width: 500px; | |
height: 100%; | |
} | |
#info_playlist_frame_left { | |
height: 100%; |
var Color = function() { | |
if (arguments.length == 1) | |
[this.r, this.g, this.b] = Color.parse(arguments[0]); | |
else if (arguments.length == 3) | |
[this.r, this.g, this.b] = arguments; | |
else | |
throw 'invalid number of arguments, takes one or three arguments'; | |
}; | |
Color.parse = function(color) { |