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
# -*- coding: utf-8 -*- | |
Plugin.create :block do | |
command(:block, | |
name: 'ブロックする', | |
condition: Plugin::Command::CanReplyAll, | |
visible: true, | |
icon: nil, | |
role: :timeline) do |opt| |
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
private ListView mListView; | |
private ArrayAdapter<twitter4j.Status> mAdapter; | |
private twitter4j.Status mFirstVisibleStatus; | |
private int mFirstVisibleOffset = -1; | |
protected void savePosition() { | |
if (mAdapter.isEmpty()) return; | |
mFirstVisibleStatus = mAdapter.getItem(mListView.getFirstVisiblePosition()); | |
mFirstVisibleOffset = mListView.getChildAt(0).getTop(); | |
} |
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
#-*- coding: utf-8 -*- | |
Plugin.create :security_crash do | |
# キーワードを設定 | |
UserConfig[:security_crash_keyword] ||= 'abort-mikutter' | |
# TLに流れてきたすべてのツイートを監視 | |
on_appear do |ms| | |
ms.each do |m| | |
# 投稿者が自分で,上記のキーワードと一致しているか確認 |
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'idea' | |
apply plugin: 'groovy' | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
[compileJava, compileTestJava].each { | |
it.options.encoding = 'UTF-8' |
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 -*- | |
require 'net/http' | |
require 'rubygems' | |
require 'nokogiri' | |
class Comment | |
class << self | |
attr_accessor :cookie | |
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
public class Main { | |
public static void main(String[] args) { | |
final Twitter twitter = TwitterFactory.getSingleton(); | |
final TwitterStream stream = TwitterStreamFactory.getSingleton(); | |
stream.addListener(new UserStreamAdapter() { | |
public void onStatus(Status status) { | |
if (!status.isRetweet() && satatus.getText().contains("おっぱい")) { | |
try { | |
twitter.createFavorite(status.getId()); | |
} catch (TwitterException ignore) { |
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
package jp.rhe.test.twitterauth; | |
import android.app.Activity; | |
import android.content.ComponentName; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.TextView; |
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
# -*- coding: utf-8 -*- | |
require "open-uri" | |
require "FileUtils" | |
# From http://d.hatena.ne.jp/gan2/20080531/1212227507 | |
def save_file(url, filename) | |
# これより、ファイルを開きます | |
open(filename, 'wb') do |file| | |
open(url) do |data| | |
file.write(data.read) |
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 | |
# Modified by Stan Schwertly to download locally rather than to send to Posterous. | |
# Github: http://github.com/Stantheman/Twitpic-Backup | |
# Copyright 2010 Tim "burndive" of http://burndive.blogspot.com/ | |
# This software is licensed under the Creative Commons GNU GPL version 2.0 or later. | |
# License informattion: http://creativecommons.org/licenses/GPL/2.0/ | |
# This script is a derivative of the original, obtained from here: |
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
package jp.radiko.testasyncalertdialog | |
import android.os.Bundle | |
import android.widget.Button | |
import android.widget.Toast | |
import androidx.appcompat.app.AlertDialog | |
import androidx.appcompat.app.AppCompatActivity | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.Job |
OlderNewer