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 _MyHomePageState extends State<MyHomePage> { | |
int _counter = 0; | |
void _incrementCounter() { | |
setState(() { | |
// This call to setState tells the Flutter framework that something has | |
// changed in this State, which causes it to rerun the build method below | |
// so that the display can reflect the updated values. If we changed | |
// _counter without calling setState(), then the build method would not be | |
// called again, and so nothing would appear to happen. |
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
main(){ | |
String number = "3231234545"; | |
String xedNumber=""; | |
for(int i = 0; i < number.length; i++){ | |
if(i > 2 && i< number.length - 2) | |
xedNumber += "x"; | |
else | |
xedNumber += number[i]; | |
} | |
print(xedNumber); |
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 java.nio.file.Path | |
import java.nio.file.Paths | |
import com.android.builder.model.AndroidProject | |
import org.apache.tools.ant.taskdefs.condition.Os | |
import org.gradle.api.DefaultTask | |
import org.gradle.api.GradleException | |
import org.gradle.api.Project | |
import org.gradle.api.Plugin | |
import org.gradle.api.Task |
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 | |
if [ -z "$1" ] | |
then | |
echo "Please enter a channel name after \"flutter_update\"" | |
else | |
cd ~/development/flutter/ | |
git pull | |
flutter channel $1 | |
fi |
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
main() { | |
// ?? operator | |
print("\n?? operator \n"); | |
var x; // x is null | |
String otherExp = "x is null"; | |
print(x ?? otherExp); // returns otherExp, which is a String, to print. | |
var isXNull = x ?? true; | |
print(isXNull); | |
//is the same as |
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
void main() { | |
var one = enumString.HELLO; | |
print(one); | |
if(one == enumString.HELLO) | |
print("$one, Jonathan!"); | |
} | |
class enumString{ | |
static const HELLO="hello"; | |
} |
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'; | |
void main() { | |
int count = 0; | |
var counterController = new StreamController(); | |
counterController.stream.listen((value) => print(value)); | |
void increment() { | |
counterController.add(count++); | |
} |
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
#THIS NEEDS SUPER USER ACCESS. Verify that you want to do this first, since rm -rf asks no questions! | |
#Copy and past this in your terminal when you are ready. I hold no liability for your choice. | |
sudo rm -rf "/Applications/GarageBand.app" | |
sudo rm -rf "/Library/Application Support/GarageBand" | |
sudo rm -rf "/Library/Application Support/Logic" | |
sudo rm -rf "/Library/Audio/Apple Loops" |
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
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>livekingdomhall.com</key> | |
<dict> | |
<key>NSExceptionAllowsInsecureHTTPLoads</key> | |
<true/> |
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'; | |
import 'package:flutter_spinkit/flutter_spinkit.dart'; | |
main(List<String> arguments) { | |
runApp(new MaterialApp( | |
title: "Test", | |
home: CongregationImage( | |
isLoading: true, | |
screenHeight: 100.0, | |
orientation: Orientation.portrait, |