- manifest.json と script.js を適当な、同じディレクトリ内に保存します。
- Chromeの設定画面を開き、拡張機能の画面を出します。
- 「デベロッパーモード」のチェックボックスにチェックを入れます。
- 「パッケージされていない拡張機能を読み込む」ボタンを押し、先程のディレクトリを選択します。
- http://daishonin.hatelabo.jp/ を開きます。
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
yes 'curl "http://example.com/page/to/watch.html"|md5|perl -e "\$md5=<>;chop\$md5;if(\$md5 ne \"md5 hash string\"){system \"growl -s -H localhost -m renewed!\";}";sleep 60'|sh |
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
@Override | |
protected void onDestroy() { | |
super.onDestroy(); | |
if (deviceDetachedReceiver != null) { | |
unregisterReceiver(deviceDetachedReceiver); | |
} | |
} |
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
mvn -DaltDeploymentRepository=package-name::default::file:snapshots clean deploy |
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
TextToSpeech textToSpeech = new TextToSpeech(getApplicationContext(), new OnInitListener() { | |
@Override | |
public void onInit(int status) { | |
int result = status; | |
if (status == TextToSpeech.SUCCESS) { | |
result = textToSpeech.setLanguage(Locale.JAPAN); | |
if (result != TextToSpeech.LANG_MISSING_DATA && result != TextToSpeech.LANG_NOT_SUPPORTED) { | |
onInitSuccess(); | |
return; | |
} |
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
perl -e 'for(;$t<1<<19;$t++){print pack("C",((($t*(ord substr("F23K12YP.+0%sUGa",~$t>>12&15)))/3&15)-(((~(($t>>9)^($t>>10))%15*$t)/3|$t>>14)&152)));}' | /dev/audio |
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
#! /usr/bin/env perl | |
use warnings; | |
use strict; | |
use LWP::Protocol::https; | |
use Web::Scraper; | |
use YAML; | |
my $urlToScrape = "https://developer.apple.com/support/system-status/"; | |
my $teamsdata = scraper { |
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
# patch for Archive/Zip/Member.pm | |
# search the 'bitFlag' subroutine and replace it. | |
sub bitFlag { | |
my $self = shift; | |
# Set General Purpose Bit Flags according to the desiredCompressionLevel setting | |
my $hasDataDescriptor = $self->hasDataDescriptor(); | |
if ( $self->desiredCompressionLevel == 1 || $self->desiredCompressionLevel == 2 ) { | |
$self->{'bitFlag'} = DEFLATING_COMPRESSION_FAST | $hasDataDescriptor; |
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 MidiPlayingFragment extends Fragment { | |
private Sequencer sequencer = null; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
MidiSystem.initialize(getActivity()); | |
try { |
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 CentralActivity extends Activity { | |
BleMidiCentralProvider bleMidiCentralProvider; | |
@Override | |
public void onCreate(final Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
bleMidiCentralProvider = new BleMidiCentralProvider(this); |
OlderNewer