- ダッシュボード
- 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
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
// ==UserScript== | |
// @name Disable GitHub toolbar hotkey | |
// @namespace https://wanko.cc | |
// @include https://github.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var nodes = document.querySelectorAll('.js-toolbar-item[data-toolbar-hotkey]'), i; | |
for (i = 0; i < nodes.length; i++) { |
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
absint | |
activate_plugin | |
activate_plugins | |
activate_sitewide_plugin | |
add_action | |
add_blog_option | |
add_clean_index | |
add_comment_meta | |
add_comments_page | |
add_contextual_help |
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 RSpec | |
module Core | |
class Example | |
def run_with_retry(example_group_instance, reporter) | |
@retrying_count = 0 | |
succeeded = run_without_retry(example_group_instance, reporter) | |
unless succeeded | |
return finish_without_retry(reporter) unless retry_needed? |
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
version: "2" | |
services: | |
node: | |
build: | |
context: ./ | |
dockerfile: docker/node/Dockerfile | |
volumes: | |
- ./client:/app/client | |
- ./yarn.lock:/app/yarn.lock | |
- node_modules:/app/node_modules |
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
ETH_POOL_URL=https://ethermine.org/miners/XXXXXXX | |
SLACK_CH=XXXXXXX | |
wget $ETH_POOL_URL -O - 2>/dev/null \ | |
| w3m -dump -cols 2000 -T 'text/html' \ | |
| grep -E 'Unpaid Balance.*ETH' \ | |
| slack-cli -d $SLACK_CH |
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
IO.popen('ant run') do |io| | |
while (line = io.gets) do | |
puts line | |
end | |
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
#!/bin/sh | |
# The main issues with Ruby 1.8.7 are that it won't build with Clang, | |
# and the Net::HTTPS module won't work with modern versions of OpenSSL. | |
# | |
# This assumes you have already set up homebrew, and run: xcode-select --install | |
brew install homebrew/dupes/apple-gcc42 | |
brew install libyaml libffi | |
brew install https://github.com/Homebrew/homebrew-versions/raw/586b7e9012a3ed1f9df6c43d0483c65549349289/openssl098.rb | |
export CC=/usr/local/bin/gcc-4.2 |
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
The MIT License | |
Copyright © 2010-2016 three.js authors | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
OlderNewer