Skip to content

Instantly share code, notes, and snippets.

View jawand's full-sized avatar
🐧
Focusing

Jawand Singh jawand

🐧
Focusing
  • Winnipeg, MB
View GitHub Profile
@jawand
jawand / index.html
Created May 13, 2019 08:24 — forked from graphicbeacon/index.html
Create a countdown timer in Dart
<div>
<strong id="days"></strong>
<strong id="hours"></strong>
<strong id="minutes"></strong>
<strong id="seconds"></strong>
</div>
@jawand
jawand / 1.txt
Last active December 31, 2018 16:02
generate android debug key for windows and linux.
Windows Keytool CMD:
keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
Mac Linux Keytool CMD:
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
Default password for keytool is 'android'.
@jawand
jawand / dd.dart
Created December 27, 2018 11:16
Flutter DropDown Validation
String _town;
_DropDownFormField() {
return FormField<String>(
validator: (value) {
if (value == null) {
return "Select your area";
}
},
onSaved: (value) {
formData['town'] = value;
@jawand
jawand / gist:81af5bc74f291892b9a8170618b5e408
Created November 29, 2018 09:08
Xamarin.forms app build output (MSB6006: "java.exe" exited with code 2.)
This file has been truncated, but you can view the full file.
1>Starting deployment to pixel ...
1>Deploying to pixel ...
1>Build started.
1>Project "CorePoint.Droid.csproj" (Install target(s)):
1>Building with tools version "15.0".
1>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
1>Target "RedirectMonoAndroidSdkPaths" in file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Xamarin.Android.Sdk.props" from project "C:\CorePoint\Mobile\corepoint\CorePoint\CorePoint.Droid\CorePoint.Droid.csproj" (entry point):
1>Set Property: MonoAndroidToolsDirectory=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android
1>Set Property: MonoAndroidBinDirectory=C:\Program Files (x86)\Mi
@jawand
jawand / gist:a791c877c0d459f21af8a5754765740c
Created September 7, 2018 06:34 — forked from excalq/gist:2961415
Javacript: Set or Update a URL/QueryString Parameter, and update URL using HTML history.replaceState()
// Explicitly save/update a url parameter using HTML5's replaceState().
function updateQueryStringParam(param, value) {
baseUrl = [location.protocol, '//', location.host, location.pathname].join('');
urlQueryString = document.location.search;
var newParam = key + '=' + value,
params = '?' + newParam;
// If the "search" string exists, then build params from it
if (urlQueryString) {
keyRegex = new RegExp('([\?&])' + key + '[^&]*');