Some git command that I read/learn while facing some kind of problem or looking for something different.
####Reset all changes after last commit
$ git reset HEAD --hard
<div style=" | |
position: fixed; | |
top: 90%; | |
left: 50%; | |
z-index: 10000; | |
transform: translate(-50%, -50%); | |
background: rgba(247, 201, 241, 0.5); | |
padding: 20px; | |
border-radius: 30px; | |
"> |
class DownloadProgressIndicator extends StatelessWidget { | |
DownloadProgressIndicator({ | |
this.color =Colors.blue, | |
this.backgroundColor = Colors.black12, | |
this.content, | |
this.value, | |
this.strokeWidth = 4.0, | |
}); |
import 'dart:async'; | |
import 'dart:math'; | |
import 'dart:typed_data'; | |
import 'dart:ui' as ui; | |
import 'package:flutter/services.dart' show rootBundle; | |
import 'package:flutter/material.dart' hide Image; | |
void main() => runApp(new MyApp()); | |
import 'package:flutter/material.dart'; | |
import 'dart:ui' as ui; | |
import 'package:flutter/services.dart' show rootBundle; | |
import 'dart:async'; | |
import 'dart:typed_data'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. |
//You cannot set the min value of a SeekBar (always 0) and you cannot set the step value of a SeekBar (always 1). | |
//If you want to set the value from 60 to 180 with a step of 1 this is the way to do it | |
//From http://stackoverflow.com/questions/20762001/how-to-set-seekbar-min-and-max-value | |
int step = 1; | |
int max = 180; | |
int min = 60; | |
// Ex : |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Well I have used following procedure usually: | |
Go To RUN | |
Write CMD | |
Ping the server if you know or your gateway. Even if there is requested timed out. | |
type "arp -a " | |
It will usually list down all the IP's and Computers with their Mac Addresses | |
If you want to use GUI one tool I recommend is : IPScan form http://www.eusing.com/ipscan/free_ip_scanner.htm | |
Although it a light application 433KB almost but a freeware and very effective and always work for me. 100 % result! |
$('#image-browse-button').change(function() { | |
previewImage(this); | |
}); | |
function previewImage(input) { | |
if(input.files && input.files[0]) { | |
var reader= new FileReader(), | |
image = new Image(); | |
reader.onload = function(_file) { | |
image.src = _file.target.result; |
Some git command that I read/learn while facing some kind of problem or looking for something different.
####Reset all changes after last commit
$ git reset HEAD --hard
//Basic gulpfile.js with sass, jade, browser-sync and desktop notification | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var rename = require('gulp-rename'); | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync'); | |
var jade = require('gulp-jade'); |