toshimaru / toshimaru Goto Github PK
View Code? Open in Web Editor NEWMy idea storage. Work it harder. Make it better. Do it faster. Makes me stronger.
Home Page: https://toshima.ru/
My idea storage. Work it harder. Make it better. Do it faster. Makes me stronger.
Home Page: https://toshima.ru/
Package management like Brewfile
Write about it on my blog.
mongoid
CICLECI_#{BRANCH} = 'hoge'
echo $CICLECI_master
Easier HipChat notification gem.
class Base
def notify(user: 'HipChat', message: '', notify: false, color: 'green', format: 'text')
hipchat_client.send(user, message, notify: notify, color: color, message_format: format)
end
def hipchat_client
@hipchat ||= ::HipChat::Client.new(token)[room_id]
end
def token
@token ||= Rails.application.secrets.hipchat_token
end
def room_id
raise "No room_id set"
end
# The message body
# Valid length range: 1 - 10000.
def shorten_message(message)
return message if message.length < 5_000
message.slice!(0..5_000)
end
end
opera copy as markdown
https://addons.opera.com/en/extensions/details/web-panel/?display=en
Mac Source:
/Users/toshi/Library/Application Support/com.operasoftware.Opera/Extensions/xxxxxx
like
touch -p /path/to/touch/non-existent/directory/file.txt
http://stackoverflow.com/questions/9452935/unix-create-path-of-folders-and-file
gem for Rails
Existing duplicate tab.
https://github.com/smartinez87/exception_notification
def call(exception, options={})
return if !active?
message = "A new exception occurred: '#{exception.message}' on '#{exception.backtrace.first}'"
@room.send(@from, message, @message_options)
end
@backtrace = exception.backtrace || []
[2] pry(main)> exception = StandardError.new("error")
=> #<StandardError: error>
[3] pry(main)> message = "A new exception occurred: '#{exception.message}' on '#{exception.backtrace.first}'"
NoMethodError: undefined method `first' for nil:NilClass
hatebu post_link
in `directories': undefined method `each' for "app lib config test spec feature":String (NoMethodError)
Model.update(params, context: :foo)
http://blog.arkency.com/2014/04/mastering-rails-validations-contexts/
ip.toshimaru.net
//google.com/
input: URL
output: Http Response Status Code
/**
* Request and get response code
*
* @param {String} given url
* @return {Integer} status code
* @customfunction
*/
function HTTP_RESPONSE_CODE(url) {
var response = UrlFetchApp.fetch(url);
return response.getResponseCode();
}
AWS-Opsworks, in particular, yaml for mysql.
peco + autojump
お疲れさまー!!定時だよー!!カンカンカンカン!!カンカンカンカンカン!!定時だよ!!外暗い!!ねえねえ!!見て見て!!すごい!!外!!暗い!!!!カンカンカンカンカンカンカンカン!!カンカンカンカン!!帰るよー!!カンカンカン!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.