This file contains hidden or 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
| // Константы, обозначающие пины подключения акселерометра. | |
| // Установите их в соответсвии с собственным подключением | |
| const int xpin = A3; // Ось X акселерометра | |
| const int ypin = A2; // Ось Y акселерометра | |
| const int zpin = A1; // Ось Z акселерометра | |
| void setup() { | |
| // Инициализируем пожключение Serial: | |
| Serial.begin(9600); | |
| } |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <string name="app_name">My Application</string> | |
| <string name="hello_world">Hello world!</string> | |
| <string name="action_settings">Settings</string> | |
| </resources> |
This file contains hidden or 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
| <com.google.android.gms.ads.AdView | |
| android:id="@+id/adView" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentBottom="true" | |
| android:layout_centerHorizontal="true" | |
| android:layout_gravity="center_horizontal|bottom" | |
| ads:adSize="BANNER" | |
| ads:adUnitId="ca-app-pub-1861911852409612/3589765162"/> |
This file contains hidden or 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
| xmlns:ads="http://schemas.android.com/apk/res-auto" |
This file contains hidden or 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.INTERNET"/> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
This file contains hidden or 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
| <activity | |
| android:name="com.google.android.gms.ads.AdActivity" | |
| android:configChanges="keyboard|keyboardHidden| | |
| orientation|screenLayout|uiMode| | |
| screenSize|smallestScreenSize" /> |
This file contains hidden or 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
| AdView adView = (AdView) this.findViewById(R.id.adView); | |
| AdRequest adRequest = new AdRequest.Builder().build();//Запрашиваем объявление | |
| adView.loadAd(adRequest);//Загружаем и показываем объявление. |
This file contains hidden or 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
| compile 'com.google.android.gms:play-services:6.5.87' |
This file contains hidden or 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 | |
| su ts3server | |
| # Запускаем сервер | |
| cd /home/ts3server | |
| ./ts3server_minimal_runscript.sh |
This file contains hidden or 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
| // Создание межстраничного объявления. | |
| interstitial = new InterstitialAd(this); | |
| interstitial.setAdUnitId("ca-app-pub-xx/xx"); | |
| // Создание запроса объявления. | |
| AdRequest adRequest = new AdRequest.Builder().build(); | |
| // Запуск загрузки межстраничного объявления. | |
| interstitial.loadAd(adRequest); |
OlderNewer