Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Keybase proof
I hereby claim:
* I am sgzsh269 on github.
* I am sgzsh269 (https://keybase.io/sgzsh269) on keybase.
* I have a public key whose fingerprint is 0F84 3983 909C 3C78 471D 0135 7E6D 9BE7 1D66 9DBE
To claim this, I am signing this object:
@sgzsh269
sgzsh269 / html-boilerplate.html
Last active August 9, 2017 06:02
HTML boilerplate, includes bootstrap 3, jquery 3, important meta tags, etc.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Checklist Pre & Post launch - https://humaan.com/checklist/ -->
<meta charset="utf-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="description" content="FILL_HERE">
<meta name="keywords" content="FILL_HERE">
<title>FILL_HERE</title>
@sgzsh269
sgzsh269 / nginx-config.txt
Last active August 7, 2017 00:33
generic nginx config compatible with letsencrypt certbot
server {
listen 80;
# Provide domain name
server_name <DOMAIN_NAME>;
return 301 https://$server_name:443$request_uri;
}
server {
/*
Sample problematic Activity to illustrate sub-optimal architecture
This Activity has the following issues:-
1. The Activity contains business logic to fetch, filter and transform data thus
making it difficult to test business logic in isolation as it requires the
Activity and views to function.
2. The Activity and its Views cannot be tested in isolation as it requires the

Keybase proof

I hereby claim:

  • I am sgzsh269 on github.
  • I am sgzsh269 (https://keybase.io/sgzsh269) on keybase.
  • I have a public key whose fingerprint is A328 B762 323C 17EB 6FB5 6450 FE4C 50E7 FE4B 09D4

To claim this, I am signing this object: