Skip to content

Instantly share code, notes, and snippets.

View mesadhan's full-sized avatar
🎯
Focusing

Sadhan Sarker mesadhan

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<body>
<button onclick="clickToCheckIn()">CheckIn</button>
<button onclick="getStatus()">Status</button>
<script>
let entry_time = new Date('2020-06-05T15:26:31.461Z'); // 9:26 PM
let entryLimit = 8; //
The Pragmatic Programmer Quick Reference Guide
This page summarizes the tips and checklists found in The Pragmatic Programmer.
For more information about The Pragmatic Programmers LLC, source code for the examples, up-to-date pointers to Web resources, and an online bibiography, visit us at www.pragmaticprogrammer.com
1. Care About Your Craft
2. Why spend your life developing software unless you care about doing it well?
3. Think! About Your Work
4. Turn off the autopilot and take control. Constantly critique and appraise your work.
5. Provide Options, Don't Make Lame Excuses
6. Instead of excuses, provide options. Don't say it can't be done; explain what can be done.
@mesadhan
mesadhan / components.my-component.js
Created February 2, 2019 06:35 — forked from ykaragol/components.my-component.js
recursive-component-usage
import Ember from 'ember';
export default Ember.Component.extend({
});
@mesadhan
mesadhan / docker-cheat-sheat.md
Created August 6, 2018 17:09 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

<form class="example-form">
<mat-form-field class="example-full-width">
<input matInput placeholder="State" aria-label="State" [matAutocomplete]="auto" [formControl]="stateCtrl">
<mat-autocomplete #auto="matAutocomplete">
<mat-option (onSelectionChange)="onSelectFn($event,state)" *ngFor="let state of filteredStates | async" [value]="state.name">
<img style="vertical-align:middle;" aria-hidden src="{{state.flag}}" height="25" />
<span>{{ state.name }}</span> |
<small>Population: {{state.population}}</small>
</mat-option>
</mat-autocomplete>
private async void Button_Click(object sender, RoutedEventArgs e)
{
Geolocator geolocator = new Geolocator();
geolocator.DesiredAccuracyInMeters = 50;
try
{
Geoposition geoposition = await geolocator.GetGeopositionAsync(
maximumAge: TimeSpan.FromMinutes(5),
timeout: TimeSpan.FromSeconds(10)