Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Johngorithm johngorithm

🏠
Working from home
View GitHub Profile
@johngorithm
johngorithm / loading_and_displaying_pages_of_data.dart
Last active Aug 26, 2020
Comment/Code - How to load and display pages of network data.
View loading_and_displaying_pages_of_data.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
View cocoapod-upgrade-issue
https://stackoverflow.com/questions/46377667/docker-for-mac-mkmf-rb-cant-find-header-files-for-ruby
View delete_flutter_lock_file_command.md

Command for deleting flutter lock file.

This is essentially useful when one is blocked on Waiting for another flutter command to release the startup lock...

On the flutter root folder, run: rm ./flutter/bin/cache/lockfile

View update_a_local_branch.md

First

git fetch --all

Next

git reset --hard origin/<feature-branch>
@johngorithm
johngorithm / shadow.xml
Created Sep 15, 2019 — forked from lecho/shadow.xml
Android shadow drawable xml.
View shadow.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
View undo_git_commit.md

To undo a commit and return the changes back to staging. Use the command blow

git reset --soft HEAD^

View git_change_remote_url.md

The link below show how one can change a repository's remote link from the command line.

This is essentially important when switching form either HTTPS TO SSH or vice-versa

Learn More

View git_ignore.md

To view all files in your project that are ignored by Git without looking into .gitignore file, run the command below

git ls-files --others --ignored --exclude-standard
View ClearCacheInAndroid.java
import android.content.Context;
import java.io.File;
public class CacheManager {
/**
* Private Constructor to make this a Utility class.
*/
private CacheManager() {
// Private constructor
You can’t perform that action at this time.