Skip to content

Instantly share code, notes, and snippets.

View boyan01's full-sized avatar

Bin boyan01

View GitHub Profile
@wangbax
wangbax / device.dart
Last active October 2, 2023 15:00
Flutter generate a unique device identifier in windows platform.
import 'dart:convert';
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:crypto/crypto.dart';
// Device Manager
class Device {
Device._privateConstructor();
@debuggerx01
debuggerx01 / JumpToIndexDemo.dart
Created August 10, 2018 03:58
JumpToIndexDemoForFlutter
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:rect_getter/rect_getter.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@hereismari
hereismari / msi-gtx1060-ubuntu-18.04-deeplearning.md
Last active December 3, 2023 17:14
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
@heinrichreimer
heinrichreimer / LICENSE
Last active August 29, 2023 14:28
LinearLayoutManager implementation that stretches to fit all list items on screen and disables scrolling. Useful for dashboards etc.
MIT License
Copyright (c) 2020 Jan Heinrich Reimer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@tuxfight3r
tuxfight3r / git-squash
Created July 7, 2015 14:20
git squash multiple commits with rebase
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c