Navigate to the directory of a Python project you want to run in virtual environment:
cd path/to/target/project
Define virtual environment:
Hello (<-- two spaces)
World
Hello
World
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
version: 2.1 | |
jobs: | |
ios_distribute_beta: | |
macos: | |
xcode: "10.3.0" | |
working_directory: ~/flutter-app | |
steps: | |
- add_ssh_keys: | |
fingerprints: | |
- "ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab:ab" |
import 'package:flutter/material.dart'; | |
class Bubble extends StatelessWidget { | |
Bubble({this.message, this.time, this.delivered, this.isMe}); | |
final String message, time; | |
final delivered, isMe; | |
@override | |
Widget build(BuildContext context) { |
import 'dart:typed_data'; | |
void main() { | |
// Source | |
String source = 'Hello! Cześć! 你好! ご挨拶!Привет! ℌ𝔢𝔩𝔩𝔬! 🅗🅔🅛🅛🅞!'; | |
print(source.length.toString() + ': "' + source + '" (' + source.runes.length.toString() + ')'); | |
// String (Dart uses UTF-16) to bytes | |
var list = new List<int>(); |
class ScreenOne extends StatefulWidget { | |
@override | |
_ScreenOneState createState() => _ScreenOneState(); | |
} | |
class _ScreenOneState extends State<ScreenOne> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( |
echo 'export ENV_VAR=12345' >> ~/.zshenv | |
echo $ENV_VAR // perform on relaunch of zsh to check if everything is set properly. | |
12345 |
// Note that you can call this code in a script | |
// so that you can simply call the script at the start of each room. | |
// You can even add a final piece of code to have this | |
// automatically set all the views in all your rooms | |
// so that you only need to call it once at the start of the game. | |
// This code will just loop through every room in your game, destroy the default camera, | |
// and then create a new camera that is correct for the display size and aspect ratio, | |
// as well as enable a viewport in the room for the camera to act on. | |
var _check = true; |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |