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
git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done |
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
public class MinHeap | |
{ | |
private readonly int[] _elements; | |
private int _size; | |
public int Count {get => _size;} | |
public MinHeap(int size) | |
{ | |
_elements = new int[size]; | |
} |
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 React from "react"; | |
const Spinner = (props: { size?: string, color?: string }) => { | |
const { size = 'md', color = 'black' } = props; | |
const width: {[key:string]: string}= { | |
sm: "w-6", | |
md: "w-8", | |
lg: "w-10", | |
}; |
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
using System; | |
using System.IO; | |
namespace MiningOptimizationTesting | |
{ | |
/// <summary> | |
/// Test implementation of an algorithm to maximize potential returns for mining a block | |
/// Based on the knapsack 0-1 DP solution. | |
/// </summary> | |
public class BlockTransactionOptimizer |
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
<StackLayout Orientation="Horizontal" Margin="0" Padding="0" VerticalOptions="Start"> | |
<StackLayout Margin="0,0,0,0" Padding="0" VerticalOptions="StartAndExpand" HorizontalOptions="CenterAndExpand"> | |
<Button Clicked="ButtonPosts_Clicked" Command="{Binding ListAllPostsCommand}" Image="fa_burger.png" HeightRequest="20" VerticalOptions="StartAndExpand" Margin="15" HorizontalOptions="CenterAndExpand"/> | |
</StackLayout> | |
<StackLayout Margin="0,0,0,0" Padding="0" VerticalOptions="StartAndExpand" HorizontalOptions="CenterAndExpand"> | |
<Button Clicked="ButtonPosts_Clicked" Command="{Binding ListVideosCommand}" Image="fa_videos.png" HeightRequest="20" HorizontalOptions="CenterAndExpand" Margin="15" VerticalOptions="StartAndExpand"/> | |
</StackLayout> | |
<StackLayout Margin="0,0,0,0" Padding="0" VerticalOptions="StartAndExpand" HorizontalOptions="CenterAndExpand"> | |
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
using Android.Content; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Selectron.Field.RouteTracker.Droid.Renderers; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.Android; | |
[assembly: ExportRenderer(typeof(Picker), typeof(CustomPickerRenderer_Droid))] | |
namespace Selectron.Field.RouteTracker.Droid.Renderers | |
{ |
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
<Frame HorizontalOptions="FillAndExpand" Padding="1,1,1,1" Margin="5,5,5,5" HasShadow="True"> | |
<Frame.BackgroundColor> | |
<Color x:FactoryMethod="FromRgba"> | |
<x:Arguments> | |
<x:Int32>0</x:Int32> | |
<x:Int32>0</x:Int32> | |
<x:Int32>0</x:Int32> | |
<x:Int32>128</x:Int32> | |
</x:Arguments> | |
</Color> |