Mac OSX: Mac OSX 10.5+ | |
Windows/Linux: Default | |
他のキーマップだとQiitaやドキュメント、ブログなどを見る際に苦労します。 | |
設定画面 | Cmd + , (Ctrl + Alt + S) |
プロジェクト設定画面 | Cmd + ; |
File > Power Save Mode | バッテリー節約 |
プロジェクトペイン | Cmd + 1 (Alt + 1) |
新規ファイル | Cmd + N (Alt + Insert) |
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 void combineDevidedFiles(String destination, String devidedFilePrefix) { | |
File destFile = new File(destination); | |
destFile.mkdirs(); | |
destination += devidedFilePrefix; | |
destFile = new File(destination); | |
InputStream input = null; | |
try { | |
AssetManager assetManager = context.getAssets(); | |
OutputStream output = new FileOutputStream(destFile); |
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 void extractZipFiles(String dest, String zipName) { | |
try { | |
AssetManager assetManager = context.getAssets(); | |
InputStream inputStream = assetManager.open(zipName, AssetManager.ACCESS_STREAMING); | |
ZipInputStream zipInputStream = new ZipInputStream(inputStream); | |
ZipEntry zipEntry = zipInputStream.getNextEntry(); | |
while (zipEntry != null) { | |
String entryName = zipEntry.getName(); |
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
/** | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> | |
*/ | |
package com.itog_lab.sample.wifi; | |
import android.app.Activity; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; |
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
// | |
// Sound, Vibrate, LED 全てデフォルト | |
// | |
Notification notification = new Notification(); | |
notification.defaults |= Notification.DEFAULT_ALL; | |
NotificationManager notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); | |
notificationManager.notify(R.string.app_name, notification); | |
// |
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
ConfigurationBuilder confbuilder = new ConfigurationBuilder(); confbuilder.setOAuthConsumerKey(Const.CONSUMER_KEY).setOAuthConsumerSecret(Const.CONSUMER_SECRET); | |
twitter = new TwitterFactory(confbuilder.build()).getInstance(); | |
String CALLBACK_URL = "myapp://oauth"; | |
requestToken = twitter.getOAuthRequestToken(CALLBACK_URL); |
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
import requests | |
from bs4 import BeautifulSoup | |
import lxml.html | |
import time | |
import csv | |
def parse(url): | |
response = requests.get(url) | |
if response.status_code == 200: |
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
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
OlderNewer