Skip to content

Instantly share code, notes, and snippets.

View pokutuna's full-sized avatar
👁️
👄👁👂

pokutuna pokutuna

👁️
👄👁👂
View GitHub Profile
W/SignalStrength( 957): SignalStrength after validate=SignalStrength: 19 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 cdma
D/FastDormancyService( 957): Find DataConnection
D/StatusBar.NetworkController( 861): onServiceStateChanged state=0 home NTT DOCOMO NTT DOCOMO 44010 UMTS:3 CSS not supported -1 -1 mDataState=0 RoamInd=-1 DefRoamInd=-1 EmergOnly=false RegistrationState=1
D/StatusBar.NetworkController( 861): Combining data service state0for signal
D/StatusBar.NetworkController( 861): refreshViews connected={ data } level=4 combinedSignalIconId=0x7f0200c9/com.android.systemui:drawable/stat_sys_signal_4_fully combinedActivityIconId=0x0 mAirplaneMode=false mDataActivity=0 mPhoneSignalIconId=0x7f0200c9 mDataDirectionIconId=0x7f0200a7 mDataSignalIconId=0x7f0200c9 mDataTypeIconId=0x7f0200a0 mNoSimIconId=0x0 mWifiIconId=0x0 mBluetoothTetherIconId=0x1080546
D/DMC_SERVICE( 3679): DmcTimeChangeAndPhoneStatusReceiver:onReceive
I/DMC_GLOBAL( 3679): boot_completed = 1
D/DMC_SERVICE( 3679):
# -*- coding: utf-8 -*-
class Util
def self.deg2rad(degree)
degree * Math::PI / 180.0
end
# ヒュベニの距離計算式 単位: m
def self.geo_distance(geo_a, geo_b)
E/BluetoothAdapterState( 976): Error while turning Bluetooth On
D/BluetoothAdapterService( 976): Broadcasting updateAdapterState() to 1 receivers.
I/BluetoothBondStateMachine( 976): StableState(): Entering Off State
D/BluetoothManagerService( 445): Message: 60
D/BluetoothManagerService( 445): MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 11, newState=10
D/BluetoothManagerService( 445): Broadcasting onBluetoothStateChange(false) to 8 receivers.
D/BluetoothHeadset( 713): onBluetoothStateChange: up=false
E/BluetoothHeadset( 713):
E/BluetoothHeadset( 713): java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHeadse
t$2@41c813b0
int startTime;
int threshould = 3000;
void setup() {
startTime = millis();
}
void draw() {
int diff = millis() - startTime;
Sub となりのセルをコメントにし二郎()
Dim targetCell As Range
Dim nextCell As Range
Do Until ActiveCell.Value = ""
Set targetCell = Range(ActiveCell.Address)
Set nextCell = targetCell.Offset(0, 1)
If Not nextCell.Text = "" And targetCell.NoteText = "" Then
@pokutuna
pokutuna / comment_taro.vba
Created November 21, 2012 22:31
ultra useful excel macro
Sub となりセルをコメントにし太郎()
Dim pos As Range
Dim relatedCell As Range
Set pos = Range(ActiveCell.Address)
Set relatedCell = pos.Offset(0, 1)
If Not relatedCell.Text = "" Then
On Error GoTo SET_COMMENT_ERROR
require 'open-uri'
require 'nokogiri'
require 'fileutils'
USER = 'M1325'
PAGE = 'http://hsi.ksc.kwansei.ac.jp/~kono/cgi-bin/2010hci-ex/report/report.cgi?act_display_report=1&c=2&r=R2'
PATTERN = /R2.pdf|R2-1.zip/
puts 'password >>'
@auth = { :http_basic_authentication => [USER, gets] }
public class MultiplyBlock extends ProcessBlock<Integer, String> {
int keisuu = 1;
public MultiplyBlock(boolean tail, int keisuu) {
super(tail);
this.keisuu = keisuu;
}
import hypermedia.video.*;
import java.awt.Rectangle;
OpenCV opencv;
void setup() {
size(320, 240);
opencv = new OpenCV(this);
opencv.capture(width, height);
import hypermedia.video.*;
OpenCV opencv;
void setup() {
size(640, 480);
opencv = new OpenCV(this);
opencv.capture(width, height);
}