Note: See .NET 5 examples
This file contains 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_riverpod/flutter_riverpod.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
// A Counter example implemented with riverpod and shared_preferences | |
/// Providers are declared globally and specify how to create a state | |
final counterProvider = StateProvider((ref) => 0); | |
final sharedPrefs = Provider<SharedPreferences>((ref) { |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
This file contains 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
using Newtonsoft.Json; | |
using System.IO; | |
using System.Xml; | |
namespace ConvertXml2Json | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains 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
# update local list of pruned branches on the remote to local: | |
git fetch --prune | |
# delete branches on remote origin that have been merge to master | |
git branch --merged remotes/origin/master -r | %{$_.trim().replace('origin/', '')} | ?{$_ -notmatch 'master'} | %{git push --delete origin $_} | |
# delete local branches that have been merged to master | |
git branch --merged remotes/origin/master | %{$_.trim()} | ?{$_ -notmatch 'master'} | %{git branch -d $_} | |
# remove stale refs (local refs to branches that are gone on the remote) |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
A little greeting from here at Green Chameleon Design to all you at Codepen. Can also be customised at http://craftedbygc.com/merryxmas-codepen by changing the url to "craftedbygc.com/merryxmas-{whatever-you-like}"
Based on the "It's snowing" pen (http://codepen.io/loktar00/pen/CHpGo) by Jason (http://codepen.io/loktar00/)
A Pen by Green Chameleon on CodePen.
NewerOlder