Skip to content

Instantly share code, notes, and snippets.

@kyontan
kyontan / mastodon_remote_follow.rb
Last active April 16, 2017 13:24
マストドンで延々とリモートフォローをしつづけるやつです。
#!/usr/bin/env ruby
# how to use:
# 1. domains ファイルをこのスクリプトを同じディレクトリに配置し、リモートフォローしたいインスタンスのドメインを記載してください
# (place `domains` file located same directory as the script file, and write the domain name of instance which you want to remote follow.)
# 2. run this script
# 3. 発見されたアカウントがあなたのインスタンスに登録されます, ただ、リモートアカウントとして登録されるだけで、実際にフォローなどは行われません
# (new accounts might have registered to your insntance, but not yet `followed` by your account (only registered to instance as a remote account))
# 4. なんらかのお好きな方法でフォローしてください
# (please follow them by your account yourself, your ways)
function milkbox(uri){
// 文字列としてエレメントを定義
var eleStr = function(){/*
<div id="milkbox_body" class="milk_wrap">
<div class="milkbox_container">
<div class="milkbox_content">
<img src="CONTENT_URI">
<div class="milkbox_button">x</div>
<div id="loader_id" class="loader">
<img src="img/load.gif">
@gaogao-9
gaogao-9 / syaro.js
Last active December 12, 2015 12:59
$(function() {
// 揺らしアニメーション管理用のフラグ変数
var waitShake = false;
$("#syaro_pyonpyon").on({
"mouseover": function() {
// マウスが上に乗ったら、揺らしアニメーションを強制的に中断して
// バウンドアニメーションに切り替えていく
$(this).removeClass("shake")
.addClass("animated bounce");
require "open-uri"
require "uri"
require "nokogiri"
require 'tweetstream'
CONSUMER_KEY = "あなたのCONSUMER_KEY"
CONSUMER_SECRET = "あなたのCONSUMER_SECRET"
OAUTH_TOKEN = "あなたのOAUTH_TOKEN"
OAUTH_TOKEN_SECRET = "あなたのOAUTH_TOKEN_SECRET"
YOUR_ID = "あなたのTwitterID (@sudosanなど)"
@ksasao
ksasao / meshi.cs
Created April 16, 2015 16:51
C#による 飯テロ判定コード。 License: WTFPL
using System;
using System.Drawing;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Meshi
{
// IBM Watson (Bluemix) を利用した飯画像判定
@chitoku-k
chitoku-k / tana3n.js
Created February 21, 2015 06:57
ニーソキモチイイイイイイイイイ
/* https://twitter.com/tana3n/status/497753779177926657 */
var STATUS_ID = "497753779177926657";
var Twitter = require("twitter")({
consumer_key: process.env.TWITTER_CONSUMER_KEY,
consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
access_token_key: process.env.TWITTER_ACCESS_TOKEN,
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET,
});