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/bash | |
| VOLUME='' | |
| while true; | |
| do | |
| # Detect TimeMachine status | |
| STATUS=$(tmutil currentphase) | |
| if [[ "$STATUS" == "BackupNotRunning" ]] | |
| then |
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
| import 'package:flutter/material.dart'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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
| include: package:lint/analysis_options.yaml | |
| analyzer: | |
| plugins: | |
| - dart_code_metrics | |
| exclude: | |
| - "**/*.g.dart" | |
| - "**/*.freezed.dart" | |
| - "lib/generated/**" |
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
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| abstract class RestorableBloC<T extends Bloc, State> | |
| extends RestorableProperty<T> { | |
| late T _bloc; | |
| late StreamSubscription<State> _subscription; |
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
| class Pair<K, V> { | |
| Pair(this.key, this.value); | |
| final K key; | |
| final V value; | |
| @override | |
| String toString() => 'Pair[$key, $value]'; | |
| } |
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
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <script> | |
| var API_1484_11 = {}; | |
| (function ($) { | |
| $(document).ready(function () { | |
| setupScormApi() |
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
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <script> | |
| var API = {}; | |
| (function ($) { | |
| $(document).ready(function () { | |
| setupScormApi() |
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
| Взято тут: http://stackoverflow.com/questions/18025942/how-do-i-add-a-library-android-support-v7-appcompat-in-intellij-idea | |
| 1) Goto ANDROID_HOME\sdk\extras\android\support\v7\appcompat | |
| 2) Create a zip file of the entire library and call it appcompat.apklib | |
| 3) Open cmd in this location and type "mvn install:install-file -Dfile=appcompat.apklib -DgroupId=com.google.android -DartifactId=support-v7-appcompat -Dversion=r7 -Dpackaging=apklib" | |
| 4) Goto ./libs | |
| 5) Type "mvn install:install-file -Dfile=android-support-v7-appcompat.jar -DgroupId=com.google.android -DartifactId=support-v7-appcompat -Dversion=r7 -Dpackaging=jar" | |
| 6) Add the appropriate dependencies | |