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
# encoding: utf-8 | |
$VERBOSE = nil # instead of -W0 | |
require_relative "./bot-2.rb" | |
# CONSUMER_KEY = "" | |
# CONSUMER_SECRET = "" | |
# ACCESS_TOKEN = "" | |
# ACCESS_TOKEN_SECRET = "" |
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
# encoding: utf-8 | |
def powm(base, power, mod) | |
ret = 1 | |
until power == 0 | |
ret = ret * base % mod if power & 1 == 1 | |
base = base * base % mod | |
power >>= 1 | |
end | |
ret |
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
# encoding: utf-8 | |
Encoding.default_external = Encoding::UTF_8 | |
$VERBOSE = nil # instead of -W0 | |
require "timeout" | |
require "date" | |
require "cgi" | |
# require "pry" | |
# require_relative "./wac/lib/wac.rb" |
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
eval$s=%w'b="BAhsKwJ+Af//////////////////////////////////////////////////////////////////////////////////////// | |
/////////////////4////////////////H/z//////////38AAP4BwP//////////BwABEPAH+P////////vh/w8A/h/8////////Af7/f4T/H | |
/7//////weA////wx88/v////9/AP/////Bzzz+/////x/4/////+Dnj///////A/z///9/4IfD//////8B/////z/AD8D/////APD//////4f/ | |
AP///38A/P//////AwCA////BwD+//////8BAAb////gH/7////////7j///f/wf/v///y/+//mP//8f/x//////B////8f//8PPj/////+A/// | |
/o///88HH////P8D///nR/9945uP/////////P/z/b/zz+f/5//////8f/v8//nz4P/j//////4/+/z8+Hv4f8P8f/P//wP//D8CD/w/+/w/+// | |
/D//8/cPj////3B////+P//x8A/////wOA////8///D8D////BAcD////x////8f///wAA////3/z //3/w////AeD///8f/v//f/j///+H// | |
///wf///8//P//////////gP///y/6/////////w8A8P//P/j/////////BwD4//9/8P/////// /+DAfz//38A/v///////+EB/v///wf/ | |
//////9//P//////w////////w/+//////+H////////wP ///////w f+/////wHg////////DwDw/88v | |
AMD///////9/APj/hwcH4P////////8B4H8A8A/w/// / / ///fwAA AAD+D/z///////8f4L/w | |
AP///////////x/w |
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
# encoding: utf-8 | |
class UpdateNamePlugin | |
include Purugin::Plugin | |
description 'UpdateName', 0.1 | |
def on_enable | |
chatcolor = org::bukkit::ChatColor | |
public_command('update_name', 'change displayed name', '/update_name {id} {new_name}') do |sender, *args| |
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
def powm(base, power, mod) | |
ret = 1 | |
until power == 0 | |
ret = ret * base % mod if power & 1 == 1 | |
base = base * base % mod | |
power >>= 1 | |
end | |
ret | |
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
class Runner | |
constructor: -> | |
@cbs = [] | |
set: (callback) -> | |
@cbs.push callback | |
run: -> | |
for cb in @cbs | |
cb() |
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
require 'natto' | |
require 'twitter' | |
require 'yaml' | |
key_data = YAML.load_file(File.expand_path('./key_token.yml')) | |
$api = Twitter::REST::Client.new do |config| | |
config.consumer_key = key_data['consumer_key'] | |
config.consumer_secret = key_data['consumer_secret'] | |
config.access_token = key_data['access_token'] |
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
require 'highline' | |
require 'rmagick' | |
require 'parallel' | |
require 'pp' | |
class ImageAnalize | |
attr_reader :img | |
COLOR_MAP = [ | |
nil, |
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
gulp = require 'gulp' | |
watchify = require 'gulp-watchify' | |
sourcemaps = require 'gulp-sourcemaps' | |
buffer = require 'vinyl-buffer' | |
plumber = require 'gulp-plumber' | |
rename = require 'gulp-rename' | |
target = | |
src: 'index.coffee' | |
name: 'index.js' |
OlderNewer